To enable margin calculation, go to the 'Settings' module:

In the 'Sales' section, enable the 'Margin' setting by checking the box:

Now when creating an order, you will be able to see information about the margin in monetary and percentage terms. To do this, in the order, click on the edit icon and check the 'Margin' and 'Margin (%)' boxes:

After this, when creating an order, you will be able to see margin information by line (product) and overall for the order:

If you need to generate a margin report by orders, then in the 'Sales' module, go to the 'Reporting' menu:

Here, switch to table view:

In the 'Measures' parameter, display the 'Margin' item:

Next, use filters and groupings to configure the report.
In particular, you can display margin information by product with grouping by periods:


Grouping by customer and order number, etc.
