Update accounts_payable.py

This commit is contained in:
Nabin Hait 2013-11-11 18:42:22 +05:30
parent 91db9dc4ee
commit e587bc3024

View File

@ -54,7 +54,7 @@ def execute(filters=None):
else:
ageing_based_on_date = gle.posting_date
row += get_ageing_data(ageing_based_on_date, age_on, outstanding_amount)
row += get_ageing_data(age_on, ageing_based_on_date, outstanding_amount)
data.append(row)
return columns, data
@ -130,4 +130,4 @@ def get_outstanding_amount(gle, report_date):
(gle.account, report_date, gle.voucher_type, gle.voucher_no, gle.name))[0][0]
outstanding_amount = flt(gle.credit) - flt(gle.debit) - flt(payment_amount)
return outstanding_amount
return outstanding_amount