[ 
https://issues.apache.org/jira/browse/OFBIZ-1086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508141
 ] 

Christian Seeberger commented on OFBIZ-1086:
--------------------------------------------

Hi Thomas,

question:

what's the goal of changing in miniproductsummary.bsh

    priceParams = UtilMisc.toMap("product", miniProduct, 
        "prodCatalogId", prodCatalogId, "webSiteId", webSiteId, 
        "currencyUomId", cart.getCurrency(),
        "autoUserLogin", session.getAttribute("autoUserLogin"),
        "checkIncludeVat", "Y");

your solution works also without "checkIncludeVat=Y", but only as long, as no 
tax calculation was performed.

That means, if you proceed with your checkout to the order verification screen 
and then go back to the store instead of submitting the order, 
sum amounts of minicart and cartscreen are not correctly calculated. (previous 
amount plus tax, which means tax is applied twice)

For the shop I develop (Germany, EU), there is actually no need to sell without 
any taxes, so I am helping me out with this code (e.g. minicart):


<#if (shoppingCart.getTotalSalesTax() > 0.0)>
        <#assign shoppingCartGrandTotal = shoppingCart.getGrandTotal()>
        <#else>
        <#assign shoppingCartGrandTotal = shoppingCart.getDisplayGrandTotal()>
</#if>
     
....

<@ofbizCurrency amount=shoppingCartGrandTotal 
isoCode=shoppingCart.getCurrency()/>


 

> Show prices incl. VAT in shoppingcart Total and miniproductsummary
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-1086
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1086
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ecommerce, order
>    Affects Versions: SVN trunk
>            Reporter: Thomas Herzog
>             Fix For: SVN trunk
>
>         Attachments: carttotal_miniproductsummary_prices__incl_VAT.diff
>
>
> In current implementation of VAT displays a mixture of incl. and excl. prices 
> in some ecommerce screens. This patch shows prices incl. VAT for Mini 
> Shopping Cart Total, Micro Shopping Cart Total (displayed in the Header), 
> Last Products Minibox and Quick Reorder... Minibox.
> It also solves issuses left open in OFBIZ-113.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to