From d74d1211995f8245d9cbf2e868741d558b1b19f0 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 13 Aug 2015 17:24:52 +0530 Subject: [PATCH] [hotfix] [report] payment period based on invoice date --- .../payment_period_based_on_invoice_date.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 604bc5660a..786a494eba 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 @@ def execute(filters=None): 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: