This commit is contained in:
2024-09-11 15:01:17 +08:00
2 changed files with 6 additions and 6 deletions

View File

@@ -137,7 +137,7 @@ namespace Tnb.ProductionMgr
item.material_id = basMaterial.id;
item.mo_source = "1";
item.mo_type = moTypeDic[item.mo_type];
item.mo_code = item.mo_code;
item.mo_code = item.mo_code+"-"+item.erp_lineno;
item.create_id = WmsWareHouseConst.AdministratorUserId;
item.create_time = DateTime.Now;
item.mo_status = DictConst.ToBeScheduledId;

View File

@@ -571,11 +571,11 @@ namespace Tnb.QcMgr
}
if (enumTriggerEvent == EnumTriggerEvent.)
{
int? number = _repository.AsSugarClient().Queryable<QcCheckPlanAdd>().Where(p => p.mainid == plan.id).First().number;
if ((entity.newpronum + (entity.oldpronum / number)) <= (entity.oldpronum / number))
{
removePlanHs.Add(plan);
}
// int? number = _repository.AsSugarClient().Queryable<QcCheckPlanAdd>().Where(p => p.mainid == plan.id).First().number;
// if ((entity.newpronum + (entity.oldpronum / number)) <= (entity.oldpronum / number))
// {
// removePlanHs.Add(plan);
// }
}
if (enumTriggerEvent == EnumTriggerEvent.)
{