This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/release18.12 by this push:
new 9aa4e6c Fixed: Error page shown when clicking on a product Id in the
purchase order page (OFBIZ-12229)
9aa4e6c is described below
commit 9aa4e6c662ec4fc6c1c7a833557d81d2ee2f285f
Author: Jacques Le Roux <[email protected]>
AuthorDate: Sat May 1 18:56:41 2021 +0200
Fixed: Error page shown when clicking on a product Id in the purchase order
page (OFBIZ-12229)
There is no "basePrice" resulting from calculatePurchasePrice service
calling but
a simple "price".
This was put in with d04f777 commit and OFBIZ-11955
Thanks: Woyce Batkins for report
---
applications/order/groovyScripts/entry/catalog/ProductDetail.groovy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
b/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
index ceffb2c..f7826ea 100644
--- a/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
+++ b/applications/order/groovyScripts/entry/catalog/ProductDetail.groovy
@@ -563,7 +563,7 @@ if (product) {
}
}
}
- variantInfoJS.append(" variantPrices['" + product.productId + "'] =
'" + UtilFormatOut.formatCurrency(priceMap.basePrice, currencyUomId, locale,
10) + "';\n")
+ variantInfoJS.append(" variantPrices['" + product.productId + "'] =
'" + UtilFormatOut.formatCurrency(priceMap.price, currencyUomId, locale, 10) +
"';\n")
variantInfoJS.append(" });\n</script>\n")
context.variantInfoJavaScript = variantInfoJS