Commit b638b169 authored by 温志超's avatar 温志超

允许条码在不良状态下,多次重复报工

parent fe9cb2e8
...@@ -801,7 +801,7 @@ public class ProTaskServiceImpl implements IProTaskService { ...@@ -801,7 +801,7 @@ public class ProTaskServiceImpl implements IProTaskService {
task.setQuantityWait(task.getQuantity().add(new BigDecimal(1))); task.setQuantityWait(task.getQuantity().add(new BigDecimal(1)));
//减少一个不良加工数,后续计算中根据报工是不合格增加1,如果为合格则不再增加 //减少一个不良加工数,后续计算中根据报工是不合格增加1,如果为合格则不再增加
task.setQuantityUnqualify(task.getQuantityUnqualify().subtract(new BigDecimal(1))); task.setQuantityUnqualify(task.getQuantityUnqualify().subtract(new BigDecimal(1)));
//减少一个已加工数,抵消以后相当于加工数不变 //减少一个已加工数,抵消以后增加一个相当于已加工数不变
task.setQuantityProduced(task.getQuantityProduced().subtract(new BigDecimal(1))); task.setQuantityProduced(task.getQuantityProduced().subtract(new BigDecimal(1)));
taskWorkunit.setQuantityUnqualify(task.getQuantityUnqualify().subtract(new BigDecimal(1))); taskWorkunit.setQuantityUnqualify(task.getQuantityUnqualify().subtract(new BigDecimal(1)));
......
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