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:41:30 UTC
(ofbiz-framework) branch trunk 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 trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 6259d18558 Fixed: ArithmeticException when producing inventory from a production run with general cost set on task level (OFBIZ-13254) (#893)
6259d18558 is described below
commit 6259d185583fc7a26a2e7266b74dea053b6a53a0
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;
}