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 646b59336c Fixed: BalanceSheet generates an error (OFBIZ-13070) (#924)
646b59336c is described below
commit 646b59336cece0a1526379e6fc9a98a6391a0976
Author: pavololbert <[email protected]>
AuthorDate: Wed Nov 26 12:19:21 2025 +0100
Fixed: BalanceSheet generates an error (OFBIZ-13070) (#924)
Fixes missing custom period start by fixing the condition for fromData
Due to the change from the previous version 22.01, there was a change in
the PeriodServices and the condition for finding the period was wrong
causing the exception described in the bug.
The correct implementation of the condition was taken from:
https://github.com/apache/ofbiz-framework/blob/release22.01/applications/accounting/minilang/period/PeriodServices.xml#L23
Thanks: https://github.com/pavololbert
---
.../groovy/org/apache/ofbiz/accounting/period/GPeriodServices.groovy | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/period/GPeriodServices.groovy
b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/period/GPeriodServices.groovy
index 2419eea7b0..b83bd39ea1 100644
---
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/period/GPeriodServices.groovy
+++
b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/period/GPeriodServices.groovy
@@ -33,7 +33,7 @@ Map findCustomTimePeriods() {
List parentOrganizationPartyIdList =
serviceResult.parentOrganizationPartyIdList
EntityCondition condition = new EntityConditionBuilder().AND {
IN(organizationPartyId: parentOrganizationPartyIdList)
- LESS_THAN(fromDate: parameters.findDate)
+ LESS_THAN_EQUAL_TO(fromDate: parameters.findDate)
OR {
GREATER_THAN_EQUAL_TO(thruDate: parameters.findDate)
EQUALS(thruDate: null)
@@ -53,7 +53,7 @@ Map findCustomTimePeriods() {
EQUALS(organizationPartyId: null)
EQUALS(organizationPartyId: '_NA_')
}
- LESS_THAN(fromDate: parameters.findDate)
+ LESS_THAN_EQUAL_TO(fromDate: parameters.findDate)
OR {
GREATER_THAN_EQUAL_TO(thruDate: parameters.findDate)
EQUALS(thruDate: null)