Skip to content

Commission Scheme Applet

Purpose and Overview

The Commission Scheme Applet gives sales administrators and finance teams a single place to define how salespeople, agents, and affiliates earn commissions. Instead of maintaining manual spreadsheets or chasing finance to calculate payouts, you build the rules once in this applet and the system applies them automatically across all qualifying transactions.

Core Concept: A Commission Scheme is a set of Rules (who qualifies, for what documents, on which items) plus a Treatment (how much commission is earned and how it is calculated). Attach a Sales Group to organize your salespeople, and use a Pricing Model to define tiered payout ranges.

Who Benefits from This Applet?

Sales Administrators:

  • Define commission rules for individual agents, teams, or MLM downlines
  • Control which document types (invoices, receipts, sales orders) trigger commissions
  • Restrict schemes to specific branches, companies, customers, or items

Finance Teams:

  • Replace manual commission spreadsheets with automated rule-based calculations
  • Configure tiered pricing models with range-based multipliers
  • Audit exactly which rules fired for any commission payout

Sales Managers:

  • Organize salespeople into Sales Groups for reporting and scheme assignment
  • Link multiple salesmen to a group and manage group-level commission logic
  • Track commission entitlements by scheme and sales group

MLM / Multi-Level Businesses:

  • Configure multi-level downline treatments (Level 0 = self, Level 1 = parent, etc.)
  • Set commission rates and membership point awards per level
  • Support complex agent network structures

What Problems Does This Solve?

Before this applet, commission calculation typically involved:

  • Manual spreadsheets updated after every sales period
  • Errors from applying wrong rates to wrong agents or items
  • No audit trail linking a commission payment to a specific rule
  • Separate configurations for each sales channel or product category

With this applet, you get:

  • Rule-based automation — define conditions once; commissions calculate on every qualifying transaction
  • Flexible targeting — restrict schemes by branch, company, customer type, item, category, or sales group
  • Multi-level support — configure commission chains for downline agent networks
  • Pricing Model tiers — set range-based commission rates (e.g. 5% for sales 0–10k, 8% for sales 10k–50k)
  • Membership points — award loyalty points alongside or instead of cash commissions

Key Features Overview

Commission Scheme Applet infographic explaining rules, treatment levels, and tiered pricing model payouts
Commission Scheme Applet overview: define who qualifies with rules and calculate final payouts with treatments and tiered pricing models.

Quick Start Guide

Sales Admin: Create Your First Commission Scheme

Goal: Set up a working commission scheme for a sales agent in 5 steps.

  1. Navigate: Click Commission Scheme in the sidebar
  2. Create: Click "+" → Enter a Code and Name → Select Commission Type (SALES_AGENT or MLM) → Click CREATE
  3. Add Rules (on the Edit screen):
    • Click the Rules - Doc Hdr tab → Click Add Rule → choose a rule type (e.g. Branch, Company, Document Type) → configure and save
    • Repeat for Rules - Multi Line (item-level conditions) or Rules - Single Line if needed
  4. Set Treatment (on the Treatment tab):
    • For Level 0 (Self): choose Price Source (e.g. Doc Line Net Amount), Operator (e.g. MULTIPLY), and Value (e.g. 0.05 for 5%)
    • For MLM schemes: click Add Downline to add Level 1 (Parent) with its own rates
  5. Save: Click SAVE — the scheme is now active and will apply to all qualifying transactions

Pro Tip: Set the scheme Status to ACTIVE to enable it. Set it to INACTIVE to pause without deleting it.

Create Commission Scheme form with code, name, status, description, and commission type fields
Create Commission Scheme: set the scheme identity and type before adding rules and treatment logic.

Sales Manager: Set Up a Sales Group

Goal: Organise your salespeople so they can be assigned to commission schemes.

  1. Click Sales Group in the sidebar
  2. Click "+" → Enter Sales Group Code and Sales Group Name → Click CREATE
  3. Open the group you just created → click the Salesman tab
  4. Click "+" → search for and select a salesman (employee) → CREATE
  5. Repeat to add all members of this group

Use this group in Commission Scheme rules (via the Sales Group Rule) to limit a scheme to this group’s members only.

Create Sales Group form with code, name, description, and status fields
Create Sales Group: define a named team to target commission rules by sales personnel grouping.

Finance Admin: Create a Tiered Pricing Model

Goal: Define a tiered commission table (e.g. different rates for different sales volume ranges).

  1. Click Pricing Model in the sidebar
  2. Click "+" → Enter Code and Name → Click CREATE
  3. Open the pricing model → click "+" to add a line
  4. For each tier, set:
    • Range From and Range To (the sales value or quantity band)
    • Commission Multiplier or Commission Value (the rate or fixed amount for this band)
    • Optionally set Membership Point Multiplier or Value
  5. Click SAVE

