This commit is contained in:
2024-09-19 15:28:12 +08:00
parent 9c098c0a6f
commit b6494a4cd8
8 changed files with 53 additions and 29 deletions

View File

@@ -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);
}