This is an automated email from the ASF dual-hosted git repository.

mridulpathak 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 7ab39ee2cd Fixed: getOrderedSummaryInformation ignores explicit 
fromDate and thruDate (OFBIZ-13664)
7ab39ee2cd is described below

commit 7ab39ee2cd99aaa61f84be5682ff62749133db4a
Author: Mridul Pathak <[email protected]>
AuthorDate: Fri Oct 9 12:25:54 2026 +0530

    Fixed: getOrderedSummaryInformation ignores explicit fromDate and thruDate 
(OFBIZ-13664)
    
    The service declares fromDate and thruDate as IN attributes and the 
mini-lang used them to restrict the orders, letting monthsToInclude override 
them. The Groovy conversion initialised both to null and only set them from 
monthsToInclude, so callers passing only dates received the totals of all 
orders. Seed fromDate and thruDate from the parameters again, and keep 
monthsToInclude overriding them.
---
 .../groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
 
b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
index 60c93ae7d2..89b64ad506 100644
--- 
a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
+++ 
b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/OrderServicesScript.groovy
@@ -107,7 +107,8 @@ Map getOrderedSummaryInformation() {
         return result
     }
     */
-    Timestamp fromDate = null, thruDate = null
+    Timestamp fromDate = parameters.fromDate
+    Timestamp thruDate = parameters.thruDate
     Timestamp now = UtilDateTime.nowTimestamp()
     Integer monthsToInclude = parameters.monthsToInclude
     if (monthsToInclude) {

Reply via email to