改箱增加参数
This commit is contained in:
@@ -51,7 +51,7 @@ namespace WMS.Web.Domain.Services
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<Result> ChangeBoxSave(List<SaveChangeBoxRecordRequest> dto, LoginInDto loginInfo, bool isTransaction = false)
|
||||
public async Task<Result> ChangeBoxSave(List<SaveChangeBoxRecordRequest> dto, LoginInDto loginInfo, bool isTransaction = false, bool IsInventory = true)
|
||||
{
|
||||
//1.有原箱时 需要判断 物料对应的序列号是否存在
|
||||
var srcIds = dto.Select(s => s.SrcBoxId).ToList();
|
||||
@@ -146,7 +146,7 @@ namespace WMS.Web.Domain.Services
|
||||
isSuccess = await _boxRepositories.EditEntityList(boxList, false);
|
||||
if (!isSuccess) res_Rollback = Result.ReFailure(ResultCodes.DateWriteError);
|
||||
}
|
||||
if (res_Rollback.IsSuccess)
|
||||
if (res_Rollback.IsSuccess && IsInventory)
|
||||
{
|
||||
var res_Inventory = await _boxInventoryService.GenerateChangeBox(list, false);
|
||||
if (!res_Inventory.IsSuccess) res_Rollback = res_Inventory;
|
||||
|
||||
Reference in New Issue
Block a user