Skip to content
Snippets Groups Projects
Commit 7de6016e authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

[Projekt: Entwicklung - Neon][TicketNr.: 1061849][Anlage von Angebotsposition...

[Projekt: Entwicklung - Neon][TicketNr.: 1061849][Anlage von Angebotsposition zieht falschen Preis von Produkt]
parent 4861a4b0
No related branches found
No related tags found
No related merge requests found
......@@ -283,8 +283,21 @@ ProductUtils.getProductDetails = function(pid, priceListFilter, additionalProduc
return priceLists[list];
}
//customer deposited price list (defined by Attribute)
if (priceListFilter.priceList != "" && priceListFilter.priceList == priceLists[list].priceList) {
return priceLists[list];
if (priceListFilter.priceList != "") {
var res;
var escape;
// runs trough the possible pricelists to find the one with the correct pricelist ("-type").
// e.g: PRICELISTSERVICE, PRICELISTSPECIAL, PRICELISTKEY, PRICELISTDEFAULT
for(var index in priceLists)
{
if (!escape && 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
}
}
return res;
}
//default price list
if (priceLists[list].priceList == $KeywordRegistry.productPricelist$standardList()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment