Authorization rules
Approval limits that stop a voucher's submit above an amount or a discount.
An Authorization Rule sets a limit on a voucher. At or above the limit, only the rule's approving role or user can submit it. Find it under Setup > Access.
Fields
| Field | Use |
|---|---|
| Transaction | Sales Order, Purchase Order, Quotation, Delivery Note, Sales Invoice, Purchase Invoice or Purchase Receipt |
| Based On | Grand Total, Average Discount, Customerwise Discount, Itemwise Discount, Item Group wise Discount, or Not Applicable |
| Customer or Item, Customer / Item / Item Group | Limits a discount rule to one customer, item or item group |
| Company | Limits the rule to one company |
| Authorized Value | The limit. A Grand Total rule compares the voucher's base grand total, a discount rule the discount percentage |
| Applicable To (Role), Applicable To (User) | Whose submits the rule checks. Leave both empty for everyone. The Employee and Designation fields are stored only |
| Approving Role, Approving User | Who may submit above the limit |
How the check runs
The submit of each listed voucher runs the check. With no Authorization Rule on the site, nothing is checked.
Rules that name the submitting user run first.
Then rules for the user's roles, for each Based On that no user rule already covered.
Then rules that name no one, for what is left.
When the value is at or above a rule's Authorized Value and the user is neither the approving user nor holds the approving role, the submit fails with "Not authorized since Grand Total exceeds limits. Can be approved by ...".
A rule for the voucher's company wins over one with no company. Itemwise and Item Group wise rules check each item row's discount percentage. Customerwise and Average Discount rules check the voucher's average discount.
Example
Sales users may submit Sales Orders up to 100,000. Above that, a Sales Manager must.
| Field | Value |
|---|---|
| Transaction | Sales Order |
| Based On | Grand Total |
| Company | Acme Traders |
| Authorized Value | 100000 |
| Applicable To (Role) | Sales User |
| Approving Role | Sales Manager |
A Sales User submits an order with Grand Total 120,000 and gets the error. A Sales Manager opens the same draft and submits it.