commit | fe5890b828b56cb671b5c3728b043f3e01c57fc9 | [log] [tgz] |
---|---|---|
author | Anurag Mishra <mishranaman123@gmail.com> | Mon Oct 07 14:27:07 2019 +0530 |
committer | Anurag Mishra <mishranaman123@gmail.com> | Mon Oct 07 14:27:07 2019 +0530 |
tree | db8110395d9551f990511b31aada144b400d26e8 | |
parent | ba2faecdc7ad080695b369276d9827e418fe264d [diff] |
fix: Query Condition On Billing date filters
diff --git a/erpnext/controllers/trends.py b/erpnext/controllers/trends.py index da44325..092baa4 100644 --- a/erpnext/controllers/trends.py +++ b/erpnext/controllers/trends.py
@@ -140,6 +140,8 @@ 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'