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:42:00 UTC
[jira] [Updated] (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 updated OFBIZ-13664:
----------------------------------
Description:
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"), would receive the totals of all orders from the service. (That condition currently does not use the returned value at all, see OFBIZ-13667 for ProductPromoCondServices.)
h3. Fix
Seed {{fromDate}} / {{thruDate}} from the parameters and let {{monthsToInclude}} override them.
was:
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.
> 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"), would receive the totals of all orders from the service. (That condition currently does not use the returned value at all, see OFBIZ-13667 for ProductPromoCondServices.)
> h3. Fix
> Seed {{fromDate}} / {{thruDate}} from the parameters and let {{monthsToInclude}} override them.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)