svn commit: r592481 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r592481 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/price/PriceServices.java

jacopoc
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);