bug
This commit is contained in:
@@ -135,7 +135,7 @@ namespace Tnb.ProductionMgr
|
||||
|
||||
string mocode = item.mo_code+"-"+item.erp_lineno;
|
||||
PrdMo existMo = await _db.Queryable<PrdMo>().Where(x => x.mo_code == mocode).FirstAsync();
|
||||
if (existMo.mo_status != DictConst.ToBeScheduledId)
|
||||
if (existMo!=null && existMo.mo_status != DictConst.ToBeScheduledId)
|
||||
{
|
||||
Log.Error($"【SavePrdMo】生产工单{mocode}状态不是待下发无法覆盖");
|
||||
throw Oops.Bah($"【SavePrdMo】生产工单{mocode}状态不是待下发无法覆盖");
|
||||
|
||||
Reference in New Issue
Block a user