Link this Pricing Model in a Commission Scheme Treatment by selecting PRICING MODEL as the Operator and choosing your model from the dropdown.

Create Pricing Model form with model code, name, logic code, and logic type
Create Pricing Model: set up a reusable tier model for range-based commission calculations.

Commission Scheme

A Commission Scheme is the top-level container that holds everything: the scheme’s identity, its rules that determine when it applies, and its treatment that determines what is paid.

Commission Scheme Listing table showing existing schemes with status and modification dates
Commission Scheme Listing: search, review, and open existing schemes for maintenance.

Creating a Commission Scheme

Click Commission Scheme in the sidebar, then click "+". Fill in:

FieldWhat to enter
CodeA short unique identifier (letters, numbers, hyphens, underscores only)
NameA descriptive name (e.g. “Retail Agent — East Region”)
StatusACTIVE to enable, INACTIVE to pause
DescriptionOptional notes for your team
Commission TypeSALES_AGENT for individual agents; MLM for multi-level downline networks

After clicking CREATE, you are taken to the Edit Commission Scheme screen, which has five tabs:

TabWhat it is for
Main DetailsEdit the code, name, status, description, and type
Rules - Doc HdrDocument-level conditions (which branches, companies, customers, document types qualify)
Rules - Multi LineLine-level conditions (which items, categories, or regex patterns qualify)
Rules - Single LineSingle-line conditions (an alternative to multi-line for specific setups)
TreatmentHow commission is calculated per level, including pricing model or formula
Tab order is customizable. Go to Settings → Default Selection and use the Details Tab Ordering drag-and-drop to rearrange the tabs in the order that suits your workflow. Click SAVE when done.

Searching Commission Schemes

Use the search bar or the advanced filter panel to find schemes by:

  • Status (ACTIVE / INACTIVE)
  • Created Date range
  • Modified Date range
  • Free-text keyword (matches Code, Name, or Description)
Edit Commission Scheme Main Details tab with scheme code, name, status, and type
Main Details tab: maintain status, metadata, and commission type for each scheme.

Rules in Detail

Rules are the conditions that must be met before a scheme applies to a transaction. There are two levels of rules:

  • Rules - Doc Hdr: conditions evaluated at the document header level (the whole document)
  • Rules - Multi Line / Single Line: conditions evaluated at the individual line item level
Rules Doc Header tab showing rule list including date range, sales group, and document type
Rules - Doc Hdr: configure document-level qualifiers such as document type, period, and sales group.
Rules Multi Line tab showing item category rule and logic settings
Rules - Multi Line: target specific items or categories with AND or OR matching logic.
Rules Single Line tab showing item-level rule conditions
Rules - Single Line: define single-line item matching conditions for focused scheme targeting.

Each rule has:

  • Rule Name: a label for this rule
  • Negation Logic: ENABLED means the condition is inverted (“must NOT match this branch”)
  • Rules Logic (within a rule group): AND means all conditions must match; OR means any one condition must match

Available Rule Types

Rule TypeWhat it targetsExample use
BranchSpecific branchesOnly apply scheme to orders from Kuala Lumpur branch
CompanySpecific companies in your org structureLimit scheme to Company A only
Document TypeDocument types (Sales Invoice, Sales Order, Receipt Voucher, Sales Contract)Only pay commission on Sales Invoices
Entity / CustomerAll customers, or a selected listApply scheme only to VIP customer accounts
Entity TypeCustomer, Supplier, Employee, or MerchantApply scheme to all customer-type entities
ItemSpecific inventory items (with optional minimum quantity and amount)Pay higher rate on Product X with min qty 10
Item CategoryItem categories (also supports min qty / amount)Commission only on Electronics category
Item Code RegexItems whose code matches a patternAll items starting with “PROMO-”
Item Name RegexItems whose name matches a patternAll items containing “Bundle” in the name
Item Category Code RegexCategories whose code matches a patternRegex-based category matching
Item Category Name RegexCategories whose name matches a patternFlexible category targeting
Member ClassMembership class groupsPremium members only
Member LabelMembership label tagsItems tagged “Loyalty”
Sales GroupYour configured sales groupsRestrict scheme to the “East Region” sales group
Employee CategoryEmployee category classificationLimit scheme to “Senior Agent” category
Date ValidityDate range (absolute or relative period)Scheme active only in Q4 promotional period
Negation Logic lets you flip a rule. For example, a Branch rule with Negation = ENABLED means “apply this scheme to ALL branches EXCEPT the ones listed.”

Treatment

The Treatment tab defines how much commission is earned and how it is calculated. For MLM schemes, you configure a treatment per downline level.

Treatment tab showing Level 0 commission settings, membership points, and add uplines option
Treatment tab: configure payout operators, values, and optional membership points by downline level.

Treatment Levels

