|
|
@@ -1110,13 +1110,7 @@ public class DeliveryItemsServiceImpl extends ServiceImpl<DeliveryItemsMapper, D
|
|
|
throw new RuntimeException("库存账不存在");
|
|
|
}
|
|
|
StockGoods stockGoods = stockById.getData();
|
|
|
- /*if (!"681169".equals(AuthUtil.getTenantId())) {
|
|
|
- else {
|
|
|
- if (ObjectUtils.isNotNull(sysClient.getParamService("inventory")) && "1".equals(sysClient.getParamService("inventory"))) {
|
|
|
- stockGoods.setLockingQuantity(stockGoods.getLockingQuantity().subtract(e.getOrderQuantity()));
|
|
|
- }
|
|
|
- }
|
|
|
- }*/
|
|
|
+
|
|
|
if (stockGoods.getLockingQuantity().compareTo(e.getOrderQuantity()) < 0) {
|
|
|
throw new RuntimeException(stockGoods.getCode() + "更新库存总账失败,锁定库存不足");
|
|
|
} else {
|