This commit is contained in:
tongfei
2024-03-21 15:51:00 +08:00
parent 39c8540a06
commit 0197180005

View File

@@ -1730,6 +1730,7 @@ namespace WMS.Web.Domain.Services
delete_ids.Add(boxInventory.Id); delete_ids.Add(boxInventory.Id);
//给改箱服务用按箱的话就要把明细里的数量修改为0 //给改箱服务用按箱的话就要把明细里的数量修改为0
if (isChangeBoxInfo)
changeBox_inventoryList.Add(GenerateBoxInventory(boxInventory.Clone())); changeBox_inventoryList.Add(GenerateBoxInventory(boxInventory.Clone()));
//4.组装即时库存 //4.组装即时库存
@@ -1787,6 +1788,7 @@ namespace WMS.Web.Domain.Services
if (isAllNoInventory) if (isAllNoInventory)
{ {
//给改箱服务用按箱的话就要把明细里的数量修改为0 //给改箱服务用按箱的话就要把明细里的数量修改为0
if (isChangeBoxInfo)
changeBox_inventoryList.Add(GenerateBoxInventory(update_entity.Clone())); changeBox_inventoryList.Add(GenerateBoxInventory(update_entity.Clone()));
delete_ids.Add(update_entity.Id); 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); var changeBox_result = await _boxService.BoxInventorySync(changeBox_inventoryList, isTransaction);
if (!changeBox_result.IsSuccess) if (!changeBox_result.IsSuccess)
return changeBox_result; return changeBox_result;
}
//4.数据库更新操作:更新和删除 //4.数据库更新操作:更新和删除
var isSuccess = true; var isSuccess = true;