Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-3798

Gross discount percentage calculation is not correct

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 2.1.1
    • Component/s: None
    • Labels:
      None

      Description

      1) Create a minium site for convenience;

      2) Activate a tax calculation on the created channel that is targeting a category;

      3) Create a discount that is targeting a product in the category used in step 2, or a discount on total/subtotal;

      4) In the channel configuration page set:

      • Price Type = Net and Discount Target Type = Net 
        • Go to minium product page and check that the price is correctly displayed on the product;
        • Add the product to the cart and verify that the discount percentage is correct;
        • Go to pending orders page and check that the data is correct;
      • Price Type = Gross and Discount Target Type = Net;
        • (repeat checks)
      • Price Type = Gross and Discount Target Type = Gross;
        • (repeat checks)
      • Price Type = Net and Discount Target Type = Gross;
        • (repeat checks)

      Note:

      Price Type = Net/Gross decides if the channel is displaying prices with or without taxes

      Discount Target Type = Net/Gross decides if the discount is affecting the Net or Gross price of the targeted entity

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pietro.bocale Pietro Bocale
              Reporter:
              riccardo.alberti Riccardo Alberti
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.1