|
|
@ -280,7 +280,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
[HttpPost] |
|
|
|
[Route("WmsKanbanOutPut-Pass")] |
|
|
|
[UnitOfWork(false)] |
|
|
|
public async Task<bool> WmsKanbanOutPutPass(WmsJitRequestDto input) |
|
|
|
public async Task<string> WmsKanbanOutPutPass(WmsJitRequestDto input) |
|
|
|
{ |
|
|
|
if (input.Guids != null) |
|
|
|
{ |
|
|
@ -293,7 +293,19 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
{ |
|
|
|
_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) |
|
|
|
{ |
|
|
|
var sql = "DECLARE @return_value int\n" + |
|
|
@ -308,7 +320,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
return true; |
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
|
///出库界面功能, 撤销核准出库
|
|
|
|