When setting up the rules for calculating salaries (commissions) in Orderry, there is an additional event setting — an "**Take into account cost price of products written off for the zero price**" checkbox. This checkbox is available in the following events: to the Specialist / Manager / Lead Manager for a labor or service in the work order.

The calculation is based on the following formula: the cost of the products is subtracted from the amount or profit from the service/labor. And the employee is paid a specified percentage of the amount received.

Remember that the profit from a service/labor is calculated as the service's amount minus the service's cost price.

*E.g., Let’s consider the following case: the "To specialist for the labor or service in order" rule with the amount of 10% is configured in the employee profile, and the "Take into account cost price of products written off for the zero price" checkbox is enabled.*

*In the work order, an employee performed a labor with a price of 300 and a cost price of 50 and added a spare part with a zero price but a cost price of 100.*

*The total amount of labor (300) minus the cost price of the part (100) = 200.*

*10% of 200 = 20*

*As another example, let’s use the same rule but make the calculation not from the amount but from the profit of labor:*

*The total amount of labor (300), subtract the cost price of labor (50) and subtract the cost price of the part (100) = 150.*

*10% of 150 = 15.*