Sales Commission Rules

The commission formulas used by the Process button in Sales Commission. Each rule has a category (Product, Transaction, or Receivable) and a formula using variables the app provides.

When To Use This Form

Fields To Watch

Sales Representative Commission Rule form
A sales commission rule: 3% when the target is met, otherwise 2%. (1) Transaction category - calculated from the representative's sales in the period, (2) Formula - here v.SalesReal >= v.SalesTarget ? round(v.SalesReal * 0.03, 2) : round(v.SalesReal * 0.02, 2), (3) the variables available for that category. A rule applies once it is set in the Commission Rules field of the Sales Representative form.
Field What to watch
Description, Display Name Internal name and the name shown on the commission document.
Category Product: computed per product line sold (commission per item/brand/group). Transaction: per invoice (percentage of turnover, target bonus). Receivable: based on collection (commission follows payment).
Formula JavaScript code returning the commission value; uses the variables available for that category (turnover, profit, target, quantity, price, payment, etc.).
Available Variables, Available Functions Helper lists for composing the formula - pick one to insert its name.

How Rules Are Applied

Common Problems

Menu Location