优化
This commit is contained in:
@@ -548,7 +548,7 @@ namespace WMS.Web.Domain.Services
|
||||
});
|
||||
//是否要改箱的信息:直接调拨出库单,过来的出库就不要去改箱了
|
||||
var isChangeBoxInfo = true;
|
||||
if (dtoData != null && (dtoData.Type == OutStockType.Stkdirecttransfers || dtoData.Type== OutStockType.StktransferInst))
|
||||
if (dtoData != null && (dtoData.Type == OutStockType.Stkdirecttransfers || dtoData.Type == OutStockType.StktransferInst))
|
||||
isChangeBoxInfo = false;
|
||||
//提交处理
|
||||
var result = await this.ExeOutStockBox(generateDtoList, boxInventorys, isChangeBoxInfo, isTransaction);
|
||||
@@ -1730,7 +1730,8 @@ namespace WMS.Web.Domain.Services
|
||||
delete_ids.Add(boxInventory.Id);
|
||||
|
||||
//给改箱服务用:按箱的话,就要把明细里的数量修改为0
|
||||
changeBox_inventoryList.Add(GenerateBoxInventory(boxInventory.Clone()));
|
||||
if (isChangeBoxInfo)
|
||||
changeBox_inventoryList.Add(GenerateBoxInventory(boxInventory.Clone()));
|
||||
|
||||
//4.组装即时库存
|
||||
foreach (var detItem in dto.Details)
|
||||
@@ -1787,7 +1788,8 @@ namespace WMS.Web.Domain.Services
|
||||
if (isAllNoInventory)
|
||||
{
|
||||
//给改箱服务用:按箱的话,就要把明细里的数量修改为0
|
||||
changeBox_inventoryList.Add(GenerateBoxInventory(update_entity.Clone()));
|
||||
if (isChangeBoxInfo)
|
||||
changeBox_inventoryList.Add(GenerateBoxInventory(update_entity.Clone()));
|
||||
delete_ids.Add(update_entity.Id);
|
||||
}
|
||||
else
|
||||
@@ -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;
|
||||
}
|
||||
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