LevelDescription
Level 0 (Self)The salesman who made the sale
Level 1 (Parent)The direct upline who recruited Level 0
Level 2+Further uplines in the network

Click Add Downline to add more levels. Remove the last level with the delete button.

Commission Configuration (per level)

FieldOptionsWhat it means
Price SourceDoc Hdr Standard/Net/Transaction Amount, Doc Hdr Open Balance Amount, Doc Line Standard/Net/Transaction Amount, Base Quantity, Price Unit Cost, Pricing SchemeWhich value the commission is calculated on
OperatorMULTIPLY, ABSOLUTE, ADD, SUBTRACT, PRICING MODEL, FORMULAHow the value is applied
ValueNumberThe rate or amount (e.g. 0.05 = 5% for MULTIPLY)
Pricing SchemeSelect from configured pricing schemesUsed when Operator = Pricing Scheme
Pricing ModelSelect from configured pricing modelsUsed when Operator = PRICING MODEL (tiered rates)
FormulaCustom formula stringUsed when Operator = FORMULA (e.g. {PRICE_SOURCE}*(150-{DAY})/150*0.016)
Below CostCheckboxAllow commission even when the sale is below cost

Membership Points Configuration (per level)

Alongside cash commission, you can award membership points:

FieldWhat it means
Price SourceWhich value to base the points calculation on
Point CurrencyThe points currency (e.g. “Points”)
OperatorMULTIPLY, ABSOLUTE, ADD, SUBTRACT, or PRICING MODEL
ValueThe points rate or amount
Validity Period (Days)How many days the awarded points remain valid
Pricing SchemeUsed when Operator = Pricing Scheme

Sales Group

A Sales Group organises your salespeople (employees) into named groups. You can then reference a Sales Group in Commission Scheme rules to restrict a scheme to members of that group.

Sales Group Listing table showing group codes, names, and status
Sales Group Listing: manage group records used in commission rule targeting.

Creating a Sales Group

  1. Click Sales Group in the sidebar
  2. Click "+" → enter Sales Group Code (unique), Sales Group Name, and optional Description → set Status → click CREATE

Linking Salesmen to a Group

  1. Open the Sales Group → go to the Salesman tab
  2. Click "+" → search for an employee → click CREATE to link them
  3. To update or remove a link, click an existing salesman row and edit or delete
Edit Salesman group tab with sales group details
Sales Group detail: maintain group metadata and status before assigning members.
Salesman tab listing members linked to a selected sales group
Salesman tab: link or remove sales personnel assigned to the selected sales group.

Searching Sales Groups — filter by Sales Group Code, Sales Group Name, Status, Created Date, or Modified Date.


Pricing Model

A Pricing Model is a tiered commission rate table. Instead of a flat percentage, you define ranges (e.g. sales value bands) and the commission multiplier or fixed value that applies in each band.

Pricing Model Listing table with model code, name, logic code, and logic type
Pricing Model Listing: view and open tier models used in treatment calculations.

Creating a Pricing Model

  1. Click Pricing Model in the sidebar
  2. Click "+" → enter Code and Name → set the Logic Code and Logic Type as required → click CREATE
  3. Open the model → click "+" to add a line

Pricing Model Lines

Each line in a Pricing Model defines one tier:

FieldWhat to enter
Range FromThe lower bound of this tier (e.g. 0)
Range ToThe upper bound of this tier (e.g. 10000)
Commission MultiplierA rate applied multiplicatively (e.g. 0.05 = 5%)
Commission ValueA fixed value alternative to the multiplier
Membership Point MultiplierPoints rate for this tier
Membership Point ValueFixed points for this tier

Example tiered structure:

Range 0 – 10,000      → Commission Multiplier: 0.05  (5%)
Range 10,001 – 50,000 → Commission Multiplier: 0.08  (8%)
Range 50,001+         → Commission Multiplier: 0.10  (10%)

Once saved, reference this Pricing Model in a Commission Scheme Treatment by selecting PRICING MODEL as the Operator.

Edit Pricing Model screen with tier lines for range from, range to, and commission values
Edit Pricing Model: define and maintain tier lines for multiplier and absolute commission values.

Configuration & Settings

Field Settings

Go to Settings → Field Settings to configure system-wide options for the applet. Click SAVE after making changes.

Default Selection (Applet-Wide)

Go to Settings → Default Selection to set defaults that apply to all users:

  • Default Branch — pre-select a branch for all users
  • Default Location — pre-select a location for all users
  • Details Tab Ordering — drag and drop the Commission Scheme edit tabs (Main Details, Rules - Doc Hdr, Rules - Multi Line, Rules - Single Line, Treatment) into the order your team prefers. Click SAVE when done

Personal Default Selection

Go to Personalization → Default Selection to set your own preferred branch and location. These override the applet-wide defaults for your user only.


Related Modules and Applets

The Commission Scheme Applet connects with these parts of the system:

