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 8d3618f4dd..a7e79bfc19 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 += ["", "", "", "", ""] @@ -73,4 +73,4 @@ def get_pi_posting_date_map(): for t in webnotes.conn.sql("""select name, posting_date from `tabPurchase Invoice`"""): pi_posting_date_map[t[0]] = t[1] - return pi_posting_date_map \ No newline at end of file + return pi_posting_date_map