bug
This commit is contained in:
@@ -102,6 +102,12 @@ namespace Tnb.ProductionMgr
|
||||
throw Oops.Bah("计划数量不能为空");
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(item.dept_id))
|
||||
{
|
||||
Log.Error("【SavePrdMo】生产部门id不能为空");
|
||||
throw Oops.Bah("生产部门id不能为空");
|
||||
}
|
||||
|
||||
if (item.ebom_version == null || item.ebom_version.IsEmpty())
|
||||
{
|
||||
Log.Error("【SavePrdMo】物料清单版本不能为空");
|
||||
@@ -153,6 +159,7 @@ namespace Tnb.ProductionMgr
|
||||
item.erp_line_pk = item.erp_line_pk;
|
||||
item.erp_lineno = item.erp_lineno;
|
||||
item.unit_id = unitDic?.EnCode ?? item.unit_id;
|
||||
item.dept_id = item.dept_id;
|
||||
|
||||
moList.Add(item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user