You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2025/06/10 09:46:26 UTC
(ofbiz-framework) branch release24.09 updated: Fixed: ArithmeticException when producing inventory from a production run with general cost set on task level (OFBIZ-13254) (#893)
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 <ya...@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 <ya...@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;
}