Skip to main content

Commissions Calculation on Invoice Total until Specific Date

In this window you calculate the commissions of a period from sales invoices, following the commission rules. You review the result source by source, then generate one entry for it. You also open it to browse a saved calculation. For the steps see Calculate commissions. The list of saved calculations is in Calculate Commission Based on Invoice Total.

Opening the window​

  • From the list of saved calculations: New opens a new calculation and Browse opens the selected one. The list opens from the ribbon: Systems > Commissions > on Invoice Total > Commission Calculation.
  • The Commissions group appears if your licence includes the commission on invoice total feature and a file is open. It does not appear in the demo edition.
  • The ribbon command appears for users who have the permission Calculate Commission based on Invoice Total, in the section Commission on invoice total of the Operations tab of Users Management. See Action permissions.

The window​

The window is titled "Commissions Calculation on Invoice Total until Specific Date". You can maximize and resize it. At the top is the period, under it the results grid, then four boxes of totals, and at the bottom the buttons.

Period fields​

FieldDescriptionRequiredValues and rules
NumberThe number of the saved calculation.—Disabled. It shows for a saved calculation only. The program hides it in a new calculation until you generate the entry. The first number is 1 and each calculation adds one.
CurrencyThe currency of the calculation.—Always disabled. It shows the name of the base currency of the file.
FromThe start of the period.—Always disabled. In a new calculation it is the day after the end of the last saved calculation, or the opening date if no calculation was saved before.
ToThe end of the period.YesA new calculation starts with yesterday's date. It must be before today's date and must not be before From. Disabled in a saved calculation.
Entry DateThe date of the commission entry.Yes, to generateStarts with today's date. The program checks it when you click Generate. Disabled in a saved calculation, where it shows the date the calculation was created.
ButtonWhat it does
AccountCalculates the commissions of the period and fills the grid and the boxes. The program checks To first. You can click it again after changing To. Disabled in a saved calculation.
DetailsOpens the details of the source selected in the grid: Fixed commission details or Tier commission details. In a new calculation it is disabled until you select a line.
EntryOpens the generated commission entry in the entry window. Disabled until the entry is generated.
GenerateGenerates the commission entry and saves the calculation. Disabled until you click Account and the total of Amount subject to commission is above zero. It becomes disabled again after generating.
CloseCloses the window. It reads Cancel after Account, because the calculation is not saved yet. If the warning option On cancel is on, the program asks "Do you want to ignore the inputs and close the window?".

Between the bottom buttons is a short line. After Account it shows, in red, "Program will not save commission processing before the entry is generated". After generating, and in a saved calculation, it shows the entry number.

The results grid​

One line for each source and rule. Click a column title to sort. The right-click menu is described in Lists: each line offers Display Cost Center Card..., Display Distributor Card... or Display Salesman Card... according to the kind of source.

ColumnWhat it shows
SourceThe code and name of the source: cost center, distributor or salesman. The Latin names show in the English interface.
RuleThe name of the rule.
Calculate based onThe kind of source: Invoice cost center, Customer cost center, Cost center of customer account, Distributor or Salesman.
Invoices TotalThe total of the sale invoices of the source in the period, minus the returns.
Amount subject to commissionThe amount the percentage was applied to.
CommissionThe commission value.

The program lists the sources that have at least one sale invoice in the period. A source with returns only does not appear.

The totals boxes​

BoxWhat it shows
CommissionThe total of the Commission column.
Amount subject to commissionThe total of the Amount subject to commission column.
CntThe number of lines in the grid.
Invoices TotalThe total of the Invoices Total column.

How the commission is calculated​

For each active rule and each of its sources, the program calculates the invoices dated from From to To, and only those of the invoice forms ticked in the rule.

  1. Amount subject to commission of an invoice = total − discount, then + additions if you ticked Calculate commission on additions, then + the invoice tax if you ticked Calculate commission on taxes.
  2. Invoices of a Sale form count as positive. Invoices of a Sales Returns form are subtracted from the amount.
  3. Invoices Total = the sum of (total − discount + additions + tax) of the Sale invoices, minus the Sales Returns. A return is subtracted the same way as from the amount subject to commission: its additions count if Calculate commission on additions is ticked, its tax if Calculate commission on taxes is ticked.
  4. The source comes from the invoice according to Calculated based on: the cost center of the invoice, the cost center of its customer, the cost center of its customer's account, its distributor or its salesman.
  5. The commission follows the Calculation Policy of the rule:
    • Flat Rate: amount subject to commission × percentage ÷ 100.
    • Calculate commission based on tiered commissions: no commission on the part below the first tier. Each part of the amount between two tiers gets the rate of the first of them, and the part above the last tier gets its rate.
    • Calculate commission based on highest tier rate: the program takes the highest tier the amount really exceeds and applies its rate to the amount above the first tier.
    • If the amount is negative (more returns than sales) and the policy is Calculate commission based on tiered commissions, the tiers are applied to its absolute value and the commission is negative.
    • With Calculate commission based on highest tier rate, a negative amount is calculated on its absolute value and the commission stays positive.

A tier applies only if the amount exceeds its amount. It does not apply when the amount equals it.

Example: a Salesman rule with a flat rate of 2 and Expense Paid. In the period the salesman has a sale invoice with total 10000 and discount 500, a sale invoice with total 6000, and a return with total 1000. No additions and no taxes.

CalculationValue
Amount subject to commission9500 + 6000 − 1000 = 14500.00
Commission at flat rate 214500 × 2 ÷ 100 = 290.00

Tiers example: the first tier is 10000 at rate 2, the second is 20000 at rate 3, and the amount subject to commission is 25000.

