Skip to content

Payroll

Monthly salary, loss of pay, bonuses, advances, PF/ESI/PT, draft and final payroll runs, bank and statutory CSVs, and payslips.

14 min read

Overview

Payroll turns each staff member's monthly salary, commission, incentives, and adjustments into a net pay figure for one calendar month. A manager generates a draft run, fixes anything that looks wrong, then finalizes it. Finalizing locks that month, unlocks the bank-transfer file, and publishes a payslip to each staff member's portal.

Kagami salon payroll calculation interface showing stylist commission tiers, retail bonus, and net payouts

It reads data from other modules: salary from the staff profile, commission rules and targets from Staff Operations, clock-ins and leave from attendance, and bonuses, allowances, advances, and deductions from Staff Payouts. See Staff Operations for how commission rules and targets are set up.

All amounts are stored in paise and shown in rupees. The month is an India (IST) calendar month.

Where to find it

What Where Who
Payroll runs, LOP, PF/ESI/PT settings, advance loans, bank and statutory details Staff Operations, then Payroll (/dashboard/staff-ops/payroll). Use the month picker at the top right. Manager roles
Monthly salary Staff directory, edit a staff member, Monthly salary (₹) field. Only manager roles see this field. Manager roles
Bonus, allowance, advance, deduction entries Finance, then Staff Payouts (/dashboard/finance/payouts) Manager roles
Own payslips Staff app, Payslips (/my/payslips) The staff member

"Manager roles" means org owner, brand manager, and location manager (and super admin). Front desk and stylists are redirected to the staff app if they open the Payroll page.

Monthly salary

  • Set on the staff profile. The field is required for managers and must be a number of 0 or more. The error is "Monthly salary is required and must be a number of 0 or more."
  • Salary is stored separately from the staff record so that only the server can read it. Other team members cannot see it.
  • A staff member with no salary (or 0) still appears in the run with commission and incentives only.
  • Payroll includes every active staff member of the brand. A deactivated staff member is left out of new runs.
  • Payroll is brand-wide. It is not filtered by the store selector.

How net pay is calculated

Step Item How it is worked out
1 Salary Monthly salary from the staff profile
2 less LOP Salary / days in the month x LOP days (see below)
3 Earned salary Salary minus LOP
4 plus Commission Service revenue x commission % (see below)
5 plus Incentive Targets achieved this month
6 plus Bonus Sum of Bonus entries for the month
7 plus Allowance Sum of Allowance entries for the month
8 = Gross earnings Steps 3 to 7
9 less Advances One-off Advance entries plus this month's loan instalments
10 less Deductions Sum of Deduction entries for the month
11 less PF, ESI, PT Only if switched on (see PF, ESI and PT)
12 = Net pay Gross minus steps 9 to 11, never below 0

If the deductions are bigger than the gross, net pay shows 0. The individual figures (advance, deduction, PF and so on) are still shown in full, and the shortfall is not carried to next month.

Commission

  • Commission is worked out from completed appointments only. Each service line's price counts toward the month its start time falls in (IST).
  • The rate is the staff member's own most recent rule that was effective by the last day of the month. If they have none, the most recent brand-wide rule applies. If the brand has no rule at all, 30% is used.
  • Commission = service revenue x rate, rounded to the nearest paisa.
  • Retail commission is not part of payroll. Retail revenue and retail commission show as 0 in a payroll run, even though a retail % can be saved on a rule.
  • Set rules under Staff Operations, then Commissions.

Incentive

Staff Operations, then Targets, defines monthly targets with an incentive amount. In payroll:

  • A revenue target pays when service revenue is at or above the target.
  • An appointments target pays when the completed service count is at or above the target.
  • A target with no staff member (brand-wide) pays every staff member who reaches it.
  • Any other target type, including retail revenue, never pays out in payroll.

Loss of pay (LOP)

LOP is a pay cut for days a staff member was expected but did not work. Per-day value is salary divided by the calendar days in the month (28 to 31), not by working days. The amount is rounded to the nearest paisa and can never be more than the salary.

Automatic LOP

Automatic LOP is only worked out for staff who have Track attendance switched on and a salary above 0. A day counts as LOP when all of these are true:

  • The day is before today (IST). Today and future days are never LOP.
  • It is on or after the date the staff record was created (days before they joined are never LOP).
  • It is not marked as a day off in the weekly roster. Every day not marked off is treated as a working day.
  • The staff member has no clock-in record for that day. Any clock record counts as worked, however short.
  • The staff member has no approved time off overlapping that day (IST). All approved time off is treated as paid. Approved unpaid leave does not create LOP on its own, so use the manual override for it.

Because only past days count, generating payroll in the middle of a month shows full salary with only the missed days so far deducted. Generate after month end for the final figure.

Manual LOP override

