You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/09 07:39:00 UTC
[jira] [Closed] (OFBIZ-13664) getOrderedSummaryInformation ignores explicit fromDate and thruDate
[ https://issues.apache.org/jira/browse/OFBIZ-13664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mridul Pathak closed OFBIZ-13664.
---------------------------------
Fix Version/s: Upcoming Branch
24.09.08
Resolution: Fixed
> getOrderedSummaryInformation ignores explicit fromDate and thruDate
> -------------------------------------------------------------------
>
> Key: OFBIZ-13664
> URL: https://issues.apache.org/jira/browse/OFBIZ-13664
> Project: OFBiz
> Issue Type: Bug
> Components: order
> Affects Versions: Upcoming Branch, 24.09.07
> Reporter: Mridul Pathak
> Assignee: Mridul Pathak
> Priority: Major
> Fix For: Upcoming Branch, 24.09.08
>
>
> The service declares {{fromDate}} and {{thruDate}} as IN attributes and the mini-lang filtered orders with them ({{orderDate >= parameters.fromDate}}, {{<= parameters.thruDate}}, ignoring nulls), letting {{monthsToInclude}} override. The Groovy initialises both to null and only sets them from {{monthsToInclude}}. Callers that pass only dates, such as the promotion condition PPIP_ORST_LAST_YEAR ("order sub-total since beginning of last year"), receive the lifetime total.
> h3. Fix
> Seed {{fromDate}} / {{thruDate}} from the parameters and let {{monthsToInclude}} override them.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)