For the complete documentation index, see llms.txt. This page is also available as Markdown.

Payrun Templates

Set up earning, deduction and benefit templates: link them to hours and other metrics, set or link their rate (including to other templates), and use unit constraints, value limits, monthly limits and

Introduction

A pay run template defines one line on the payslip: an earning, a deduction or a benefit. It says what is measured (for example hours worked), the rate it is paid at, and which SARS code it is reported under. You set a template up once and use it for all the employees it applies to.

Templates are managed on Payroll > Settings > Pay run templates.

Setting up a pay run template

Click Add template. The Add a new template panel opens.

  1. Template name: required. It can't be the same as, or very similar to, the name of another template, including templates that were deleted. If it is, AllWage shows "Similar template name already exists".

  2. Add a description (Optional): what the template is for.

  3. Pay run type: Earning, Deduction or Benefit. You can't change this after the template is created.

    • For a deduction, also choose the Deduction type: Default, Saving or Loan. Savings and loans work differently: see Savings and Loans.

  4. SARS Code: click the card and choose the code the template is reported under. You can't change it after the template is created. See SARS codes.

  5. Link a metric or quantity (Optional): what the template measures. See Link a metric or quantity. Leave it empty for a fixed amount.

  6. Set the rate: a rate in rand, or a link to a system rate or to other templates. See Set the rate.

  7. Optional settings:

    • Set value limits: a minimum or maximum rand amount, and how many times a month the template can apply. See Value limits.

    • Enable pro-ration: pay part of a fixed amount when the employee only worked part of the period. See Pro-ration.

    • Show benefit on payslip (benefits only): see Seeing both amounts on the payslip.

  8. Click Add.

The line's amount is the quantity times the rate. If no quantity is linked, the quantity is 1.

Tax treatment comes from the SARS code. There are no separate PAYE or UIF settings on a template. Whether an earning is taxable, and how it is reported on the IRP5, is decided by the SARS code you choose.

SARS Source codes

SARS codes are grouped by pay run type: you only see the codes that fit an earning, a deduction or a benefit. Each code has a short description and examples of when to use it. Lump-sum codes aren't offered: a lump sum is paid through a tax directive.

The Link to SARS code list, showing each code with its description
Link to SARS code

Learn more about SARS codes and how to use them.

Click + next to Link a metric or quantity (Optional). The Choose a quantity type panel has two tabs: Metrics and Custom Quantity. A template uses either linked metrics or a custom quantity, not both.

Metrics link the template to what AllWage measures from clocks and captured data:

  • Activities, harvesting, packing and Assets: units captured against an activity, harvest, pack item or asset transfer, for piecework. Choose the item, then what to measure (for example measured units, units over target or total hours).

  • Working hours: choose the Working hours type (Normal, Overtime or Public Holidays), the Measurement unit (Daily or Hourly) and, for normal hours and overtime, which days of the week. Click a metric to add it.

  • Leave: leave hours or days by leave type, such as annual, sick, family responsibility or special leave.

  • Absent days: days the employee was expected to work but wasn't present.

  • Custom metric: any system or custom metric, including the custom metrics you create for time and attendance. Select the metrics to link. See Custom metrics for what they can measure and why a payslip that uses one can differ from the Employee Overview.

If you link more than one metric, AllWage adds them together.

Unit Constraints

After you link a metric or quantity to a template, you can open Set unit constraints and enter a Min, a Max, or both. Leave a box empty if you don't need it. If you link more than one metric, AllWage adds them together first, and the constraints apply to that total for the pay run's period.

  • Max caps the total. Units above the maximum aren't paid on this template.

  • Min is subtracted from the total. Only the units above the minimum are paid, and a total at or below the minimum pays 0.

  • When both are set, AllWage caps the total at the Max first and then subtracts the Min. So the most the template can pay is Max minus Min.

Example, measured in hours:

Min
Max
Hours measured
Hours paid

90

(empty)

100

10

90

(empty)

85

0

(empty)

90

100

90

90

130

150

40

Unit constraints only apply to linked metrics, not to custom quantities. They are also different from Set value limits, which set a minimum or maximum rand amount for the template.

Bucket Hours

AllWage's Time and Attendance module calculates overtime daily by default. That means employees will only earn overtime if they exceed their regular working hours. However, some employers prefer to combine all hours worked and only allocate overtime when a certain threshold of hours is reached. Unit constraints let you do this.

For example, an employer pays their employees fortnightly. They work 5 days a week for 9 hours a day from Monday to Friday. On Saturdays, they are paid at a 1.5 rate, and on Sundays, at a 2 times rate. The regular working hours in a fortnight total to 9 hours per day x 5 days per week x 2 weeks = 90 hours.

To implement bucket hours, you need to configure an earning template for Normal Hours and link the following metrics:

  • Normal hours: All regular hours worked between Monday to Friday

  • Normal overtime: All overtime hours worked between Monday to Friday

  • Public Holiday Total Hours Clocked: If an employee works on a public holiday, those hours must also be accounted for in the 90 total hours for the fortnight period.

After linking all three metrics, you add a unit constraint with a maximum of 90. This will limit the total number of hours for all three metrics to 90.

The next step is to create an earning template for Overtime Hours. Link the same metrics as the Normal Hours template, but now add a unit constraint with a minimum of 90. AllWage subtracts the 90 hours, so only the hours above 90 are paid as overtime. If an employee works 96 hours in the fortnight, the Normal Hours template pays 90 hours and the Overtime Hours template pays 6.

Saturdays and Sundays are seen as irregular working days, and they can be added to their own respective pay run templates.

Overtime on the Employee Overview but none on the payslip

The Employee Overview report and payroll use the same clocks and the same daily overtime calculation. The report shows the overtime whether or not it is paid. Payroll only pays what the employee's earning templates measure. If the report shows overtime but the payslip doesn't, check:

  1. The employee has an overtime earning. Payroll only calculates the templates in the employee's pay run earnings. Check that the overtime template is listed for the employee in the pay run.

  2. The template measures the right hours. Only the metrics linked to the template count. The report's Overtime column is weekday overtime. If the template links Normal hours only, weekday overtime isn't counted.

  3. The minimum is reached. If the template has a Min unit constraint, only hours above it are paid. When the total is at or below the minimum, the template pays 0 and the line doesn't appear on the payslip at all.

  4. No days are missing a clock-in or clock-out. A day with a missing clock counts no hours, in the report and in payroll, which makes a minimum harder to reach. See Changing when a day ends.

  5. The template doesn't read a custom metric. A template linked to a custom metric pays what the metric calculates, for example hours less a break or only some days' overtime. That can differ from the report, because a custom metric never changes the report's daily hours. Check the metrics linked to the template under Link a metric or quantity.

To see what each template measured, generate payslips with Include detailed payroll calculations report (additional page). It shows each template's daily running totals after the unit constraints, and marks the days where a Min or Max was applied. See Detailed Payroll Calculations Report. The payslip line also shows the quantity paid, for example "12.00 @ R45.00". No screen shows the total before the minimum is subtracted. For that, use the matching metric on the Employee Overview report.

A template is shared by every employee who has it. When you change a template, the change applies to all of them in pay runs that aren't finalised yet. Finalised pay runs don't change.

Notice pay and other ad-hoc earnings

For an earning whose amount differs every time, such as notice pay, a once-off bonus or a back payment, set up one template with no fixed amount and enter the amount on each employee's pay run.

Example: notice pay

  1. On Payroll > Settings > Pay run templates, click Add template.

  2. Name it, for example "Notice Pay", and choose Earning as the Pay run type.

  3. Choose the SARS code, for example 3601 (Income). The SARS code decides the tax treatment, so check it with your accountant if you're unsure.

  4. Leave Link a metric or quantity (Optional) empty and set the Rate to 0. Click Add.

  5. Add the template to the employee as a once-off template: on the pay run, select the employee, click Manage pay run templates and add it under Link once-off templates (see Recurring or Once-off).

  6. Click the employee's name, click Edit next to the template's line, enter the amount as the rate, and click Create override.

The line pays that amount in this pay run only. Because the template is once-off, it isn't on the employee's next pay run. To add amounts for several employees at once, use Import Pay run templates and choose Once off.

Custom quantity

Use a custom quantity for an arrangement that isn't measured from clocks, such as deductions for food or tokens, or payments per unit of work. On the Custom Quantity tab:

  1. What is your unit of measure?: for example rows, metres or tokens.

  2. How many units should be added?: the number of units on each pay run.

  3. Click Add.

Unit constraints don't apply to custom quantities.

Set the rate

Under Set the rate, either type a Rate in rand, or click the link icon to open Link input rates. It has four options:

Option
The rate is

Pay run templates

The total of one or more other templates you choose, on the same employee's pay run

All taxable earnings

The total of all the employee's earnings that are taxable income (their SARS code counts towards PAYE)

Tax codes

The total of all the employee's templates reported under the SARS codes you choose

System rates

A system rate, such as your minimum wage, that you manage in one place

When the rate is linked, a factor field appears: Add a factor e.g X 1,5 (default 1). The rate is the linked value times the factor. For example, a factor of 1.5 on a system rate of R30 gives a rate of R45, and a factor of 0.01 on all taxable earnings gives 1% of them.

Linking to other pay run templates