On a draft run, each row has an editable LOP days box (0 to 31, steps of 0.5).

  • Type a number to override the automatic count. 0 means no LOP. Half days are only possible this way.
  • Clear the box to go back to automatic LOP.
  • The override is saved per staff member and month, and the draft is regenerated straight away.
  • The override stays in place when you regenerate, so it survives later changes to the draft.
  • Values above the number of days in the month are capped to that number.
  • The box is disabled once the run is finalized.

Bonus, allowance, advance, deduction

Record these in Finance, Staff Payouts. Pick the staff member, the Type, the amount, and how it was paid (Cash, Bank Transfer, or UPI). The entry belongs to the month shown in the Payouts month picker, and payroll picks it up when you generate that month.

Type Effect on net pay
Bonus Added
Allowance Added
Advance Subtracted
Deduction Subtracted
Salary Payout Not used in the calculation. It is a record that salary was paid.

Entries added after you generate a draft only appear when you generate again. Entries added after a month is finalized do not change the locked figures.

Advance loans and instalments

Use an advance loan when a staff member borrows money and repays it in monthly instalments. Open Salary advances (recovered in instalments) on the Payroll page.

Field Meaning
Staff The borrower
Loan amount (₹) Total lent. Must be more than zero.
Monthly instalment (₹) Recovered each month. Must be more than zero and not more than the loan amount.
First deduction month The first month the instalment is taken. Defaults to the month you are viewing.
  • Each month from the first deduction month, the instalment is added to the Advances column. The instalment is the monthly amount, or the balance left if that is smaller. It stops once the loan is repaid.
  • The table shows each active loan's instalment for the selected month and the balance after it is recovered.
  • Cancel stops all future instalments. It does not change months that are already finalized.
  • After adding or cancelling a loan, press Generate again for the draft to pick it up.
  • The balance is worked out from the number of months elapsed since the first deduction month. Fully repaid loans stay in the list with a 0 balance until cancelled.

PF, ESI and PT

Statutory deductions are off by default. Turn them on in Statutory deductions (PF / ESI / PT) on the Payroll page. They are brand-wide and cover the employee share only. Employer contributions are not calculated.

Setting Default How it is applied
PF Off. 12%, wage ceiling ₹15,000 PF % x the smaller of earned salary (after LOP) and the ceiling. Commission, bonus, and allowance are not included.
ESI Off. 0.75%, applies up to gross ₹21,000 ESI % x gross earnings, only when gross is at or below the limit. At ₹21,000.01 or more, ESI is 0.
Professional tax Off. ₹0 per month A flat monthly amount, the same for everyone.
  • A brand that has never saved settings has everything off.
  • Percentages must be 0 to 100 and amounts must be zero or more.
  • After saving, press Generate again to apply. The message says: "Saved. Regenerate the draft to apply."
  • Results are rounded to the nearest paisa.

Bank and statutory details

Open Bank & statutory details on the Payroll page, pick a staff member, and save. These are only needed for the bank file and the PF/ESI/PT report.

Field Rule
Bank account no. 6 to 20 digits. Spaces are removed. Error: "Account number must be 6-20 digits"
IFSC 4 letters, then 0, then 6 letters or digits (for example, HDFC0001234). Saved in capitals. Error: "IFSC must look like HDFC0001234"
UAN (PF) Not checked. Saved as typed, with spaces removed and in capitals.
ESIC no. Not checked. Saved as typed, with spaces removed and in capitals.

Leave a field empty to clear it. Bank and statutory details are readable only by the server, never by other team members.

Draft and finalize

Draft Finalized
How it is made Generate for YYYY-MM Finalize on a draft
Regenerate Yes. Replaces the saved figures with fresh ones. No
LOP override Editable Locked
Bank file Not available Available
PF/ESI/PT report Available Available
Staff see payslip No Yes

There is one run per brand per month. Generating when a draft exists updates that draft. If two people press Generate at the same moment, the second request updates the first instead of creating a duplicate.

When you press Finalize, a confirmation asks "Finalize this payroll run?" and warns that finalized runs are locked and cannot be regenerated. There is no option in the app to reopen a finalized run.

Both draft and finalized runs are a snapshot. Payslips and reports read the saved figures. Changing a commission rate or salary later does not alter a finalized month.

Reports and downloads

Download Where When File
Payroll breakdown CSV Download CSV button After you press Generate in this visit payroll-YYYY-MM.csv
Bank file Bank file link in Export History Finalized runs only bank-transfer-YYYY-MM.csv
PF/ESI/PT report PF/ESI/PT link in Export History Any saved run statutory-YYYY-MM.csv
  • Payroll breakdown CSV columns: Staff, LOP Days, Salary, LOP, Commission, Incentive, Bonus, Allowance, Advances, Deductions, PF, ESI, PT, Net Pay, plus a Total row.
  • Bank file columns: Beneficiary Name, Account No, IFSC, Amount (INR), Narration ("Salary YYYY-MM"). Only staff with net pay above 0 are included. If any of them has missing or invalid bank details, no file is produced and the message lists them: "Add valid bank details for: Name 1, Name 2".
  • PF/ESI/PT report columns: Staff, UAN, ESIC No, Gross, PF (employee), ESI (employee), PT, plus a Total row. Every staff member in the run is listed.
  • Text that starts with =, +, -, or @ is escaped in CSVs so it cannot run as a spreadsheet formula.

Payslips

A payslip is a one-page A4 PDF with the brand name, the month, the staff member's name, and one line each for Salary, LOP (with the number of days), Commission, Incentive, Bonus, Allowance, Advances, Deductions, PF, ESI, and PT. Lines that take money away are shown with a minus sign. It ends with Gross earnings and Net pay. Bank and statutory IDs are not printed.

Managers Staff
Where Payslip link on each row of the breakdown table Staff app, Payslips
Which runs Draft or finalized. If no run is saved for the month, figures are worked out live. Finalized only
Whose Any staff member in their brand Their own only
Endpoint /api/staff-ops/payslip?period=YYYY-MM&staff=<id> /api/staff-ops/my-payslip?period=YYYY-MM
File name payslip-<name>-YYYY-MM.pdf payslip-<name>-YYYY-MM.pdf

The staff Payslips page lists up to the 12 most recent finalized months that include the staff member. Each row shows the month and net pay rounded to whole rupees. "No payslips yet" is shown until the first month is finalized.

Permissions

Action org_owner brand_manager location_manager front_desk stylist
Open Payroll page, generate, finalize Yes Yes Yes No No
Set LOP, PF/ESI/PT, loans, bank details Yes Yes Yes No No
Set monthly salary Yes Yes Yes No No
Download bank/statutory CSV, any payslip Yes Yes Yes No No
Download own finalized payslip (needs a linked staff profile) Yes Yes Yes Yes Yes

A location manager sees and runs payroll for the whole brand, not only their location. Staff who are not managers get a "Not found" response from the manager downloads.

Common messages

Message Meaning and fix
Payroll for this period is already finalized Generate or LOP change on a locked month. Nothing to do.
Payroll export not found or already finalized Finalize pressed on a missing or already locked run. Refresh the page.
LOP days must be between 0 and 31 Enter 0 to 31, or clear the box.
Invalid period The month is not in YYYY-MM form.
Percentages must be between 0 and 100 / Amounts must be zero or more Fix the PF/ESI/PT settings and save again.
Loan amount must be more than zero / Instalment must be more than zero / Instalment cannot exceed the loan amount / Invalid start month Fix the loan form.
You don't have permission to do this Your role cannot run payroll.
Staff member not found The staff member is not in this brand.
Finalize the payroll run before downloading the bank file Bank file needs a finalized run.
No payroll run for this period Generate a run for that month first.
Could not generate payroll. Please try again. The request failed. Press Generate again.

Good to know

  • Export History shows the run for the month selected in the month picker.
  • Leave without pay, half-days, and retail commission are not handled automatically. Use the LOP override or a Deduction entry.

Key data entities

  • StaffCompensation: monthly salary per staff member
  • PayrollExport: one saved run per brand and month, status draft or finalized, with the per-staff figures
  • PayrollAdjustment: manual LOP days for one staff member and month
  • PayrollSettings: the brand's PF, ESI, and PT settings
  • StaffPayout: bonus, allowance, advance, deduction, or salary payout entries
  • StaffAdvanceLoan: loan amount, instalment, first month, status (active or cancelled)
  • StaffPayrollIds: bank account, IFSC, UAN, and ESIC number per staff member

Worked example

Staff member Meera, September (30 days). Salary ₹30,000. Brand has PF and PT turned on (PT ₹200). ESI is off.

Input Value
Salary ₹30,000
LOP days 2
Service revenue (completed) ₹15,000 at the default 30%
Incentive (target reached) ₹1,000
Bonus ₹500
Allowance ₹300
One-off advance ₹1,000
Loan instalment due ₹2,000
Deduction ₹200
Step Working Amount
LOP 30,000 / 30 x 2 ₹2,000
Earned salary 30,000 - 2,000 ₹28,000
Commission 15,000 x 30% ₹4,500
Gross earnings 28,000 + 4,500 + 1,000 + 500 + 300 ₹34,300
Advances 1,000 + 2,000 ₹3,000
PF 12% x the smaller of 28,000 and 15,000 ₹1,800
ESI Gross 34,300 is above the 21,000 limit, and ESI is off here ₹0
PT Flat ₹200
Net pay 34,300 - 3,000 - 200 - 1,800 - 0 - 200 ₹29,100

If the advance and deduction were ₹40,000, net pay would be ₹0, not negative.