|
@ -294,7 +294,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[Route("WmsKanbanOutPut-Pass")] |
|
|
[Route("WmsKanbanOutPut-Pass")] |
|
|
[UnitOfWork(false)] |
|
|
[UnitOfWork(false)] |
|
|
public async Task<bool> WmsKanbanOutPutPass(WmsJitRequestDto input) |
|
|
public async Task<string> WmsKanbanOutPutPass(WmsJitRequestDto input) |
|
|
{ |
|
|
{ |
|
|
if (input.Guids != null) |
|
|
if (input.Guids != null) |
|
|
{ |
|
|
{ |
|
@ -307,7 +307,29 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
{ |
|
|
{ |
|
|
_ls = await _wmsRepository.Where(p => p.Version == input.Version && p.BillNum == input.BillNum && p.State != 2).ToListAsync(); |
|
|
_ls = await _wmsRepository.Where(p => p.Version == input.Version && p.BillNum == input.BillNum && p.State != 2).ToListAsync(); |
|
|
} |
|
|
} |
|
|
_ls = _ls.Where(p => p.SockQty >= p.OutputQty).ToList(); |
|
|
_ls = _ls.Where(p => p.SockQty < p.OutputQty || p.Qty<p.OutputQty).ToList(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foreach (var itm in _ls) |
|
|
|
|
|
{ |
|
|
|
|
|
checkList.Add(new ErrorExportDto() { Message = string.Format("物料号:{0}出库数量大于结算数量或寄售库存数量!") }); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (checkList.Count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
return await ExportErrorReportAsync(checkList); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (_ls.Count() > 0) |
|
|
if (_ls.Count() > 0) |
|
|
{ |
|
|
{ |
|
|
var sql = "DECLARE @return_value int\n" + |
|
|
var sql = "DECLARE @return_value int\n" + |
|
@ -321,7 +343,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return true; |
|
|
return ApplicationConsts.SuccessStr; ; |
|
|
} |
|
|
} |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
///出库界面功能, 撤销核准出库
|
|
|
///出库界面功能, 撤销核准出库
|
|
|