Linking a template to other templates lets one line be calculated from others, for example a union fee of 1% of taxable earnings, an employer contribution equal to an employee deduction, or a fringe benefit equal to an employer contribution.

  • AllWage uses the final amounts of the linked templates on the same employee's pay run, after their own value limits. If templates link to each other in a chain, AllWage works out the order for you.

  • What you can link to depends on the template's pay run type:

    • an earning can link to earnings;

    • a deduction can link to earnings and deductions;

    • a benefit can link to earnings, deductions and benefits.

  • PAYE, UIF and SDL can't be linked.

  • AllWage won't save a template that would include itself: a template that links back to itself, directly or through other templates, a template linked to its own SARS code, or an earning set to All taxable earnings.

  • A linked template can't also use pro-ration, and loans and savings can't be linked.

  • If a template you chose under Pay run templates isn't on an employee's pay run, it adds nothing for that employee, and the line shows a Linked missing badge.

  • You can't delete a template while another template links to it by name. Remove the link first.

Example: a deduction "Union Contribution" linked to All taxable earnings with a factor of 0.01, a minimum of R50 and a maximum of R100 (see Value limits):

Taxable earnings
1%
Deducted

R3,000

R30

R50 (raised to the minimum)

R7,500

R75

R75

R15,000

R150

R100 (capped at the maximum)

R0

R0

R0 (the minimum doesn't apply to R0)

Value limits

Click Set value limits to open Value limits:

  • Set minimum value: the lowest amount the template pays or deducts. If the amount works out lower, it is raised to the minimum. An amount of R0 stays R0.

  • Set maximum value: the highest amount. If the amount works out higher, it is capped. The minimum can't be more than the maximum.

  • Calendar month limit: the most times the template can apply in one calendar month, for weekly and fortnightly pay runs. AllWage counts the employee's finalised pay runs that end in the same calendar month and in which this template had an amount. Once the limit is reached, the template pays R0 in that month's later pay runs. It doesn't apply to monthly pay runs, and a new period of employment starts the count again.

Value limits are rand amounts. They are different from unit constraints, which limit the quantity. Value limits apply after pro-ration, and the calendar month limit wins over the minimum.

Pro-ration

Enable pro-ration pays a part of a fixed amount when the employee only worked for part of the pay run, for example in their first or last month. It's offered on templates without a linked metric or custom quantity, and not on loans, savings or linked templates.

  • None: the full amount is paid, even if the employee starts or leaves part-way through the pay run.

  • Active Period: the amount is multiplied by the calendar days the employee was active in the pay run, divided by the calendar days in the pay run (both counting the first and last day). It doesn't look at working schedules or clock templates. For example, an employee who starts on the 11th of a 30-day pay run is active for 20 days and is paid 20/30, or 67%, of the amount.

  • Working Days: the amount is multiplied by the required working days the employee was active, divided by the required working days in the pay run, from their clock template. Days marked optional on the clock template don't count; public holidays do. Every employee on the template must have a clock template for the whole pay run, or the pay run can't be finalised: see Working days pro-ration with missing clock templates.

How templates show on the pay run

On an employee's payroll lines (columns Name, Quantity, Rate and Value), badges under the template name show how the amount was worked out. Hover over a badge to see the detail.

Badge
Meaning

Linked

The rate is linked to other templates, all taxable earnings or tax codes. The detail shows the percentage and what it is of, for example "Linked: 1.00% of all taxable earnings".

Linked missing

A template this one links to isn't on the employee's pay run, so it added nothing. The detail names it.

Pro-rated N%

The amount was pro-rated to N%, by active period or by working days.

Value capped

The amount was capped at the maximum value. The detail shows the original amount.

Value floored

The amount was raised to the minimum value. The detail shows the original amount.

Frequency limit reached

The calendar month limit was reached, so the template paid R0 on this pay run.

For a linked template, the Rate column shows the worked-out rate: the factor times the total of what it links to.

Manage your templates

The Pay run templates page lists all your templates:

  • Filter by All, Earnings, Deductions or Benefits, or use Search.

  • Each card shows the template's type, its quantity (the linked metrics, or "Fixed"), its rate, and tags such as Linked, Min, Max and its SARS code.

  • System templates shows or hides templates that AllWage provides. System templates can't be changed.

  • Each card has Duplicate, Edit and Delete. Duplicate creates a copy named "[name] Duplicate".

What you can change later. After a template is created you can't change its pay run type, deduction type or SARS code. Once a template has been used in a finalised pay run, you also can't add metrics to a template that had none, or remove all of them. Changes to a template apply to every employee who has it, in pay runs that aren't finalised. Finalised pay runs don't change.

Deleting a template. Click Delete on the card, or tick several templates and click Delete templates. The Remove input templates window asks you to confirm. If the template is on open pay runs, it lists the employee pay runs it will be removed from, and you must type PERMANENTLY DELETE before Remove works. A deleted template is removed from open pay runs, employees' recurring templates and pay run defaults, and can't be restored. It is kept in the background for history, so its name can't be reused. You can't delete a system template, a template used in a payment, or a template that another template links to by name.

System Rates

Refer to this page:

System Rates

Last updated

Was this helpful?