Merge pull request #19260 from Anurag810/Trends-Fixes

fix: Query Condition On Billing date filters in Purchase invoice trends Report.
This commit is contained in:
Deepesh Garg 2019-10-07 17:40:24 +05:30 committed by GitHub
commit a00c98bea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,8 @@ def period_wise_columns_query(filters, trans):
if trans in ['Purchase Receipt', 'Delivery Note', 'Purchase Invoice', 'Sales Invoice']:
trans_date = 'posting_date'
if filters.period_based_on:
trans_date = filters.period_based_on
else:
trans_date = 'transaction_date'