分拣任务变更 现场问题处理

This commit is contained in:
2024-10-15 14:30:59 +08:00
parent da3db7aee6
commit ca45839b2a
15 changed files with 262 additions and 35 deletions

View File

@@ -426,9 +426,12 @@ namespace Tnb.WarehouseMgr
Logger.Error($"【FinishproductOutstockSign】库位id {wmsCarryH.location_id}没有对应的库位基础资料!");
throw new AppFriendlyException($"库位id {wmsCarryH.location_id}没有对应的库位基础资料!", 500);
}
if (location != null && location.region_id != WmsWareHouseConst.REGION_CPManualOutstock_ID)
if (location.is_type == "0")
{
throw new Exception($"托盘{wmsCarryH.carry_code}不在人工出库库位中,不能签收!");
if (location != null && location.region_id != WmsWareHouseConst.REGION_CPManualOutstock_ID)
{
throw new Exception($"托盘{wmsCarryH.carry_code}不在人工出库库位或者出入库库位中,不能签收!");
}
}
WmsDistaskH wmsDistaskH = _db.Queryable<WmsDistaskH>().Where(r => r.carry_code == input.carry_code && r.endlocation_id == location.id