Using Gross and Net Price Types
With Liferay Commerce, you can use either Gross or Net price types for calculating promotions and discounts. This setting is configured for Price Lists and Channels.
Setting the Price List’s Price Type
-
Open the Global Menu (
), click on the Commerce tab, and go to Price Lists.
-
Click on the Price List you want to configure.
-
In the Details tab, use the Price Type drop-down menu to select either Net Price or Gross Price.
-
Click on Publish when finished.
The selected price type is used to calculate promotions and discounts for this Price List.
Setting Price Type in a Channel
-
Open the Global Menu (
), click on the Commerce tab, and go to Channels.
-
Click on the desired Channel.
-
In the Prices section of the General tab, use the Price Type and Discounts Target Price Type drop-down menus to select either Net Price or Gross Price.
-
Click on Save when finished.
Understanding Gross and Net Price Calculations
Liferay Commerce uses different calculation flows depending on whether prices are gross or net:
-
If a Price List or promotion uses gross prices, Commerce subtracts tax to calculate the net price.
-
The net price is used to compute the unit and promotion prices. Additional price modifiers are then applied.
-
The system selects the best net price between unit and promotion prices and applies the discount.
Discount Calculations:
-
If the discount is a gross fixed amount, taxes are removed before applying the discount to the net price.
-
If the discount is a gross percentage, the net discount percentage is recalculated using the formula: N = L - T(100 - L)
Where:
- N = Net discount percentage
- L = Listed (gross) discount percentage
- T = Tax rate (%)
Taxes are calculated on the final price after discounts are applied.
Order Item Details
Each order item on the order details page includes the following attributes:
- SKU
- Name
- Price (net)
- Price (gross)
- Discount (net or gross)
- Quantity
- Total (net)
- Total (gross)
When the unit, promo and final prices are shown in the channel, the system adds net and tax in case the channel is configured to show gross prices.