出库策略调整
This commit is contained in:
@@ -544,8 +544,8 @@
|
|||||||
public const string POLICY_YCLINSTOCK = "WISP202407250001";
|
public const string POLICY_YCLINSTOCK = "WISP202407250001";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 原材料仓出库策略
|
/// 原材料仓先进先出
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public const string POLICY_YCLOUTSTOCK = "WOSP202407250002";
|
public const string POLICY_YCLOUTSTOCK = "WOSP202407250001";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -467,7 +467,8 @@ namespace Tnb.WarehouseMgr
|
|||||||
|
|
||||||
Expression<Func<WmsCarryH, WmsCarryCode, BasLocation, bool>> whereExpr = whereExprable.ToExpression();
|
Expression<Func<WmsCarryH, WmsCarryCode, BasLocation, bool>> whereExpr = whereExprable.ToExpression();
|
||||||
|
|
||||||
WmsInstockPolicies policy = await cyDb.Queryable<WmsInstockPolicies>().Where(it => it.status == 1).FirstAsync();
|
WmsOutstockPolicies policy = await cyDb.Queryable<WmsOutstockPolicies>().Where(it => it.status == 1 && (string.IsNullOrEmpty(input.PolicyCode) ||
|
||||||
|
it.bill_code == input.PolicyCode)).FirstAsync();
|
||||||
if (policy == null)
|
if (policy == null)
|
||||||
{
|
{
|
||||||
throw new AppFriendlyException("没有可用策略", 500);
|
throw new AppFriendlyException("没有可用策略", 500);
|
||||||
|
|||||||
Reference in New Issue
Block a user