This is an automated email from the ASF dual-hosted git repository. deepak 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 a96dc45688 Fixed: ArithmeticException when producing inventory from a production run with general cost set on task level (OFBIZ-13254) (#893) a96dc45688 is described below commit a96dc45688187b2a4f2647fcd007253453d8ddb0 Author: Yashwant Dhakad <yashmitm1...@gmail.com> AuthorDate: Tue Jun 10 15:11:26 2025 +0530 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> --- .../apache/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java b/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java index 9f250741ee..07873c07a6 100644 --- a/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java +++ b/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java @@ -1869,7 +1869,7 @@ public class ProductionRunServices { } } if (totalCost != null) { - unitCost = totalCost.divide(quantity); + unitCost = totalCost.divide(quantity, DECIMALS, ROUNDING); } else { unitCost = BigDecimal.ZERO; }