Commit 53c272ac by ice

修改采购订单的审核中的库存现有量判断

parent 01699892
...@@ -150,11 +150,11 @@ public class PurOrderHeaderController { ...@@ -150,11 +150,11 @@ public class PurOrderHeaderController {
purOrderLineService.updateOrderLineSumQuantity(String.valueOf(newSumQuantity),purOrderLine.getId()); purOrderLineService.updateOrderLineSumQuantity(String.valueOf(newSumQuantity),purOrderLine.getId());
}else { }else {
Integer sumQuantity = Integer.valueOf(purOrderLine.getAttribute1()); Integer sumQuantity = Integer.valueOf(purOrderLine.getAttribute1());
if (sumQuantity != newSumQuantity) { if (sumQuantity.compareTo(newSumQuantity) != 0) {
purOrderLineService.updateOrderLineSumQuantity(String.valueOf(newSumQuantity), purOrderLine.getId()); purOrderLineService.updateOrderLineSumQuantity(String.valueOf(newSumQuantity), purOrderLine.getId());
} }
} }
if(quantity > newSumQuantity){ if(quantity.compareTo(newSumQuantity) > 0){
errorList.add("采购订单号为:"+purOrderHeader.getOrderNumber()+"库存现有量不足,审核失败!"); errorList.add("采购订单号为:"+purOrderHeader.getOrderNumber()+"库存现有量不足,审核失败!");
continue label; continue label;
} }
......
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 sign in to comment