PolicyCalculationCommission
Calculate commission based on tiered commissions10000 × 2% (from 10000 to 20000) + 5000 × 3% (above 20000)350.00
Calculate commission based on highest tier rate(25000 − 10000) × 3%450.00

The commission entry​

When you click Generate, the program checks Entry Date with the usual date checks (see Messages). Then it generates one entry and saves the calculation with everything in it, in one operation. A progress window with a cancel button appears. If you cancel, nothing is saved.

  • The entry is posted at once, in the base currency of the file at rate 1, and its date is Entry Date.
  • Its description is "Entry of commissions processing from date … to date …", with the two dates of the period, such as 1-12-2026 and 31-12-2026.
  • Each line of the results grid makes two lines in the entry. The description of each is "Commission: … on total amount of invoice … from … to …", with the source name, the rule name and the two dates.
  • Both lines carry a cost center if the rule is Calculated based on one of the three cost center kinds.
  • With Expense Paid and a positive commission: Commission Account is debited and Commission Contra Account is credited, both from the source line of the rule. With Revenue Received they are reversed. A negative commission reverses the direction, and the amount in the entry is always positive.

Example: the commission 290.00 of the previous example, Expense Paid, Commission Account Commission Expenses and Commission Contra Account Cash.

AccountDebitCredit
Commission Expenses290.00
Cash290.00

After generating, Generate and Account are disabled, Entry opens the entry, and the calculation number appears. In the next new calculation From is the day after To of this one.

If generating fails, the calculation stays as it was, Generate stays enabled and no message appears. Check Entry Date and the commission accounts in the rule, then try again. The invoices of a saved calculation cannot be modified or deleted until the calculation is deleted. When you try, the program shows the invoice message described in Bill.

Fixed commission details​

It opens when you click Details on a line whose rule has a flat rate, or has tiers that start from zero and use the highest tier rate. Its title is "Details of commission on invoice total-" followed by the source name. All its fields are read only.

FieldDescription
From and ToThe period of the calculation.
Commission RateThe flat rate of the rule. If the rule uses the highest tier rate, the program shows the rate of the applied tier.
CommissionThe whole commission of the source.
Commission AccountThe commission account of the source line in the rule.
Commission Contra AccountThe opposite account.
Rule NameThe name of the rule.
Commission ImpactExpense Paid or Revenue Received.
Green lineShows with the highest tier rate: "Tier applied: ", its value, then "And above".

The invoices grid has a line for each invoice that entered the calculation:

ColumnWhat it shows
BillThe form name and invoice number, such as Sale:12.
DateThe invoice date.
CustomerThe customer of the invoice.
Invoice TotalTotal − discount + additions + tax.
Amount subject to commissionBy the options of the rule, negative for a sales return invoice.
CommissionThe commission of the invoice, negative for a sales return invoice.

Right-click menu of the fixed commission details​

Right-click an invoice line. The window adds items to the menu according to your permissions:

ItemWhat it opensPermission
Show InvoiceThe selected invoice, in the window of its form.Your permissions on bills in Users Management.
Show Customer CardThe card of the customer of the selected invoice.Customer / Supplier.
Show Ledger of Commission AccountThe Ledger report of the commission account.Ledger.
Show Ledger of Commission Contra AccountThe Ledger report of the contra account.Ledger.

The report opens in the viewer. The accounts of the last two items are the accounts of the source, not of the selected invoice.

Tier commission details​

It opens when you click Details on a line whose rule has tiers. Its title is the same as the previous window. It has the same fields except Commission Rate, and Commission is hidden if the rule uses the highest tier rate.

The invoices grid has the columns Bill, Date, Customer, Invoice Total and Amount subject to commission, with no commission column. The tiers grid under it:

ColumnWhat it shows
Tier Amount"More than " and the tier amount. The tiers show from the lowest to the highest.
Commission rateThe rate of the tier.
Amount subject to commissionThe part of the amount that fell in the tier.
Commission amountThe commission of the tier.

With Calculate commission based on highest tier rate, the tiers below the applied tier show 0.00, and the applied tier shows the amount above the first tier and the whole commission of the source.

A green line under the grid shows "Amount subject to commission" and its value, then "The commission calculated after the first tier amount" and the first tier amount, joined without spaces between the words and the numbers.

Right-click menu of the tier commission details​

The menu, its items and permissions are as in Fixed commission details.

A saved calculation​

Browse opens the saved calculation in the same window: To, Entry Date, Account and Generate are disabled, and Number shows. The grid and the boxes show what was saved at generation, and Details shows the invoices of that time. Entry Date shows the date the calculation was created, not the date you typed.

Messages​

MessageWhy it appearsWhat to do
The date is today or later, with the line: Processing end date must be prior to today.You clicked Account and To is today or later.Type a date before today.
Processing end date must be equal to or greater than the start date.To is before From, when you change it or click Account.Type a date not before From.
Date is prior to period beginning dateYou clicked Generate and Entry Date is before the start of the file period.Type a date inside the period. It is followed by "Can't continue", then "Entered Date" and the opening date.
Date is after ending dateEntry Date is after the end of the file period.Type a date inside the period.
Cannot continue! The date is before bills lock date.Entry Date is before the operations lock date of the file.An administrator user gets the question "Do you want to continue?", others get "Can't continue". Change the date. No one can continue if the option Force lock date on full authority users is on.
The entered date is prior to the operations' lock date of the current userEntry Date is before the operations lock date set for you in Users Management, checked when the option Use the feature of locking operations by users is on.As above.
Do you want to ignore the inputs and close the window?You closed the window after Account and the warning option On cancel is on.Close Window discards the unsaved calculation, and Cancel returns you to the window.

This page applies to alameen ERP 10, version 10.1.79.764.