diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs index f92c5bf2..ee5b5b91 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMaterialReceiptService.cs @@ -155,7 +155,7 @@ namespace Tnb.ProductionMgr List inPrdMoTask = await db.Queryable(). LeftJoin((x,y)=>x.mo_id==y.id) .Where(x => x.mo_task_status==DictConst.InProgressEnCode) - .Where((x, y) => x.schedule_type==1 || (x.schedule_type==2 && x.parent_id!=null)) + .Where((x, y) => x.schedule_type==2 && x.parent_id!=null) .Where((x,y)=>(x.scheduling_class_type=="1" && twoDayFlag && x.dayshift_worker_id==userId) || (y.mo_type==DictConst.PrdMoTypeBZ && !SqlFunc.IsNullOrEmpty(userWorklineId) && x.workline_id==userWorklineId) || (x.scheduling_class_type=="1" && twoNightFlag && x.nightshift_worker_id==userId)