diff --git a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs index 0d7c6306..1f10d7be 100644 --- a/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs +++ b/ProductionMgr/Tnb.ProductionMgr/PrdMoTaskService.cs @@ -1609,7 +1609,7 @@ namespace Tnb.ProductionMgr //if (parent.is_hand_set_batch == 1) // batch = parent.batch; - batch= parent.batch; + batch = string.IsNullOrEmpty(parent.batch) ? batch : parent.batch; BasMaterial basMaterial = await _db.Queryable().SingleAsync(x=>x.id==parent.material_id); BasMbom basMbom = await _db.Queryable().SingleAsync(x => x.id == item.bom_id);