调整仓库在出库单的位置
This commit is contained in:
@@ -114,8 +114,8 @@ namespace WMS.Web.Domain.Services
|
||||
{
|
||||
BoxId = boxId,
|
||||
InventoryInOutMethod = dto.Method,
|
||||
StockCode = outStockTask.Details.First().StockCode,
|
||||
SubStockId = outStockTask.Details.First().SubStockId,
|
||||
StockCode = outStockTask.StockCode,
|
||||
SubStockId = 0,// outStockTask.Details.First().SubStockId,
|
||||
Details = inventoryDetail
|
||||
};
|
||||
inventoryList.Add(inventory);
|
||||
|
||||
@@ -106,9 +106,11 @@ namespace WMS.Web.Domain.Services
|
||||
foreach (var outStockTask in data_list)
|
||||
{
|
||||
var sourcNos = outStockTask.Details.SelectMany(s => s.ErpDetails).Select(s => s.SourceBillNo).ToList();
|
||||
//仓库不同 拆分成不同的任务单
|
||||
var erps = erp_list.Where(w => sourcNos.Contains(w.SourceBillNo)).ToList();
|
||||
foreach (var erp in erps)
|
||||
{
|
||||
//仓库不同 拆分成不同的
|
||||
var detail = outStockTask.Details.FirstOrDefault(w => w.MaterialId == erp.MaterialId);
|
||||
if (detail == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user