From 57f7847246daf4f300d115b9503e328c7c50eae7 Mon Sep 17 00:00:00 2001
From: "b.ulrich" <b.ulrich@adito.de>
Date: Mon, 3 Aug 2020 14:18:32 +0200
Subject: [PATCH] [Projekt: Entwicklung - Neon][TicketNr.: 1061849][Anlage von
 Angebotsposition zieht falschen Preis von Produkt]

---
 process/Product_lib/process.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/process/Product_lib/process.js b/process/Product_lib/process.js
index c6e9a85c7e..ee03a52bec 100644
--- a/process/Product_lib/process.js
+++ b/process/Product_lib/process.js
@@ -291,10 +291,10 @@ ProductUtils.getProductDetails = function(pid, priceListFilter, additionalProduc
                 for(var index in priceLists)
                 {
                     
-                    if (!escape && priceLists[index]["priceList"] == priceListFilter.priceList) 
+                    if (priceLists[index]["priceList"] == priceListFilter.priceList) 
                     {
                         res = priceLists[index]; //The first time the condition is true the correct pricelist is found.
-                        escape = true;          // The object is ordered by fromQuantity descending so we have to stop after the condition is true
+                        break;                   // The object is ordered by fromQuantity descending so we have to stop after the condition is true
                     }
                 }
                 return res;
-- 
GitLab