修复盘点
This commit is contained in:
1 parent
55241e81b1
commit
b87e0ce875
1 file changed
+4
-1
+4
-1
@@ -562,10 +562,13 @@ public class SmErpInventoryRecordsServiceImpl extends ServiceImpl<SmErpInventory
|
||||
Double profit = item.getProfit();
|
||||
updateStockDTO.setIncrCount(profit);
|
||||
smErpInventoryRecordsItemEntity.setQuantity(profit);
|
||||
}else if (orderType.equals(OrderTypeEnum.CK.getType())){
|
||||
}else if (orderType.equals(OrderTypeEnum.CK.getType())) {
|
||||
Double loss = item.getLoss();
|
||||
updateStockDTO.setIncrCount(loss);
|
||||
smErpInventoryRecordsItemEntity.setQuantity(loss);
|
||||
} else if (orderType.equals(OrderTypeEnum.No.getType())){
|
||||
//无需更新库存
|
||||
|
||||
}else {
|
||||
throw new RuntimeException("订单类型错误");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user