commit | d74d1211995f8245d9cbf2e868741d558b1b19f0 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Thu Aug 13 17:24:52 2015 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Mon Aug 17 17:58:50 2015 +0530 |
tree | 8a13e02f6c08bc8e315b3315ba16980e759d0c86 | |
parent | 68f66a7e8b22fddf66fabf35e643aa6806f7a603 [diff] |
[hotfix] [report] payment period based on invoice date
diff --git a/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.py b/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.py index 604bc56..786a494 100644 --- a/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.py +++ b/erpnext/accounts/report/payment_period_based_on_invoice_date/payment_period_based_on_invoice_date.py
@@ -18,7 +18,7 @@ data = [] for d in entries: - against_date = invoice_posting_date_map[d.reference_name] or "" + against_date = invoice_posting_date_map.get(d.reference_name) or "" if d.reference_type=="Purchase Invoice": payment_amount = flt(d.debit) or -1 * flt(d.credit) else: