diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs index f2eead51..4157687b 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsMaterialTransferService.cs @@ -539,7 +539,7 @@ namespace Tnb.WarehouseMgr } InStockStrategyQuery inStockStrategyInput = new() { warehouse_id = WmsWareHouseConst.WAREHOUSE_CP_ID, Size = items_pretask.Count, Region_id = WmsWareHouseConst.REGION_CPOutstock_ID }; - List endLocations = await _wareHouseService.InStockStrategy(inStockStrategyInput); + List endLocations = await _wareHouseService.InStockStrategy(inStockStrategyInput, _db); int instockLocIndex = 0; foreach (Tuple item in items_pretask) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs index aaff4c2c..2d499131 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WmsPDAScanInStockService.cs @@ -489,7 +489,7 @@ namespace Tnb.WarehouseMgr code_batch = r.Key.code_batch, material_specification = item.material_specification, container_no = item.container_no, - warehouse_id = WmsWareHouseConst.WAREHOUSE_CP_ID, + warehouse_id = WmsWareHouseConst.WAREHOUSE_YCL_ID, print_qty = qty, scan_qty = qty, print_id = "",