Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-12662

getDisplayGrandTotal - double tax

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Upcoming Branch
    • Upcoming Branch
    • order
    • None

    Description

      The method getDisplayGrandTotal() from ShoppingCart.java adds tax twice.

      this.getDisplaySubTotal() already inclued item taxes.

      /** 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());
          }

       

      Attachments

        1. cart.patch
          0.8 kB
          Ingo Wolfmayr

        Activity

          People

            Unassigned Unassigned
            iwolf Ingo Wolfmayr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: