cardinal

Payroll

Build salary structures, run a payroll entry, and post salaries to the ledger.

Payroll runs in the Payroll workspace. You define pay once in a Salary Structure, assign it to employees with their base pay, and run one Payroll Entry per pay period.

Salary Component → Salary Structure → Salary Structure Assignment → Payroll Entry → Salary Slips → Journal Entries

Salary components

A Salary Component is one line of a payslip. Its Type is Earning, Deduction or Employer Contribution. Its Abbr is the name formulas use.

In the component's Accounts table, set the account for each company. The payroll Journal Entry posts each component to that account.

FieldEffect
Depends on Payment DaysProrates the amount by payment days (on by default)
Statistical ComponentComputed for use in formulas, never paid
Do Not Include in TotalLeft out of gross and deductions
Remove if Zero ValuedDrops the row from the slip when it is zero
Is Income Tax ComponentThe deduction that carries income tax

Salary structure and formulas

A Salary Structure has a Company, Currency, Payroll Frequency (Monthly, Fortnightly, Bimonthly, Weekly, Daily) and three tables: Earnings, Deductions and Employer Contributions. Each row can have a fixed Amount or a Formula, and an optional Condition.

Formulas and conditions use Cardinal's expression language, not Python. They can read:

  • base and variable from the employee's assignment;
  • every component's Abbr, such as B for Basic;
  • gross_pay in deductions and employer contributions;
  • the Employee's and the Salary Slip's fields, such as employment_type or payment_days.

Write && and || for and and or, if c then a else b for a choice, and 0.2, not .2. Functions include min, max, round, floor, ceil and abs.

Worked example

A monthly structure "Staff 2026" for company Revaik:

TableComponentAbbrFormula
EarningsBasicBbase * 0.4
EarningsHouse Rent AllowanceHRAB * 0.5
DeductionsProvident FundPFmin(B * 0.12, 1800)

Submit the structure. On it, use Create > Salary Structure Assignment for Asha with From Date 2026-04-01 and Base 50,000. The assignment shows her CTC, computed from one full cycle.

For November 2026, with no leave without pay, Asha's slip reads:

ComponentAmount
Basic20,000
House Rent Allowance10,000
Gross Pay30,000
Provident Fund1,800 (12% of Basic is 2,400, capped at 1,800)
Net Pay28,200

If she takes one day of Leave Without Pay in a month of 26 working days, her Payment Days are 25. A component that depends on payment days pays its full amount times 25 over 26, so Basic becomes 20,000 × 25 / 26 = 19,230.77.

Run a payroll entry

Create a Payroll Entry: Company, Posting Date, Payroll Frequency, Start Date and End Date. Payroll Payable Account and Cost Center fill from the company. Narrow it by Branch, Department, Designation or Grade if needed.

Click Get Employees. HRMS lists the active employees whose submitted assignment uses an active structure of the entry's company, currency and frequency, and who have no submitted slip for these dates. Tick Validate Attendance to refuse employees with unmarked days.

Submit. HRMS creates a draft Salary Slip for each employee in the background. The status is Queued, then Submitted.

Review the slips, then click Submit Salary Slip. HRMS submits them and posts the accrual Journal Entry.

Set the Payment Account and click Make Bank Entry. HRMS drafts the Bank Entry that pays net pay.

If slip creation fails, the status is Failed and Error Message says why. Fix the cause and click Create Salary Slips to queue it again. A slip already made is not made twice.

Accounting entries

For Asha's slip, the two Journal Entries are:

EntryAccountDebitCredit
AccrualBasic's account20,000
AccrualHouse Rent Allowance's account10,000
AccrualProvident Fund's account1,800
AccrualPayroll Payable28,200
Bank EntryPayroll Payable28,200
Bank EntryPayment Account28,200

Employer contributions get their own Journal Entry: each component's expense account debited, its liability account credited.

Cancelling the Payroll Entry cancels and deletes its slips and cancels its submitted Journal Entries.

Payroll Settings

SettingEffect
Calculate Payroll Working Days Based OnLeave applications, or attendance
Include holidays in Total no. of Working DaysCounts holidays as working days
Email Salary Slip to EmployeeMails each submitted slip as a PDF
Encrypt Salary Slips in EmailsProtects the PDF with a password
Show Leave Balances in Salary SlipAdds the leave balance table to the slip

More payroll records

RecordUse
Additional SalaryA one-off or recurring amount on a payslip
Income Tax Slab, Payroll PeriodTax rates and the tax year
Employee Tax Exemption Declaration, Proof SubmissionExemptions that lower taxable pay
Employee Benefit Application, ClaimFlexible benefits
Retention Bonus, Employee IncentiveBonuses paid through Additional Salary
Salary WithholdingHolds an employee's slips for some cycles
Arrear, Payroll CorrectionBack-dated pay and returned leave without pay
Overtime SlipPays overtime from auto attendance
Gratuity, Full and Final StatementExit payments

Details: Salary assignments, Additional salary and bonuses, Withholding and arrears, Overtime, Income tax, Flexible benefits, Gratuity and Full and final settlement.

Reports include Salary Register, Bank Remittance, Income Tax Computation and Employee CTC Break-up.

On this page