增加存储库位判断,限制条件

This commit is contained in:
FanLian
2023-07-17 17:06:57 +08:00
parent 0a1d4db247
commit 2509eb739d
4 changed files with 13 additions and 7 deletions

View File

@@ -316,7 +316,7 @@ namespace Tnb.WarehouseMgr
//出库申请明细表
List<WmsOutstockD> outstockDs = input.outstockDs.Adapt<List<WmsOutstockD>>();
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.location_code == input.outstock.location_code);
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.location_code == input.outstock.location_code && it.is_type != EnumLocationType..ToString());
//如果数据不全,
if (location.IsNull() || outstockDs?.Count < 1)
{