[ 
https://issues.apache.org/jira/browse/OFBIZ-12662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ingo Wolfmayr updated OFBIZ-12662:
----------------------------------
    Attachment: cart.patch

> getDisplayGrandTotal - double tax
> ---------------------------------
>
>                 Key: OFBIZ-12662
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12662
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: order
>    Affects Versions: Upcoming Branch
>            Reporter: Ingo Wolfmayr
>            Priority: Major
>             Fix For: Upcoming Branch
>
>         Attachments: cart.patch
>
>
> The method getDisplayGrandTotal() from ShoppingCart.java adds tax twice.
> this.getDisplaySubTotal() already inclued item taxes.
> {code:java}
> /** Returns the total from the cart, including tax/shipping. */
>     public BigDecimal getDisplayGrandTotal() {
>         return 
> this.getDisplaySubTotal().add(this.getTotalShipping()).add(this.getTotalSalesTax())
>                 
> .add(this.getOrderOtherAdjustmentTotal()).add(this.getOrderGlobalAdjustments());
>     }{code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to