Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
166e72b035
  1. 28
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs
  2. 18
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs
  3. 2
      src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs

28
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSKanbanExtendAppService.cs

@ -294,7 +294,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)
{
@ -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 = _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" +
@ -321,7 +343,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
}
}
return true;
return ApplicationConsts.SuccessStr; ;
}
/// <summary>
///出库界面功能, 撤销核准出库

18
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQKBOutputAppService.cs

@ -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>
///出库界面功能, 撤销核准出库

2
src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs

@ -504,7 +504,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
public string MaterialDesc { set; get; }
[ImporterHeader(Name = "版本号")]
public string Version { set; get; }
[ImporterHeader(Name = "是否备件")]
[ImporterHeader(Name = "是否备件", IsIgnore = true)]
public string IsBack { set; get; }
[ImporterHeader(Name = "结算数量")]
public decimal Qty { set; get; }

Loading…
Cancel
Save