Commit 1f33ff6d by 江和松

生产入库提交时计划校验修改,不需要校验完工数量加已完工数量是否大于任务数量,任务数量可以小于已完工数量

parent 98f1ce71
...@@ -148,7 +148,7 @@ public class HGSCTools { ...@@ -148,7 +148,7 @@ public class HGSCTools {
HGSC007 hgsc007 = THGSC007.getById(hgsc008.getTaskId()); HGSC007 hgsc007 = THGSC007.getById(hgsc008.getTaskId());
//更新生产任务完工数量 //更新生产任务完工数量
Integer finishQuatity = hgsc007.getFinishQuantity()+completeNum; Integer finishQuatity = hgsc007.getFinishQuantity()+completeNum;
AssertUtils.isTrue(hgsc007.getQuantity().compareTo(finishQuatity)<0,"完工数量加已完工数量不能大于任务数量!"); // AssertUtils.isTrue(hgsc007.getQuantity().compareTo(finishQuatity)<0,"完工数量加已完工数量不能大于任务数量!");
AssertUtils.isTrue(finishQuatity<0,"扣除完工数量不能大于已完工数量!"); AssertUtils.isTrue(finishQuatity<0,"扣除完工数量不能大于已完工数量!");
hgsc007.setFinishQuantity(finishQuatity); hgsc007.setFinishQuantity(finishQuatity);
hgsc007.setUnfinishQuantity(hgsc007.getQuantity() - finishQuatity); hgsc007.setUnfinishQuantity(hgsc007.getQuantity() - finishQuatity);
...@@ -161,7 +161,7 @@ public class HGSCTools { ...@@ -161,7 +161,7 @@ public class HGSCTools {
HGSC006A hgsc006A = THGSC006A.getById(hgsc007.getOrderDetailId()); HGSC006A hgsc006A = THGSC006A.getById(hgsc007.getOrderDetailId());
HGSC005A hgsc005A = THGSC005A.getById(hgsc006A.getPlanDetailId()); HGSC005A hgsc005A = THGSC005A.getById(hgsc006A.getPlanDetailId());
finishQuatity = hgsc005A.getFinishQuantity()+completeNum; finishQuatity = hgsc005A.getFinishQuantity()+completeNum;
AssertUtils.isTrue(hgsc005A.getQuantity().compareTo(finishQuatity)<0,"完工数量加已完工数量不能大于任务数量!"); // AssertUtils.isTrue(hgsc005A.getQuantity().compareTo(finishQuatity)<0,"完工数量加已完工数量不能大于任务数量!");
AssertUtils.isTrue(finishQuatity<0,"扣除完工数量不能大于已完工数量!"); AssertUtils.isTrue(finishQuatity<0,"扣除完工数量不能大于已完工数量!");
hgsc005A.setFinishQuantity(finishQuatity); hgsc005A.setFinishQuantity(finishQuatity);
hgsc005A.setUnfinishQuantity(hgsc005A.getQuantity() - finishQuatity); hgsc005A.setUnfinishQuantity(hgsc005A.getQuantity() - finishQuatity);
......
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