Related Applet / ModuleHow it connects
CP-Commerce Admin AppletE-commerce websites can have a Commission Scheme tab — the scheme configured there links to schemes you define in this applet
Entity AppletCustomer and employee entities used in Entity-type rules come from the Entity Applet
Sales Invoice (Internal) AppletSales invoices are one of the document types that can trigger a Commission Scheme rule
Sales Order AppletSales orders can be targeted by Document Type rules in a scheme
Receipt Voucher (Internal) AppletReceipt vouchers are a supported document type for commission triggering
Membership AppletsMembership points awarded via the Treatment tab integrate with the membership points system
Debtor Report AppletUse the AR Transaction Report to verify sales transactions that triggered commissions

Glossary

TermWhat it means
Commission SchemeA named configuration containing rules and a treatment that defines when and how commission is paid
Commission TypeSALES_AGENT for direct agent payouts; MLM for multi-level downline network payouts
RuleA condition that a transaction must meet for the scheme to apply (e.g. “must be from Branch KL”)
Rules LogicAND = all rules in the group must match; OR = any rule in the group must match
Negation LogicENABLED inverts the rule — “must NOT match” instead of “must match”
Doc Hdr RuleA rule evaluated at the document header level (applies to the whole document)
Multi Line RuleA rule evaluated at the line item level (applies per item line)
TreatmentThe commission calculation definition — price source, operator, value — per downline level
Level 0 (Self)The salesman who directly made the sale
Level 1 (Parent)The salesman’s direct recruiter/upline in an MLM structure
Price SourceThe monetary or quantity value the commission is calculated on (e.g. net sales amount)
OperatorHow the commission is applied: MULTIPLY (percentage), ABSOLUTE (fixed), ADD, SUBTRACT, PRICING MODEL, or FORMULA
Pricing ModelA tiered table mapping sales ranges to commission rates or values
Pricing SchemeAn alternative scheme reference used as a price source in treatment calculations
Sales GroupA named group of salespeople (employees) that can be referenced in rules
Membership PointsLoyalty points awarded alongside or instead of cash commissions
Below CostA flag that allows commission to be earned even when the sale price is below cost
ACTIVE / INACTIVEStatus values — ACTIVE means the scheme is running; INACTIVE pauses it without deleting it

FAQ

1. What is the difference between Commission Type SALES_AGENT and MLM?

SALES_AGENT is for direct commission — only Level 0 (the salesman who made the sale) earns commission. MLM supports multiple downline levels — you can define different rates for Level 0 (self), Level 1 (their recruiter), Level 2 (the recruiter’s recruiter), and so on.


2. How do I make a scheme apply only to specific items?

Add a rule under Rules - Multi Line (item-level). Choose rule type Item and select the specific items. You can also set a minimum quantity or minimum amount threshold for each item. Alternatively, use Item Category to target a whole category, or use Item Code Regex for pattern matching.


3. Can I have a scheme that applies to all branches except one?

Yes. Add a Branch rule, select the branch you want to exclude, and set Negation Logic to ENABLED. The scheme will apply to all other branches.


4. How does the Pricing Model differ from setting a flat multiplier in Treatment?

A flat multiplier in Treatment applies the same rate regardless of the sales amount. A Pricing Model lets you define different rates for different sales volume bands — for example, 5% on the first RM 10,000 and 8% on anything above. Use PRICING MODEL as the Operator in Treatment and select your model.


5. Can I limit a scheme to a specific sales team?

Yes. Use the Sales Group Rule in Rules - Doc Hdr. First create a Sales Group and add your salespeople to it, then add a Sales Group rule in the scheme pointing to that group.


6. What happens if no rules match a transaction?

If a transaction does not satisfy the rules of a scheme, that scheme does not apply and no commission is calculated for it. The transaction is not affected in any other way.


7. How do I temporarily disable a scheme without losing its configuration?

Open the scheme, go to Main Details, change Status to INACTIVE, and click SAVE. The scheme is preserved but will not trigger on any new transactions until you set it back to ACTIVE.


8. What is Negation Logic used for?

Negation Logic inverts the meaning of a rule. Without negation, the rule means “this condition MUST be true.” With Negation = ENABLED, it means “this condition must NOT be true.” For example, a Company rule with Negation ENABLED means “apply to all companies EXCEPT the ones selected.”


9. Can I award loyalty points instead of cash commission?

Yes. In the Treatment tab for each level, configure the Membership Points section separately from the Commission section. You can award points alongside cash commission, or set the Commission Operator to NA and only configure points.


10. How do I use a formula-based commission calculation?

In Treatment, set Operator to FORMULA and enter your formula in the Formula field. The system supports variable substitution — for example {PRICE_SOURCE}*(150-{DAY})/150*0.016 calculates a time-decaying commission based on the document age. Contact your system administrator for supported formula variables.