增加存储库位判断,限制条件
This commit is contained in:
@@ -171,7 +171,7 @@ namespace Tnb.WarehouseMgr
|
||||
it => new BasLocation { is_lock = 1 });
|
||||
}
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
throw new AppFriendlyException("无可出库的空载具或目标库位不存在或者目标库位被锁", 500);
|
||||
}
|
||||
@@ -226,7 +226,7 @@ namespace Tnb.WarehouseMgr
|
||||
if (input.IsNull()) throw new ArgumentNullException("input");
|
||||
try
|
||||
{
|
||||
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.location_code == input.location_code);
|
||||
var location = await _db.Queryable<BasLocation>().SingleAsync(it => it.location_code == input.location_code && it.is_type != EnumLocationType.存储库位.ToString());
|
||||
var dic = new Dictionary<string, object>();
|
||||
dic[nameof(WmsEmptyOutstockH.id)] = SnowflakeIdHelper.NextId();
|
||||
dic[nameof(WmsEmptyOutstockH.org_id)] = input.org_id;
|
||||
|
||||
Reference in New Issue
Block a user