Skip to content

Commit

Permalink
Merge pull request #44155 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-44089

fix: apply posting date sorting to invoices in Payment Reconciliation similar to payments (backport #44089)
  • Loading branch information
ruthra-kumar authored Nov 15, 2024
2 parents 68f3dd8 + 5bd633b commit 50d1524
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ def get_invoice_entries(self):
if self.invoice_limit:
non_reconciled_invoices = non_reconciled_invoices[: self.invoice_limit]

non_reconciled_invoices = sorted(
non_reconciled_invoices, key=lambda k: k["posting_date"] or getdate(nowdate())
)

self.add_invoice_entries(non_reconciled_invoices)

def add_invoice_entries(self, non_reconciled_invoices):
Expand Down

0 comments on commit 50d1524

Please sign in to comment.