tangdi 2 лет назад
Родитель
Сommit
6069f41d23

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

@@ -3378,7 +3378,7 @@ namespace Business.Replenishment
                             shdzbCount++;
                             isDel = false;
                         }
-                        if (podslist.Exists(x => x.ponumber == mst.PurOrd && x.itemnum == dtl.ItemNum && x.poline == dtl.Line && (x.status.ToUpper() != "C" || (x.status.ToUpper() == "C" && x.sentqty > 0))))//非关闭或已关闭但是有已交数量  则有交货单
+                        if (podslist.Exists(x => x.ponumber == mst.PurOrd && x.itemnum == dtl.ItemNum && x.poline == dtl.Line && ((x.status.ToUpper() != "C" && x.schedqty > 0) || (x.status.ToUpper() == "C" && x.sentqty > 0))))//非关闭但是有需求数量或已关闭但是有已交数量  则有交货单
                         {
                             dsCount++;
                             isDel = false;