委外订单接口,原材料移库策略调整
This commit is contained in:
@@ -216,7 +216,8 @@ namespace Tnb.WarehouseMgr
|
||||
try
|
||||
{
|
||||
var db = _db.CopyNew();
|
||||
WmsInstockPolicies policy = await db.Queryable<WmsInstockPolicies>().Where(it => it.status == 1).FirstAsync();
|
||||
WmsInstockPolicies policy = await db.Queryable<WmsInstockPolicies>().Where(it => it.status == 1 && (string.IsNullOrEmpty(input.PolicyCode)||
|
||||
it.bill_code == input.PolicyCode)).FirstAsync();
|
||||
if (policy == null)
|
||||
{
|
||||
throw new AppFriendlyException("没有可用的策略", 500);
|
||||
|
||||
Reference in New Issue
Block a user