Commit 8666303b by wancheng

sc004实际重量bug修复

parent c5e80946
......@@ -116,7 +116,7 @@ public class HPSCTools {
AssertUtils.isNull(dbSc004, String.format("生产订单计划[%s]不存在", prodOrderNo));
BigDecimal completionNum = num.add(dbSc004.getActualCompletionNum());
AssertUtils.isGt(BigDecimal.ZERO, completionNum, "更新后的生产计划完成数量小于0,请检查");
BigDecimal completionUnitWt = completionNum.multiply(dbSc004.getUnitWt());
BigDecimal completionUnitWt = completionNum.multiply(dbSc004.getUnitWt()).divide(new BigDecimal("1000"));
// 计算重量
HPSC004 newSc004 = new HPSC004();
newSc004.setId(dbSc004.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment