优化
This commit is contained in:
@@ -1730,6 +1730,7 @@ namespace WMS.Web.Domain.Services
|
||||
delete_ids.Add(boxInventory.Id);
|
||||
|
||||
//给改箱服务用:按箱的话,就要把明细里的数量修改为0
|
||||
if (isChangeBoxInfo)
|
||||
changeBox_inventoryList.Add(GenerateBoxInventory(boxInventory.Clone()));
|
||||
|
||||
//4.组装即时库存
|
||||
@@ -1787,6 +1788,7 @@ namespace WMS.Web.Domain.Services
|
||||
if (isAllNoInventory)
|
||||
{
|
||||
//给改箱服务用:按箱的话,就要把明细里的数量修改为0
|
||||
if (isChangeBoxInfo)
|
||||
changeBox_inventoryList.Add(GenerateBoxInventory(update_entity.Clone()));
|
||||
delete_ids.Add(update_entity.Id);
|
||||
}
|
||||
@@ -1802,12 +1804,10 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
|
||||
//改箱
|
||||
if (isChangeBoxInfo)
|
||||
{
|
||||
var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
|
||||
if (!changeBox_result.IsSuccess)
|
||||
return changeBox_result;
|
||||
}
|
||||
|
||||
|
||||
//4.数据库更新操作:更新和删除
|
||||
var isSuccess = true;
|
||||
|
||||
Reference in New Issue
Block a user