From e587bc302475565d9cbe9db9f78b10de4510afba Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 11 Nov 2013 18:42:22 +0530 Subject: [PATCH] Update accounts_payable.py --- accounts/report/accounts_payable/accounts_payable.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/report/accounts_payable/accounts_payable.py b/accounts/report/accounts_payable/accounts_payable.py index d9a0ca2a4ca..a6181182a08 100644 --- a/accounts/report/accounts_payable/accounts_payable.py +++ b/accounts/report/accounts_payable/accounts_payable.py @@ -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 \ No newline at end of file + return outstanding_amount