Discount calculation functions

Discounts of different types can be configured for menu items (see Discount types).

Note

Markup is calculated in the same way as discount, so we will look only at calculating discounts.

For each discount type, discount calculation is made. Calculation methods are defined by discount calculation functions. These functions are actions that modify guest tabs.

The information from directories and filter steps are used when calculating discounts. Actions can be created and edited by the user.

The functions used to calculate discounts are held in the Discount calculation functions directory.