解决订单中商品数量为0,转出入库单据时候状态为部分完成的bug
This commit is contained in:
@@ -652,6 +652,8 @@ public class DepotItemService {
|
||||
materialSumMap.put(materialAndSum.getMaterialExtendId(), materialAndSum.getOperNumber());
|
||||
}
|
||||
for(DepotItemVo4MaterialAndSum materialAndSum : linkList) {
|
||||
//过滤掉原单里面有数量为0的商品
|
||||
if(materialAndSum.getOperNumber().compareTo(BigDecimal.ZERO) != 0) {
|
||||
BigDecimal materialSum = materialSumMap.get(materialAndSum.getMaterialExtendId());
|
||||
if (materialSum != null) {
|
||||
if (materialSum.compareTo(materialAndSum.getOperNumber()) != 0) {
|
||||
@@ -661,6 +663,7 @@ public class DepotItemService {
|
||||
res = BusinessConstants.BILLS_STATUS_SKIPING;
|
||||
}
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user