Explorar el Código

排除数量为零的工单

Murphy hace 2 años
padre
commit
06b524ce29

+ 1 - 1
MicroServices/Business/Business.Application/ReplenishmentManagement/ReplenishmentAppService.cs

@@ -2998,7 +2998,7 @@ namespace Business.Replenishment
                     {
                         itemQty = Math.Ceiling(itemQty.GetValueOrDefault());
                     }
-                    if(!weeksubPlanList.Any(a=>a.ItemNumber== subProductItemModel[key].item_number && a.PlanMonth== kMonth))
+                    if(!weeksubPlanList.Any(a=>a.ItemNumber== subProductItemModel[key].item_number && a.PlanMonth== kMonth) && itemQty>0)
                     {
                         mes_morder mes_Morder = new mes_morder();
                         mes_Morder.GenerateNewId(help.NextId());