Browse Source

更新版本

dev_DY_CC
赵新宇 6 months ago
parent
commit
ffd4873f76
  1. 7
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/UnplannedIssueJobs/UnplannedIssueJobAppService.cs

7
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/UnplannedIssueJobs/UnplannedIssueJobAppService.cs

@ -142,6 +142,8 @@ public class UnplannedIssueJobAppService
if (enumLocationType == EnumLocationType.RAW)
{
undto.InjectFrom(item);
undto.Qty = item.Qty;
unbalanceDTOs.Add(undto);
}
else
@ -284,7 +286,7 @@ public class UnplannedIssueJobAppService
}
var usableList = await _balanceAppService.GetUsableListAsync(input).ConfigureAwait(false); //获取推荐库存
usableList = usableList.Where(p => p.Qty > 0).ToList();
usableList = usableList
.OrderBy(p => p.Lot)
.ThenBy(p => p.PutInTime)
@ -292,11 +294,12 @@ public class UnplannedIssueJobAppService
.ThenBy(p => p.LocationCode)
.ThenBy(p => p.PackingCode)
.ToList();
var usableList1 = usableList.Where(p => p.Qty > 0).ToList();
decimal qty = 0;
//实际要用库存
var useBalances = new List<BalanceDTO>();
var returnlist = await DeductInventory(usableList, requestDtoDetail.Qty, locationDto.Type)
var returnlist = await DeductInventory(usableList1, requestDtoDetail.Qty, locationDto.Type)
.ConfigureAwait(false);
useBalances.AddRange(returnlist.Item1);

Loading…
Cancel
Save