diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs index 35b71c63..07dfd48e 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmskittingOutService.cs @@ -360,6 +360,7 @@ namespace Tnb.WarehouseMgr await _db.Ado.BeginTranAsync(); List kittingOutDs = new(); var kittingOuts = input.Adapt>(); + var ids = input.Select(x => x.location_code).ToArray(); for (int i = 0; i < kittingOuts.Count; i++) { @@ -370,6 +371,7 @@ namespace Tnb.WarehouseMgr x.bill_type = WmsWareHouseConst.BIZTYPE_WMSKITTINGOUTSTK_ID; x.status = WmsWareHouseConst.BILLSTATUS_ADD_ID; x.biz_type = WmsWareHouseConst.BIZTYPE_WMSKITTINGOUTSTK_ID; + x.location_id = ids[i]; var d = input[i]?.wmsKittingoutDs?.Adapt>(); d?.ForEach(it => {