Skip to content

Commit a96dc45

Browse files
yashwantdhakadYashwant Dhakad
authored andcommitted
Fixed: ArithmeticException when producing inventory from a production run with general cost set on task level (OFBIZ-13254) (#893)
Fixed: ArithmeticException when producing inventory from a production run with general cost set on task level (OFBIZ-13254) Co-authored-by: Yashwant Dhakad <yashwantdhakad@Yashwant-Dhakad-MBA.local>
1 parent c624437 commit a96dc45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1869,7 +1869,7 @@ public static Map<String, Object> productionRunProduce(DispatchContext ctx, Map<
18691869
}
18701870
}
18711871
if (totalCost != null) {
1872-
unitCost = totalCost.divide(quantity);
1872+
unitCost = totalCost.divide(quantity, DECIMALS, ROUNDING);
18731873
} else {
18741874
unitCost = BigDecimal.ZERO;
18751875
}

0 commit comments

Comments
 (0)