Commit bfee3896 authored by 季圣华's avatar 季圣华
Browse files

解决订单中商品数量为0,转出入库单据时候状态为部分完成的bug

parent 4a6a32db
...@@ -652,13 +652,16 @@ public class DepotItemService { ...@@ -652,13 +652,16 @@ public class DepotItemService {
materialSumMap.put(materialAndSum.getMaterialExtendId(), materialAndSum.getOperNumber()); materialSumMap.put(materialAndSum.getMaterialExtendId(), materialAndSum.getOperNumber());
} }
for(DepotItemVo4MaterialAndSum materialAndSum : linkList) { for(DepotItemVo4MaterialAndSum materialAndSum : linkList) {
BigDecimal materialSum = materialSumMap.get(materialAndSum.getMaterialExtendId()); //过滤掉原单里面有数量为0的商品
if(materialSum!=null) { if(materialAndSum.getOperNumber().compareTo(BigDecimal.ZERO) != 0) {
if(materialSum.compareTo(materialAndSum.getOperNumber()) != 0) { BigDecimal materialSum = materialSumMap.get(materialAndSum.getMaterialExtendId());
if (materialSum != null) {
if (materialSum.compareTo(materialAndSum.getOperNumber()) != 0) {
res = BusinessConstants.BILLS_STATUS_SKIPING;
}
} else {
res = BusinessConstants.BILLS_STATUS_SKIPING; res = BusinessConstants.BILLS_STATUS_SKIPING;
} }
} else {
res = BusinessConstants.BILLS_STATUS_SKIPING;
} }
} }
return res; return res;
......
Supports Markdown
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