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

commit e4514d2f54e558064ad4253e49db51b6f3502a9a
Author: Jacques Le Roux <jacques.le.r...@les7arts.com>
AuthorDate: Mon Feb 5 14:18:11 2024 +0100

    Fixed: Missing package and syntax error in FixedAssetServices.groovy
    (OFBIZ-12890)
    
    Fixes Codenarc issues
---
 .../apache/ofbiz/accounting/fixedasset/FixedAssetServices.groovy  | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

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 9058e8c92f..d0d9749c2b 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,13 +1,13 @@
 package org.apache.ofbiz.accounting.fixedasset
 
+import java.math.RoundingMode
+import java.sql.Timestamp
+
 import org.apache.ofbiz.base.util.UtilDateTime
 import org.apache.ofbiz.entity.GenericValue
 import org.apache.ofbiz.entity.condition.EntityCondition
 import org.apache.ofbiz.entity.condition.EntityConditionBuilder
 
-import java.math.RoundingMode
-import java.sql.Timestamp
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -141,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