tangdi 2 lat temu
rodzic
commit
73fe38a080

+ 4 - 0
MicroServices/Business/Business.Application/ReplenishmentManagement/ReplenishmentAppService.cs

@@ -4904,6 +4904,10 @@ namespace Business.Replenishment
                         var childs = exm.BomChildExamineList.Where(s => s.is_use == true).ToList();
 
                         var child = childs.Find(s => s.item_number == workord.product_code);
+                        if (workord.morder_type == "返工工单")
+                        {
+                            child = childs.Find(s => s.item_number == workord.product_code && s.level == 1);
+                        }
                         if (child == null)
                         {
                             continue;