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

mbrohl 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 c156ab4414 Fixed: Missing package and syntax error in 
FixedAssetServices.groovy (OFBIZ-12890)
c156ab4414 is described below

commit c156ab44141ff166f6620e754ac01df00d5e8a1f
Author: Michael Brohl <mbr...@apache.org>
AuthorDate: Mon Feb 5 10:18:09 2024 +0100

    Fixed: Missing package and syntax error in FixedAssetServices.groovy
    (OFBIZ-12890)
---
 .../org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy
 
b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy
index 6cf1ce6005..9058e8c92f 100644
--- 
a/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy
+++ 
b/applications/accounting/src/main/groovy/org/apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy
@@ -1,3 +1,5 @@
+package org.apache.ofbiz.accounting.fixedasset
+
 import org.apache.ofbiz.base.util.UtilDateTime
 import org.apache.ofbiz.entity.GenericValue
 import org.apache.ofbiz.entity.condition.EntityCondition
@@ -139,7 +141,7 @@ Map createMaintsFromMeterReading() {
                 long listSize = maintList ? maintList.size() : 0L
 
                 BigDecimal maxIntervalQty = maintList ? maintList
-                        .findAll(maint -> maint.intervalQuantity)
+                        .findAll{maint -> maint.intervalQuantity}
                         .max() : 0
 
                 BigDecimal nextIntervalQty = maxIntervalQty + 
p.intervalQuantity

Reply via email to