You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/11/06 17:38:30 UTC
svn commit: r592481 -
/ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java
Author: jacopoc
Date: Tue Nov 6 08:38:30 2007
New Revision: 592481
URL: http://svn.apache.org/viewvc?rev=592481&view=rev
Log:
Added initial price to the input context for custom services for the price calc.
Modified:
ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java
Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java?rev=592481&r1=592480&r2=592481&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java Tue Nov 6 08:38:30 2007
@@ -495,6 +495,7 @@
}
if (UtilValidate.isNotEmpty(customMethod) && UtilValidate.isNotEmpty(customMethod.getString("customMethodName"))) {
Map inMap = UtilMisc.toMap("userLogin", (GenericValue) context.get("userLogin"), "product", product);
+ inMap.put("initialPrice", (Double)defaultPriceValue.get("price"));
inMap.put("currencyUomId", currencyUomId);
inMap.put("quantity", quantityDbl);
inMap.put("amount", amountDbl);