From f0cd365956860d40c0ca3bbc9a2dca7076b50dde Mon Sep 17 00:00:00 2001 From: Adam Heath Date: Tue, 30 Nov 2010 22:04:11 +0000 Subject: [PATCH] Allow optimizeForLargeRuleSet to be specified when calling calculateProductPrice; previously, it was always hard-coded to false. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1040803 13f79535-47bb-0310-9956-ffa450edef68 --- applications/product/servicedef/services_pricepromo.xml | 1 + .../product/src/org/ofbiz/product/price/PriceServices.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/product/servicedef/services_pricepromo.xml b/applications/product/servicedef/services_pricepromo.xml index 89b9666484..8cb1f71b52 100644 --- a/applications/product/servicedef/services_pricepromo.xml +++ b/applications/product/servicedef/services_pricepromo.xml @@ -63,6 +63,7 @@ under the License. each Map in the List will also contain a field called "quantityProductPriceRule" with the GenericValue object representing the ProductPriceRule with the quantity condition that the List entry is based on --> + */ public static Map calculateProductPrice(DispatchContext dctx, Map context) { - boolean optimizeForLargeRuleSet = false; - // UtilTimer utilTimer = new UtilTimer(); // utilTimer.timerString("Starting price calc", module); // utilTimer.setLog(false); @@ -97,6 +95,7 @@ public class PriceServices { String findAllQuantityPricesStr = (String) context.get("findAllQuantityPrices"); boolean findAllQuantityPrices = "Y".equals(findAllQuantityPricesStr); + boolean optimizeForLargeRuleSet = "Y".equals(context.get("optimizeForLargeRuleSet")); String agreementId = (String) context.get("agreementId");