tangdi преди 2 години
родител
ревизия
73fe38a080
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      MicroServices/Business/Business.Application/ReplenishmentManagement/ReplenishmentAppService.cs

+ 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;