解决订单中商品数量为0,转出入库单据时候状态为部分完成的bug
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user