You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by jl...@apache.org on 2025/11/26 11:37:41 UTC

(ofbiz-framework) branch release24.09 updated: Fixed: BalanceSheet generates an error (OFBIZ-13070) (#924)

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

jleroux pushed a commit to branch release24.09
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/release24.09 by this push:
     new f51871912c Fixed: BalanceSheet generates an error (OFBIZ-13070) (#924)
f51871912c is described below

commit f51871912c2033925ec4aa9e070ea4d82371776c
Author: pavololbert <13...@users.noreply.github.com>
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 1c08c0e9ee..dea7fc7f2b 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)
@@ -54,7 +54,7 @@ Map findCustomTimePeriods() {
                 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)