[hotfix] [report] payment period based on invoice date

This commit is contained in:
Anand Doshi 2015-08-13 17:24:52 +05:30
parent 68f66a7e8b
commit d74d121199

View File

@ -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: