# Doctor Commission Rules & Reporting
ClinIT can automatically calculate each doctor's commission from completed session invoices.
---
Setting Up a Commission Rule
- Go to Staff → Doctors → [Select Doctor] → Commission Rules.
- Click + Add Rule.
- Configure:
| Field | Options / Notes |
|---|---|
| Commission Type | PERCENTAGE / FIXED_PER_VISIT |
| Percentage | % of invoice total (if type = PERCENTAGE) |
| Fixed Amount | EGP per completed visit (if type = FIXED_PER_VISIT) |
| Applies To | ALL / CONSULTATION_ONLY / PROCEDURE_ONLY |
| Min Monthly Guarantee | Minimum EGP regardless of commission calculation |
| Is Active | Toggle on/off |
- Click Save Rule.
---
How Commission is Calculated
For each PAID invoice:
- The system identifies the attending doctor.
- Looks up their active commission rule.
- Calculates the commission amount.
- Creates a
DoctorCommissionEntryrecord.
Entries accumulate throughout the month and are summarised in the monthly commission report.
---
Viewing Commission Reports
- Go to Billing → Commissions.
- Select a doctor and date range.
- The report shows:
- Total invoiced by the doctor.
- Commission earned per invoice.
- Monthly total.
- Guaranteed minimum (if applicable).
- Net payable = max(commission, minimum guarantee).
---
Integrating with Payroll
Commission totals feed into the HR → Salary Payments module:
- Go to HR → Salary Payments → + New Payment.
- The commission amount pre-fills from the doctor's commission report.
- Add base salary and any adjustments.
- Process payment.
---
Editing a Commission Entry
Commission entries are editable by the Clinic Owner before the month is finalised:
- Open the entry.
- Adjust the amount with a reason.
- The original calculated amount is preserved in the audit log.