This is an automated email from the ASF dual-hosted git repository. jleroux pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 7f93365d4d Improved: InvoiceReport.groovy should return list with DueDate ASC (OFBIZ-13012) (#752) 7f93365d4d is described below commit 7f93365d4daf4eabc24f32320ff99e50138b63c7 Author: Pierre Smits <pierre.sm...@somonar.com> AuthorDate: Fri Apr 12 14:32:26 2024 +0200 Improved: InvoiceReport.groovy should return list with DueDate ASC (OFBIZ-13012) (#752) Currently the InvoiceReport.groovy function returns the result sorted on DueDate ascending. This means that newer invoices are shown before older ones. This is undesirable, as the oldest invoices are more important to take action on. modified: InvoiceReport.groovy - change sorting parameter on PastDueInvoices --- .../groovy/org/apache/ofbiz/accounting/invoice/InvoiceReport.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceReport.groovy b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceReport.groovy index f7a2ecb922..0ae63e12de 100644 --- a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceReport.groovy +++ b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/invoice/InvoiceReport.groovy @@ -34,7 +34,7 @@ if (invoiceTypeId) { } expr = exprBldr.AND([expr, invoiceStatusesCondition]) - PastDueInvoices = from('Invoice').where(expr).orderBy('dueDate DESC').queryList() + PastDueInvoices = from('Invoice').where(expr).orderBy('dueDate ASC').queryList() if (PastDueInvoices) { invoiceIds = PastDueInvoices.invoiceId totalAmount = runService('getInvoiceRunningTotal', [invoiceIds: invoiceIds, organizationPartyId: organizationPartyId])