|
@ -169,7 +169,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS |
|
|
string.Empty, |
|
|
string.Empty, |
|
|
itm.Qty, |
|
|
itm.Qty, |
|
|
tm1 == null ? 0 : tm1.Qty, |
|
|
tm1 == null ? 0 : tm1.Qty, |
|
|
itm.OutputQty, |
|
|
itm.Qty, |
|
|
string.Empty, |
|
|
string.Empty, |
|
|
itm.BillNum, |
|
|
itm.BillNum, |
|
|
itm.State, |
|
|
itm.State, |
|
@ -293,18 +293,18 @@ 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 || p.Qty < p.OutputQty).ToList(); |
|
|
//_ls = _ls.Where(p => p.SockQty < p.OutputQty || p.Qty < p.OutputQty).ToList();
|
|
|
var checkList = new List<ErrorExportDto>(); |
|
|
//var checkList = new List<ErrorExportDto>();
|
|
|
|
|
|
|
|
|
foreach (var itm in _ls) |
|
|
//foreach (var itm in _ls)
|
|
|
{ |
|
|
//{
|
|
|
checkList.Add(new ErrorExportDto() { Message = string.Format("物料号:{0}出库数量大于结算数量或寄售库存数量!",itm.SapMaterialCode) }); |
|
|
// checkList.Add(new ErrorExportDto() { Message = string.Format("物料号:{0}出库数量大于结算数量或寄售库存数量!",itm.SapMaterialCode) });
|
|
|
} |
|
|
//}
|
|
|
if (checkList.Count > 0) |
|
|
//if (checkList.Count > 0)
|
|
|
{ |
|
|
//{
|
|
|
|
|
|
|
|
|
return await ExportErrorReportAsync(checkList,"校验失败.xlsx"); |
|
|
// return await ExportErrorReportAsync(checkList,"校验失败.xlsx");
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
if (_ls.Count() > 0) |
|
|
if (_ls.Count() > 0) |
|
|
{ |
|
|
{ |
|
|