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

Order/Invoice: Item total result diff total result

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • Trunk, 17.12.08, 18.12.01, Upcoming Branch
    • None
    • accounting, order
    • None

    Description

      In some cases the order total is not correct:

      net price: €1.273
      10% sales tax: € 0.127
      quantity: 1
      grand total: € 1.40

      Now taking the same product and adding it with two order lines:

      grand total: € 2.79

      Right now the grand total is calculated by total all item net prices, total all adjustments and finally adding those two values together.

      The following screenshots are taken from the orderview. Ofbiz request a payment of € 2.80 but will create an invoice with a grand total of € 2.79.

      Heres the result with just one orderline:

       

      I have created a XML file for testing.  Import the file via XML import and create an order:
      partyId: AUT_CUSTOMER
      productStore: Test GmbH
      product 1: AUT_PRODUCT (quantity 1)
      product 1: AUT_PRODUCT_CP (quantity 1)

      Checkout with default settings.

      From my perspective the calculation should be changed to calculate the total amount for each line and calculate the grand total from these results.

       

      Attachments

        1. pricecheckData-1.xml
          9 kB
          Ingo Wolfmayr
        2. Orders.xml
          4 kB
          Ingo Wolfmayr
        3. image-2022-09-16-16-43-38-897.png
          32 kB
          Ingo Wolfmayr
        4. image-2021-11-19-09-59-07-571.png
          9 kB
          Ingo Wolfmayr
        5. image-2021-11-19-09-44-44-443.png
          10 kB
          Ingo Wolfmayr
        6. image-2021-11-19-09-44-18-759.png
          10 kB
          Ingo Wolfmayr
        7. cartRounding.patch
          3 kB
          Ingo Wolfmayr

        Activity

          People

            jleroux Jacques Le Roux
            iwolf Ingo Wolfmayr
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: