Salespersons
The registry of who is credited for a sale, with optional links to a login, an employee record and a vendor, plus the home team that is derived from the roster rather than stored.
The Salespersons screen maintains the answer to “who sold it?”. Every sales order and invoice can name one salesperson, and that naming is what the per-rep reports and commissions are based on.
Getting there
Section titled “Getting there”- Menu Sales → Salespersons (route
sales-dimension/salespersons). - Requires the
read:sales-dimensionpermission to view andmanage:sales-dimensionto create, edit, activate and deactivate.
A salesperson need not be an employee
Section titled “A salesperson need not be an employee”This is a design decision, not an omission. The links to a login account, an employee record and a vendor are all optional, because:
- Not every seller is an employee. Agents, resellers, referral partners and intercompany reps earn attribution without appearing in HR. Binding this dimension to the employee table would make them unrepresentable.
- Attribution must outlive employment. A rep who has left still earned the sales in their period. A foreign key to the employee row would either block the employee record from ever being closed or, with a cascade, erase the attribution of every historical document.
- Commission attaches to the salesperson, not to the job. Rate schemes and commission ledgers need a stable target that does not change when someone is transferred between departments.
The home team is derived, not stored
Section titled “The home team is derived, not stored”The Home Team column on this list is computed from the team roster, not stored as a column. The rule is: the team they lead, or when there is none, their earliest membership, with the team id as the final tie-break so the result never depends on row order from the database.
One login maps to one salesperson
Section titled “One login maps to one salesperson”A login account may be linked to at most one salesperson. Two records for the same account would split the “my sales” filter and produce two commission statements for one person.
Status and tenure
Section titled “Status and tenure”| Status | Meaning |
|---|---|
| Active | Can be selected on new documents. May not carry a leaving date. |
| Inactive | Cannot be selected on new documents. If no leaving date exists, today’s date is recorded automatically. |
- Reactivating a rep clears their leaving date, so reported tenure does not carry a stale departure.
- A leaving date may not precede the joining date. Contradictory data like that would produce negative tenure in reports, so it is refused by the server and reported as-is on screen.
Retiring a rep: deactivate, never delete
Section titled “Retiring a rep: deactivate, never delete”Deactivating a salesperson does not remove the record and does not touch the documents they ever handled. Everything they sold stays credited to them — which is exactly why attribution is attached to this registry rather than to the employee record. The screen explains this before you press the button, because that consequence is the reason the operation exists.
Commission scheme
Section titled “Commission scheme”The Commission Scheme column stores only the code of the default scheme. Commission policy and rates are owned by the sales commission module; this screen must not become a second source that can drift.
Export
Section titled “Export”Export CSV downloads a file using the filters, sort and search currently active, so the file matches what is on screen.
Reporting
Section titled “Reporting”Salespersons feed the Sales by Salesperson report in the report catalogue. Documents with no salesperson are bucketed as Unassigned so the totals still reconcile.