From 7b7440d44a74a0d9aa035a2aed9f32a49f5ef5da Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Wed, 4 Jun 2025 14:30:31 +0530 Subject: [PATCH] refactor: order by posting date --- .../accounts/report/accounts_receivable/accounts_receivable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 23d7936f78b..dcb6c4376df 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -369,7 +369,7 @@ class ReceivablePayableReport: sum(paid_in_account_currency) `paid_in_account_currency`, sum(credit_note_in_account_currency) `credit_note_in_account_currency`, sum(invoiced_in_account_currency) - sum(paid_in_account_currency) - sum(credit_note_in_account_currency) `outstanding_in_account_currency` - from `{self.proc._voucher_balance_name}` group by name;""", + from `{self.proc._voucher_balance_name}` group by name order by posting_date;""", as_dict=True, ) for x in res: