From ca414a96cceed211de0096e7862d059aa54e5ce1 Mon Sep 17 00:00:00 2001 From: Akhilesh Darjee Date: Wed, 27 Nov 2013 11:53:57 +0530 Subject: [PATCH] [fix] [minor] ageing related reports fixed --- .../payment_collection_with_ageing.py | 2 +- .../report/payment_made_with_ageing/payment_made_with_ageing.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accounts/report/payment_collection_with_ageing/payment_collection_with_ageing.py b/accounts/report/payment_collection_with_ageing/payment_collection_with_ageing.py index faee0aec8f..574a66af49 100644 --- a/accounts/report/payment_collection_with_ageing/payment_collection_with_ageing.py +++ b/accounts/report/payment_collection_with_ageing/payment_collection_with_ageing.py @@ -21,7 +21,7 @@ def execute(filters=None): d.debit, d.credit, d.cheque_no, d.cheque_date, d.remark] if d.against_invoice: - row += get_ageing_data(against_invoice_date, d.posting_date, d.credit or -1*d.debit) + row += get_ageing_data(d.posting_date, against_invoice_date, d.credit or -1*d.debit) else: row += ["", "", "", "", ""] diff --git a/accounts/report/payment_made_with_ageing/payment_made_with_ageing.py b/accounts/report/payment_made_with_ageing/payment_made_with_ageing.py index 677dcfc06b..6d0ca8a9fc 100644 --- a/accounts/report/payment_made_with_ageing/payment_made_with_ageing.py +++ b/accounts/report/payment_made_with_ageing/payment_made_with_ageing.py @@ -21,7 +21,7 @@ def execute(filters=None): d.debit, d.credit, d.cheque_no, d.cheque_date, d.remark] if d.against_voucher: - row += get_ageing_data(against_voucher_date, d.posting_date, d.debit or -1*d.credit) + row += get_ageing_data(d.posting_date, against_voucher_date, d.debit or -1*d.credit) else: row += ["", "", "", "", ""]