原材料仓逻辑、看板调整
This commit is contained in:
@@ -176,6 +176,12 @@ namespace Tnb.WarehouseMgr
|
||||
throw new Exception($"托盘{input.carrycode}已绑定物料!");
|
||||
}
|
||||
|
||||
var WmsTempCodes = await _db.Queryable<WmsTempCode>().Where(it => input.details.Select(r => r.barcode).Contains(it.barcode)).ToListAsync();
|
||||
if (WmsTempCodes.DistinctBy(r => r.required_type).Count() == 1)
|
||||
{
|
||||
throw new Exception($"不能绑定多个不同类型单据打印的条码!:{string.Join(',', WmsTempCodes.DistinctBy(r => r.required_type))}");
|
||||
}
|
||||
|
||||
List<WmsCarryCode> WmsCarryCodes = new List<WmsCarryCode>();
|
||||
foreach (var detail in input.details)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user