Commission Rules Applied to Total Invoice Amount
A commission rule tells alameen ERP 10 how to calculate the commission of salesmen, distributors and cost centers from sales invoices. This page describes the rules list, the rule window with its three pages, and the Add Tier dialog. For the steps see Define commission calculation rules. For what commission means see Understanding commissions.
Opening the window
- From the ribbon: Systems > Commissions > on Invoice Total > Calculation Rules. The rules list opens.
- The Commissions group appears in the ribbon if your licence includes the commission on invoice total feature and a file is open. It does not appear in the demo edition.
- The command appears for users who have the permission Edit commission rules applied to invoice total, in the section Commission on invoice total of the Operations tab of Users Management. See Action permissions.
- From the rules list: New opens a new rule window, and Modify opens the selected rule.
The rules list
The window is titled "Commission Rules Applied to Total Invoice Amount". Its grid lists every saved rule. The cells cannot be edited. The right-click menu of the grid is described in Rules grid.
Grid columns
| Column | What it shows |
|---|---|
| Rule Name | The rule name (always the normal name, never the Latin name). |
| Calculated based on | The source of the rule: Invoice cost center, Customer cost center, Cost center of customer account, Distributor or Salesman. |
| Rule status | The word «فعالة» for an active rule and «غير فعالة» for an inactive one. Both words are in Arabic, also in the English program. |
Window buttons
| Button | What it does |
|---|---|
| New | Opens an empty rule window. When you close it, the program refreshes the grid. |
| Modify | Opens the rule under the cursor in the grid. Disabled when the grid has no rule, or when the cursor is on an empty line. |
| Delete | Deletes the rule under the cursor. Disabled in the same two cases. A confirmation appears, "Are you sure you want to delete?", with the buttons Delete and Cancel. After you confirm, the program checks whether a saved commission calculation used the rule. If so it shows "Cannot delete, the rule is used" and keeps the rule. Otherwise it deletes the rule with its tiers, sources and invoice forms. |
| Close | Closes the window. |
The rule window
The window is titled "Commission on Invoice Total - New Rule", also when you modify an existing rule. At the top are the rule name and status. At its side is a list of three pages: Commission Calculation Parameters, Customize and Source. Click a page name to show it. The window opens on the first page.
Header and buttons
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Name | The rule name. | Yes | Not repeated among the rules. Example: Wholesale sales commission. |
| Latin Name | The rule name in Latin letters. | No | The program does not check it for repeats. In the English interface the program shows it instead of Name, when it is not empty, in the rule column of Commissions calculation and in the entry description. |
| Active | Turns the rule on. | No | A new rule starts ticked. An inactive rule stays saved and the program does not calculate it. |
| Button | What it does |
|---|---|
| Copy Rule | Opens a "Select rule" window with the rule names, then fills this window with the rule you chose: its settings, tiers, sources and invoice forms. Disabled when the open rule is used in a saved calculation. |
| Save | Checks the fields in the order described in Saving. If they are valid, saves the rule and closes the window. |
| Close | Closes the window. It reads Cancel after any change. If the window has unsaved changes and the warning option On cancel is on, the program asks "Do you want to ignore the inputs and close the window?" with Close Window and Cancel. |
After Copy Rule the copied rule carries the name of the original, so the duplicate check blocks saving until you change Name. Invoice forms and sources are copied with the rest of the settings.
Use Copy Rule only in a new rule. If you copy into a rule opened with Modify and then save, the program writes the window's content over the rule you copied from, and the opened rule stays as it was.
Commission Calculation Parameters
This page sets the effect of the commission and the way it is calculated. It has three groups: Commission Impact, Calculation Policy and Other Parameters.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Expense Paid | The commission is an expense for the company. | — | The default. Decides which of the two accounts is debited in the commission entry. See The commission entry. |
| Revenue Received | The commission is income for the company. | — | Reverses the two accounts in the entry. |
| Flat Rate | The commission is one percentage of the amount subject to commission. | — | The default. Enables the percentage box and disables the tier controls. The tiers grid empties on screen, but earlier tiers stay in the rule and are saved with it. |
| % (the box next to Flat Rate) | The percentage. | Yes with Flat Rate | A number greater than 0 and less than 100. Example: 2.5. The program clears it when you choose Tiers. |
| Tiers | The commission uses percentages that change with the amount. | — | Enables the grid, the two buttons and the two options below it, and disables the percentage box. The program ticks Calculate commission based on highest tier rate for you. |
| Tiers grid | The tiers added so far. | At least one tier with Tiers | Two columns, When items value exceeds the amount and A salesman gets a percentage. The cells cannot be edited. The tiers keep the order in which you added them, which is ascending. See Tiers grid. |
| Calculate commission based on highest tier rate | The percentage of the highest tier the amount reached applies to the whole amount above the first tier. | — | Enabled with Tiers only. |
| Calculate commission based on tiered commissions | Each part of the amount gets the percentage of the tier it falls in. | — | Enabled with Tiers only. |
| Calculate commission on taxes | Adds the invoice tax to the amount subject to commission. | No | Not ticked in a new rule. |
| Calculate commission on additions | Adds the invoice additions to the amount subject to commission. | No | Ticked in a new rule. |
The discount is always subtracted from the amount subject to commission. How the two options work in the calculation, with a worked example, is in Commissions calculation.
| Button | What it does |
|---|---|
| Add Tier | Opens the Add Tier dialog. Disabled with Flat Rate. |
| Delete Tier | Deletes only the last tier of the grid, after the confirmation "Are you sure you want to delete?". It cannot delete a tier from the middle. Disabled with Flat Rate. |
The Add Tier dialog
The dialog is titled "Add Tier". It adds a tier at the end of the grid.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Tier Amount | The amount where the tier starts. | Yes | Greater than the previous tier amount. Example: the first tier 10000 and the second 20000. The dialog accepts zero for the first tier. |
| Tier Commission Rate | The percentage of the tier. | Yes | Greater than 0 and not more than 100, and greater than the previous tier rate. Example: 2 then 3. |
| Button | What it does |
|---|---|
| Add | Checks the two fields. If they are valid, adds the tier and closes the dialog. |
| Close | Closes the dialog without adding. |
The checks run in this order: Tier Amount filled, Tier Commission Rate filled, the rate range, the amount above the previous one, then the rate above the previous one. Tiers cannot be edited after you add them: delete the last tier and add it again.
Customize
This page sets which sources the rule applies to, and the two accounts of the commission entry of each source.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Calculated based on | The kind of source whose invoices are added up. | Yes | List: Invoice cost center (the default), Customer cost center, Cost center of customer account, Distributor and Salesman. Changing the choice clears the sources grid. The list is disabled if the rule is used. |
| Sources grid | The sources the rule applies to. | At least one line | Three columns. The name of the first column follows Calculated based on. The same source cannot appear twice in one rule. Up to one hundred lines. See Sources grid. |
Columns of the sources grid:
| Column | What it holds | Rules |
|---|---|---|
| Source | The column is named Invoice cost center, Customer cost center, Cost center of customer account, Distributor or Salesman. | Type part of the name and press Enter to open the selection window. The window lets you select several sources at once, and they fill the next lines. The lookup boxes are described in Lookup boxes. |
| Commission Account | The account affected by the commission. | The program fills it from the commission account in the card of the source when you choose the source. You can change it by searching for another account. |
| Commission Contra Account | The opposite account. | Like the previous column. |
The commission account and the contra account of each source are set in its card: Salesman Card, Distributor Card and the cost center card. The customer cost center comes from the customer card, and the cost center of the customer account from the account card.
The same source may appear in more than one active rule. The program calculates each rule separately.
Source
This page sets which invoice forms enter the calculation.
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Group of forms | The list of invoice forms of the types Sale and Sales Returns, with a box for each form. | Yes, at least one form | A new rule starts with every box unticked. Only invoices of ticked forms are calculated. Invoices of a Sale form increase the amount subject to commission, and invoices of a Sales Returns form decrease it. The program shows the normal form name. |
Saving the rule
Save checks in this order and stops at the first error, showing the page that has it:
- Name is filled.
- Name is not used by another rule.
- The Commission Calculation Parameters page: the flat percentage is a number, or at least one tier exists, then the range of the percentage.
- The Customize page: every source line has both accounts, then at least one source exists.
- The Source page: at least one form is ticked.
When you modify a rule, the program updates the rule and then replaces its forms, tiers and sources in one operation.
A rule used in a calculation
A rule becomes "used" when it enters a saved commission calculation. When you open it, the program disables what would change the results of earlier calculations:
- On Commission Calculation Parameters: every button, option and box. You cannot change the effect, the percentage, the tiers or the two other options.
- On Customize: the Calculated based on list. Sources that entered a saved calculation cannot be edited or deleted. You can add new sources and edit the others.
- On Source: the whole list of forms.
- Name, Latin Name and Active stay editable. Copy Rule does not work.
To stop a used rule from new calculations, clear Active.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Cannot delete, the rule is used | You clicked Delete and confirmed, and the rule is in a saved commission calculation. | Clear Active instead of deleting, or delete the calculations that used the rule. |
| Must fill "Name" field | You clicked Save and Name is empty. | Type the name. |
| Name is used in other card! | Name equals the name of another rule. | Change the name. The message appears after Copy Rule until you change the name. |
| A fixed share of percentage must be entered in Commission Percentage tab | Flat Rate is ticked and the percentage box has no number. | Type a number, or choose Tiers. |
| Please enter one tier at least | Tiers is ticked and the grid has no tiers. | Click Add Tier. |
| Percentage must be greater than zero and less than 100 | A flat percentage or a tier rate is outside the range. | Type a percentage in the range. |
| Amount value of the tier is a required field | Tier Amount is empty in the Add Tier dialog. | Type the amount. |
| Percentage value of the tier is a required field | Tier Commission Rate is empty. | Type the rate. |
| The Tier Amount must be greater than the previous tier amount | The amount is not above the last tier amount. | Type a larger amount. |
| The Tier Commission Rate must be greater than the previous tier rate | The rate is not above the last tier rate. | Type a larger rate. |
| Commission Account is missing | A source line on Customize has no Commission Account. | Choose the account. |
| Commission Contra Account is missing | A source line has no Commission Contra Account. | Choose the account. |
| Please enter one cost center at least | Calculated based on is one of the three cost center kinds and the grid has no source. | Add a cost center. |
| Please enter one distributor at least | Calculated based on is Distributor and the grid has no source. | Add a distributor. |
| Please enter one salesman at least | Calculated based on is Salesman and the grid has no source. | Add a salesman. |
| Please select one source at least | No form is ticked on Source. | Tick a form. |
Related
This page applies to alameen ERP 10, version 10.1.79.764.