Author: jleroux
Date: Wed May 7 11:51:35 2014 New Revision: 1592981 URL: http://svn.apache.org/r1592981 Log: "Applied fix from trunk for revision: 1592588 " (this is finally needed to backport r1592977 which fixes a related regression) ------------------------------------------------------------------------ r1592588 | jleroux | 2014-05-05 19:53:53 +0200 (lun. 05 mai 2014) | 2 lignes I stumbled upon this today and I agree with Deepak: http://markmail.org/message/2bsurgd52crssldk So backporting also to R13.07 (only) ------------------------------------------------------------------------ Modified: ofbiz/branches/release12.04/ (props changed) ofbiz/branches/release12.04/applications/product/config/catalog.properties ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/price/PriceServices.java ofbiz/branches/release12.04/specialpurpose/ecommerce/config/ecommerce.properties Propchange: ofbiz/branches/release12.04/ ------------------------------------------------------------------------------ Merged /ofbiz/trunk:r1592588 Modified: ofbiz/branches/release12.04/applications/product/config/catalog.properties URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/product/config/catalog.properties?rev=1592981&r1=1592980&r2=1592981&view=diff ============================================================================== --- ofbiz/branches/release12.04/applications/product/config/catalog.properties (original) +++ ofbiz/branches/release12.04/applications/product/config/catalog.properties Wed May 7 11:51:35 2014 @@ -41,3 +41,6 @@ image.management.url=/images/products/ma image.management.nameofthumbnail=-100 image.management.autoApproveImage=Y image.management.multipleApproval=N + +# Automatic product price currency conversion +convertProductPriceCurrency=true Modified: ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/price/PriceServices.java URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/price/PriceServices.java?rev=1592981&r1=1592980&r2=1592981&view=diff ============================================================================== --- ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/price/PriceServices.java (original) +++ ofbiz/branches/release12.04/applications/product/src/org/ofbiz/product/price/PriceServices.java Wed May 7 11:51:35 2014 @@ -524,7 +524,7 @@ public class PriceServices { } // Convert the value to the price currency, if required - if("true".equals(UtilProperties.getPropertyValue("ecommerce.properties", "convertProductPriceCurrency"))){ + if("true".equals(UtilProperties.getPropertyValue("catalog.properties", "convertProductPriceCurrency"))){ if (UtilValidate.isNotEmpty(currencyDefaultUomId) && UtilValidate.isNotEmpty(currencyUomIdTo) && !currencyDefaultUomId.equals(currencyUomIdTo)) { if(UtilValidate.isNotEmpty(result)){ Map<String, Object> convertPriceMap = FastMap.newInstance(); Modified: ofbiz/branches/release12.04/specialpurpose/ecommerce/config/ecommerce.properties URL: http://svn.apache.org/viewvc/ofbiz/branches/release12.04/specialpurpose/ecommerce/config/ecommerce.properties?rev=1592981&r1=1592980&r2=1592981&view=diff ============================================================================== --- ofbiz/branches/release12.04/specialpurpose/ecommerce/config/ecommerce.properties (original) +++ ofbiz/branches/release12.04/specialpurpose/ecommerce/config/ecommerce.properties Wed May 7 11:51:35 2014 @@ -16,7 +16,7 @@ # specific language governing permissions and limitations # under the License. ############################################################################### -convertProductPriceCurrency=true + ############################################ # Janrain Engage |
Free forum by Nabble | Edit this page |