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
This commit is contained in:
Jacques Le Roux
2009-09-09 22:00:20 +00:00
parent f064221200
commit 4abde989a9
+9 -11
View File
@@ -322,14 +322,19 @@ function setAlternateGwp(field) {
</table>
<table>
<#if shoppingCart.getAdjustments()?has_content>
<tr>
<th>${uiLabelMap.CommonSubTotal}:</th>
<td><@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/></td>
<td>&nbsp;</td>
</tr>
<#if (shoppingCart.getDisplaySubTotal()-shoppingCart.getSubTotal() > 0.0)>
<tr>
<th>${uiLabelMap.CommonSubTotal}:</th>
<td><@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/></td>
<td>&nbsp;</td>
<th>${uiLabelMap.OrderSalesTaxIncluded}:</th>
<td><@ofbizCurrency amount=shoppingCart.getDisplaySubTotal()-shoppingCart.getSubTotal() isoCode=shoppingCart.getCurrency()/></td>
</tr>
</#if>
<#list shoppingCart.getAdjustments() as cartAdjustment>
<#assign adjustmentType = cartAdjustment.getRelatedOneCache("OrderAdjustmentType")>
<!-- adjustment info: ${cartAdjustment.toString()} -->
<tr>
<th>
${uiLabelMap.EcommerceAdjustment} - ${adjustmentType.get("description",locale)?if_exists}
@@ -340,13 +345,6 @@ function setAlternateGwp(field) {
</tr>
</#list>
</#if>
<#if (shoppingCart.getTotalSalesTax() > 0.0)>
<tr>
<th>${uiLabelMap.OrderSalesTax}:</th>
<td><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency()/></td>
</tr>
</#if>
<tr>
<th>${uiLabelMap.EcommerceCartTotal}:</th>
<td><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></td>