Payroll
Payroll works out each employee’s pay for a month from their salary structure, the company’s pay components and the leave they took, and keeps a record of every calculation. It is set up separately for each company: a company’s components, salary structures and runs never mix with another’s.
There is no country’s tax or social security built in. You describe your rules yourself, with components, formulas and slab tables, so the same pages work in any country.
Set up payroll for a company
Section titled “Set up payroll for a company”- Check that each employee has an employee record in the company with an Employee ID and a Start Date. Payroll lists only those employees. A Last Date stops their pay after that day.
- Check that the company has a Default Currency, its base currency. Payroll runs refuse to start without one.
- On Payroll configuration, save the company’s settings, add a pay group, then the slab tables and components your rules need, and their GL accounts.
- On Salary structures, give each employee a structure.
- Each month, create a run on Payroll runs, enter any one-off amounts, calculate it, check it, approve it and post it.
Pay components
Section titled “Pay components”A component is one line of pay. Each has a Type:
| Type | Is |
|---|---|
| Earning | Pay: basic salary, allowances, bonuses. Earnings add up to Gross. |
| Deduction | Taken off pay: employee contributions, income tax, other deductions. Net pay is gross less deductions. |
| Employer Contribution | A cost the company pays on top of pay, such as an employer pension contribution. It is not taken off net pay. |
| Info | A value worked out for other components to use, such as taxable income. It is never paid. |
And a Calculation:
| Calculation | The amount is |
|---|---|
| Fixed amount | The amount on the employee’s salary structure, or the component’s Default Amount when the structure gives none. It can be prorated for unpaid days and part months. |
| Percent of another value | A percent of another component or of a total, such as 40% of BASIC. An employee’s structure can give a different percent. |
| Formula | The result of a formula. |
| Slab table | A slab table applied to a base, which is itself a formula, such as TAXABLE_GROSS. |
| Entered per run | Typed on each payroll run for the employees who have one, such as a bonus. |
A component applies to an employee when their salary structure lists it, or to every employee when Applies to every employee is ticked; an employee’s structure can still leave such a component out. A component that doesn’t apply to an employee counts as 0 in the formulas that read it.
After the calculation, each amount is kept between the component’s Floor and Cap, when they are set, and then rounded. Payroll rounds halves away from zero (2.345 becomes 2.35, 2.5 becomes 3), to the pay currency’s decimals unless the component gives its own rounding: Up or Down, other decimals, or the nearest 10, 100 or 1,000.
The calculation order
Section titled “The calculation order”Components are calculated in the order their values are needed: a component that reads BASIC comes after BASIC, and one that reads GROSS comes after every earning. TrakIT works the order out itself; the Display Order only decides where a component appears when the order allows a choice.
A set of components that loops, such as an earning that is a percent of GROSS (GROSS adds that earning up), can’t be calculated. TrakIT refuses to save the change and names the loop, for example Circular reference: GROSS -> HOUSING -> GROSS.
Formulas
Section titled “Formulas”A formula is one expression, written like a spreadsheet formula without the equals sign. For example:
MIN(BASIC * 12 / 100, 1800)PAID_DAYS < DIVISOR ? BASIC / DIVISOR * PAID_DAYS : BASICIF(SERVICE_YEARS >= 5, 100, 0)A formula can use:
- the codes of the company’s active components, in capitals;
- the payroll variables and totals below;
- numbers,
+ - * / %and brackets; - comparisons
< <= > >= == !=, which give true or false, joined with&&(and),||(or) and!(not); condition ? value if true : value if false;- the functions
MIN(a, b, ...),MAX(a, b, ...),ROUND(x)orROUND(x, places)(places can be negative:ROUND(x, -1)rounds to tens),FLOOR(x),CEIL(x),ABS(x)andIF(condition, value if true, value if false).
A formula must give an amount, not true or false. Anything else, such as text, is refused when you
save. The arithmetic is exact to the cent: 0.1 + 0.2 is exactly 0.3. A formula that divides by zero for an
employee stops that employee’s pay with an error that names the component.
| Variable | Is |
|---|---|
| PERIOD_DAYS | The calendar days in the period. |
| WORKING_DAYS | The working days in the period: not the weekend of the company’s country, not its holidays. |
| DIVISOR | The daily rate divisor for the period. |
| EMPLOYED_DAYS | The days of the period the employee was employed, counted the same way as the divisor. |
| UNPAID_LEAVE_DAYS | Approved days of unpaid leave types. |
| LOP_DAYS | Approved loss-of-pay days. |
| UNPAID_DAYS | Both of the above. |
| PAID_DAYS | EMPLOYED_DAYS less UNPAID_DAYS, never below 0. |
| PRORATION | PAID_DAYS divided by DIVISOR, never above 1. |
| PERIODS_PER_YEAR | 12 for a monthly pay group. |
| SERVICE_YEARS, SERVICE_MONTHS | Complete years and months from the employee’s start date to the end of the period. |
| AGE | The employee’s age in complete years at the end of the period, from their date of birth (0 when it is not on their record). |
| Total | Adds up |
|---|---|
| GROSS | Every earning. |
| TAXABLE_GROSS | The earnings marked Taxable. |
| TOTAL_DEDUCTIONS | Every deduction. |
| TOTAL_EMPLOYER | Every employer contribution. |
| NET | GROSS less TOTAL_DEDUCTIONS. |
These names, and the function names, can’t be used as component codes.
Slab tables
Section titled “Slab tables”A slab table is a list of brackets, such as an income tax table. Each bracket covers the amounts above its Above value up to its Up To value; the last has no limit. A table works in one of two ways:
- Progressive: each bracket’s rate applies to the part of the amount inside it. With brackets of 0% up to 12,000, 10% up to 36,000 and 20% above, 50,000 gives 0 + 2,400 + 2,800 = 5,200.
- Flat: the bracket the amount falls in applies its rate to the whole amount, plus its Fixed Amount, which can be negative. This also describes tables written as “amount × rate − a fixed deduction”, and tables that give a fixed contribution per band.
With Annual brackets, the month’s amount is multiplied by 12, the brackets applied, and the result divided by 12. You can then enter an annual tax table as it is published.
A table has versions, each in force from a date, so next year’s brackets can be entered before the year starts. A run uses the version in force on the last day of its period.
Days and part months
Section titled “Days and part months”A month’s amount is turned into a day’s pay with the company’s Daily Rate Divisor:
| Divisor | DIVISOR is | EMPLOYED_DAYS is |
|---|---|---|
| Calendar days in the period | The period’s calendar days (28 to 31). | The calendar days employed. |
| Working days in the period | The period’s working days. | The working days employed. |
| A fixed number of days | The number set, for example 26 or 30. | The number set, less the calendar days the employee was not employed. A full month is always the whole number, even in February. |
A Fixed amount component with Prorated for unpaid days and part months ticked is paid as the amount × PAID_DAYS ÷ DIVISOR. A percent or formula follows the values it reads: 40% of a prorated BASIC is prorated too.
Unpaid days come from Leave: the approved days of unpaid leave types and loss-of-pay days inside the period and inside the employee’s dates, counted only on working days of the company’s calendar. Half days count as 0.5. Pending, rejected and cancelled applications don’t count.
An employee paid for part of the period (a joiner or a leaver) is shown with a warning, so you can check them.
Currencies
Section titled “Currencies”Each employee is paid in the currency of their salary structure. Their amounts are worked out in that currency, and each line is also converted to the company’s base currency for the run’s totals and the journal. The rate is the exchange-rate table’s rate on the run’s journal date, within the company’s rate age limit, unless one is entered on the run. An employee whose currency has no rate can’t be paid until a rate is entered.
Payroll runs
Section titled “Payroll runs”A run pays one pay group for one month. Its status moves on as it goes through its steps:
| Status | Means |
|---|---|
| Draft | Created, or changed since the last calculation. Inputs and rates can be changed. |
| Calculated | Calculated. It can be calculated again as often as needed until it is approved. |
| Approved | Approved by someone with Approve Run. It can’t change any more unless it is re-opened. |
| Posted | Its journal was posted by someone with Post Run. It never changes again; a mistake is corrected by reversing it. |
When a run is calculated, everything it used is kept with it: each component’s definition, formula and slab brackets, the rates, the inputs and every employee’s days and values. Changing a component or a structure later never changes a run that has been calculated, until it is calculated again.
Approving a run also closes the company’s payroll cut-off for the period (it is created if HR has not added it), so leave in the period can no longer change. Re-opening or reversing a run does not re-open the cut-off; HR does that on the Leave Configuration page if leave has to be corrected.
Posting a run posts its journal: the earnings and employer contributions as expenses per department, the deductions and employer contributions as liabilities, and the net pay as owed to the employees. A company that keeps its books in TrakIT gets a journal entry in its accounts; any other company downloads a journal file for its accounting system. A posted run is corrected by reversing it: a Reversal run cancels it, and the period can be paid again with a new run.
Payslips
Section titled “Payslips”A payslip is made from the run’s calculation each time it is asked for, so it always shows what was calculated and paid; it is not stored as a document. Employees see and download their own payslips of posted runs on My Payslips. On Payroll runs, anyone with Export downloads the payslip of any employee of a calculated run.
The PDF uses the company’s Payslip Form (see Settings): the built-in layout, or a payslip form that TrakIT Support has set up for the company. A payslip lists the components shown on payslips that have an amount, with the payslip name of each one.
Who does what
Section titled “Who does what”The payroll permissions are in the Payroll section of a role, under HR:
| Permission | Allows you to |
|---|---|
| View Payroll | Open Payroll Runs and Salary Structures: see every run, its employees and their pay, and every salary structure. |
| Configure Components & Slabs | Open Payroll Configuration and change the company’s settings, pay groups, components, slab tables and GL accounts. |
| Manage Salary Structures | Add and delete salary structure revisions. |
| Create/Calculate Run | Create runs, enter inputs and rates, calculate, and delete runs that are not approved. |
| Approve Run | Approve a calculated run, and re-open an approved one. |
| Post Run | Post an approved run, and mark a run’s journal file exported. |
| Reverse Run | Reverse a posted run. |
| Export | Download a run’s register as an Excel file, the journal file of a posted run, and employees’ payslips. |
| View Own Payslip | Open My Payslips and download your own payslips of posted runs. |
Payroll is Access Restricted, like Employee Master: only TrakIT Support can give these permissions to a role, and System Administrators who are not TrakIT Support can’t open the payroll pages, whatever their roles give them. Their own payslips are the exception: with View Own Payslip, everyone sees their own. Payroll permissions apply to your company and the companies you have access to. Nobody can change their own salary structure.
Salary data stays inside payroll: payslip forms are made only by TrakIT Support, and AI Query refuses a report that reads the payroll tables.
Every change to the payroll settings, components, slab tables, accounts, structures and runs is recorded with who made it and when; a run’s record is on its Audit Trail tab.
Payroll pages
Section titled “Payroll pages”| Page | Open it from | Use it to |
|---|---|---|
| My payslips | HR > My Payslips | See and download your own payslips. |
| Payroll runs | HR > Payroll > Payroll Runs | Create, calculate, check, approve, post and reverse the monthly runs. |
| Salary structures | HR > Payroll > Salary Structures | See and revise each employee’s salary structure. |
| Payroll configuration | HR > Payroll > Configuration | Set up the company’s settings, pay groups, components, slab tables and GL accounts. |

