Skip to content

Commit

Permalink
Fixed: Missing package and syntax error in FixedAssetServices.groovy
Browse files Browse the repository at this point in the history
(OFBIZ-12890)
  • Loading branch information
mbrohl committed Feb 5, 2024
1 parent b397054 commit c156ab4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c156ab4

Please sign in to comment.