Fleet payroll: salary plus commission (UAE limousine companies)
Built: 2026-11-02. Written for operators, fleet owners and whoever maintains the code.
In Dubai a ride-hailing driver works for a licensed limousine company (see
docs/fleet-companies.md). The company does not split each fare with them.
Instead it pays them a monthly salary:
- a base salary;
- a commission on the revenue they bring in;
- often a bonus for reaching a monthly target.
It then takes deductions for fines, Salik tolls or damage. RideKit now supports this as a third settlement model, salary, next to revenue share and fixed lease.
How the money moves
On a salaried driver's ride, the driver's whole earning after the platform
commission goes to the fleet. The ledger entry records it as the fleet's
share (fleetOwnerMinor), with nothing for the driver. The fleet then pays
the driver by payroll, outside the app.
Example: an AED 12.00 fare with 20% commission. The platform keeps AED 2.40 and the fleet gets AED 9.60. That AED 9.60 is the driver's revenue for payroll.
On a cash trip the driver holds the fare, so it is still the fleet's money. The payroll shows it as cash still to hand in, taken from the driver's wallet balance.
Setting a driver's salary (partner app)
Drivers → a driver → Change salary. Enter:
| Field | Example | Meaning |
|---|---|---|
| Base salary per month | 2500 | Paid whatever the revenue |
| Commission on revenue (%) | 10 | Of the revenue the driver brought in |
| Monthly revenue target | 8000 | Leave empty for no target |
| Bonus at the target | 500 | Paid once revenue reaches the target |
Saving moves that driver to the salary model. Their terms then read "Salary AED 2,500.00 + 10% commission".
The monthly payroll (partner app)
Earnings → Payroll shows one card per salaried driver for the market month. The arrows step through months, and the current month is marked "So far this month". Each card shows:
- trips and revenue, with progress towards the target;
- the base salary, the commission, and the bonus once earned;
- each deduction, removable with ✕;
- the pay: base + commission + bonus − deductions;
- cash still to hand in, when the driver holds fleet money.
Add a deduction records an amount and a reason (for example "Salik tolls" or "Parking fine") against that month.
Share payroll (CSV) sends the month as a spreadsheet for the company's own payroll system or WPS salary upload. It has one row per driver, with amounts in minor units.
Rules
- Part months are pro rata. A driver who joins or leaves mid-month is
paid the base salary for the calendar days they were in the fleet, counted
in market time. The day they join and the day they leave both count. The
card shows "Base salary (29 of 30 days)".
- Commission and bonus are not prorated. They follow revenue, which only exists for the days the driver drove.
- Leavers stay on their last month. A driver who left still appears in the months they were in the fleet, so their final salary and deductions can be settled.
- No salary below zero. If deductions are larger than the pay, the pay shows as 0 and the rest as a shortfall for the company to settle with the driver.
- Deductions can be added only for a month the driver was in the fleet.
For the operator (admin)
Partners → a fleet → Overview has a Payroll card for salaried fleets, with a month picker. It shows the same figures as the partner app:
- trips, revenue and target;
- base salary (with the days for a part month);
- commission, bonus and deductions;
- pay and cash to hand in.
The card is read-only. Salaries and deductions are the fleet's to set.
Confirm locally. UAE Labour Law governs how salaries and deductions are paid. That covers what may be deducted, the caps on deductions, and payment through WPS. RideKit computes and exports the figures; the company pays them. Check your payroll practice with a local adviser.
Not covered
- Paying salaries. RideKit does not run WPS or bank transfers for salaries. Use the CSV with your payroll provider.
- Revenue from other apps. Many Dubai limousine drivers drive for several apps. The payroll counts only this app's rides; add other income in your own payroll.
- Rolling a shortfall into the next month automatically. Record it as a deduction in the next month if you want to recover it.
For maintainers
| Area | Files |
|---|---|
| Pay rules (pure) | backend/src/fleet/payroll.ts: parsePayScheme, payslip, daysInFleet |
| Settlement | fleet.service.ts splitEarning: SettlementModel.SALARY gives the fleet the whole earning |
| Payroll | fleet/fleet-payroll.service.ts: revenue from ledger_entries (fleetOwnerMinor, currency from the posting account) |
| Owner API | GET /fleet/payroll?month=, GET /fleet/payroll/csv, PUT /fleet/drivers/:driverId/pay-scheme, POST /fleet/payroll/deductions, DELETE /fleet/payroll/deductions/:deductionId |
| Admin API | GET /admin/partners/:id/payroll |
| Storage | Migration 1700000135000-FleetSalary.ts: fleet_memberships.pay_scheme, fleet_payroll_deductions, salary in the settlement CHECKs |
| Partner app | app/(details)/payroll.tsx, salary sheet in app/(details)/driver/[id].tsx, src/lib/payroll.ts |
| Admin | components/fleet/PartnerPayrollCard.tsx |
| Tests | backend/src/fleet/payroll.spec.ts, partner src/lib/payroll.test.ts |