Skip to content
Snippets Groups Projects
Commit ff985e44 authored by j.goderbauer's avatar j.goderbauer
Browse files

Offeritem: product-info was not set on change of product

parent 52ed7322
No related branches found
No related tags found
No related merge requests found
...@@ -18,13 +18,14 @@ if(pid != "") ...@@ -18,13 +18,14 @@ if(pid != "")
var PriceListFilter = { currency: currency, quantity: vars.get("$field.QUANTITY"), relationId: contactid, priceList: pricelist }; var PriceListFilter = { currency: currency, quantity: vars.get("$field.QUANTITY"), relationId: contactid, priceList: pricelist };
//TODO: loading from db until loading from Consumer is possible. //TODO: loading from db until loading from Consumer is possible.
var productInfoSubSql = newSelect("DESCRIPTION")
.from("DESCRIPTIONTRANSLATION")
.whereIfSet("DESCRIPTIONTRANSLATION.OBJECT_ROWID", "$local.value")
.and("DESCRIPTIONTRANSLATION.OBJECT_TYPE = 'Product'")
.andIfSet("DESCRIPTIONTRANSLATION.LANG", "$param.Language_param")
.toString();
var ProductDetails = ProductUtils.getProductDetails(pid, PriceListFilter, var ProductDetails = ProductUtils.getProductDetails(pid, PriceListFilter,
[["info", "(" + newSelect("DESCRIPTION") [["info", "(" + productInfoSubSql + ")"]
.from("DESCRIPTIONTRANSLATION")
.whereIfSet("DESCRIPTIONTRANSLATION.OBJECT_ROWID", "local.value")
.and("DESCRIPTIONTRANSLATION.OBJECT_TYPE = 'Product'")
.andIfSet("DESCRIPTIONTRANSLATION.LANG", "$param.Language_param")
.toString() + ")"]
]); ]);
if(ProductDetails.productId != undefined) if(ProductDetails.productId != undefined)
......
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