From 4abde989a966dffc69e2bc4bbc2ce55b6738f779 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Wed, 9 Sep 2009 22:00:20 +0000 Subject: [PATCH] Show the total taxes included in sub total when taxes included in prices is selected in store git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@813136 13f79535-47bb-0310-9956-ffa450edef68 --- ecommerce/webapp/ecommerce/cart/showcart.ftl | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/ecommerce/webapp/ecommerce/cart/showcart.ftl b/ecommerce/webapp/ecommerce/cart/showcart.ftl index 9985895b0..f9ee35a7e 100644 --- a/ecommerce/webapp/ecommerce/cart/showcart.ftl +++ b/ecommerce/webapp/ecommerce/cart/showcart.ftl @@ -322,14 +322,19 @@ function setAlternateGwp(field) { <#if shoppingCart.getAdjustments()?has_content> + + + + + + <#if (shoppingCart.getDisplaySubTotal()-shoppingCart.getSubTotal() > 0.0)> - - - + + + <#list shoppingCart.getAdjustments() as cartAdjustment> <#assign adjustmentType = cartAdjustment.getRelatedOneCache("OrderAdjustmentType")> - - - <#if (shoppingCart.getTotalSalesTax() > 0.0)> - - - - -
${uiLabelMap.CommonSubTotal}:<@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/> 
${uiLabelMap.CommonSubTotal}:<@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/> ${uiLabelMap.OrderSalesTaxIncluded}:<@ofbizCurrency amount=shoppingCart.getDisplaySubTotal()-shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency()/>
${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)?if_exists} @@ -340,13 +345,6 @@ function setAlternateGwp(field) {
${uiLabelMap.OrderSalesTax}:<@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency()/>
${uiLabelMap.EcommerceCartTotal}: <@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/>