This commit is contained in:
tongfei
2023-12-13 14:36:16 +08:00
parent 4ac5a2eb25
commit f8d50b7b35
6 changed files with 7 additions and 44 deletions

View File

@@ -266,8 +266,8 @@ namespace WMS.Web.Domain.Services
{
var inventoryInOutDet = _inventoryInOutDetailsService.GenerateDto(
item.BoxId, item.MaterialId,
item.OrgCode, item.StockCode,
item.SubStockId, OrderType.Back,
dtoData.OrgCode, dtoData.StockCode,
dtoData.SubStockId, OrderType.Back,
dtoData.BillNo, item.Qty, (dtoData.Type == BackRecordType.InstockOff ? InventoryInOutType.Out : InventoryInOutType.In));
InventoryInOutDetailsGenerateDtoList.Add(inventoryInOutDet);
}

View File

@@ -407,7 +407,7 @@ namespace WMS.Web.Domain.Services
};
if (backRecord.Type == BackRecordType.OutstockOn)
{
var subStockId = detail?.SubStockId ?? 0;
var subStockId = backRecord?.SubStockId ?? 0;
var srcSubStock = _singleDataService.GetSingleData(SingleAction.SubStocks, loginInfo.UserInfo.CompanyId, subStockId);
op.Remark += "\r\n" + "仓位:" + srcSubStock;
}