Payroll Concepts
This page explains the payroll flow in Acosys from salary components to payslips, the terms used, the available formulas, and the order of setting it up. Read this before opening any payroll form. Example on this page: a bakery kitchen with three employees, October salaries.
Payroll Flow
Six steps, each using the result of the previous one:
- Payroll Components: the salary items, for example basic salary, meal allowance, overtime, late deduction, BPJS contribution. Each component has a kind and an expense account.
- Salary Structure: a template for a group of employees, listing components and their values: fixed, entered manually, or calculated with a formula.
- Employee: each employee is given a structure, a group, and work hours. The Import Payroll Components button copies the structure's components to the employee, after which values can be adjusted per person, for example a different basic salary.
- Attendance: employees clock in from their phone (Employee Attendance) or from a kiosk at the workplace. Lateness, working hours, and overtime are calculated automatically from their work hours.
- Payroll Calculation: at the end of the period, all employees' components are pulled in, formulas are calculated from that period's attendance, and the result is posted as a salary expense journal.
- Salary Payment and Payslip: posted salaries are paid per employee (cash or transfer), then payslips are printed or exported to PDF.
Payroll Component Kinds
The kind determines how a component is treated in the calculation and on the payslip.
| Kind | Used for |
|---|---|
| Basic Salary | Fixed monthly salary. Its total becomes the basicsalary variable in formulas. |
| Employee Allowances | Meal, transport, position allowances, and the like. |
| Overtime Pay | Filled with an hourly rate; the value is multiplied by the period's overtime hours calculated from attendance. |
| Payroll Deductions | Deductions, for example for lateness or the employee's share of BPJS contributions. Reduces net pay. |
| Payroll Additions, Attendance-based Payroll | Other additions that are not allowances. |
| Sales Commission, Service Staff Commission | Sales and service commissions. |
| Salary Payment | Only for Salary Payment transactions, not for structures. |
Formulas in the Salary Structure
Formula-valued components are calculated on the server during Payroll Calculation, using the employee's attendance data for that period. Available variables:
| Variable | Meaning |
|---|---|
basicsalary |
Total of the employee's basic salary components |
hourlywage |
Hourly wage = basicsalary / 173 |
workdays |
Number of days present in the period |
workhours |
Total working hours in the period |
breakhours |
Total break hours in the period |
lateminutes |
Total minutes late in the period |
overtimehours |
Total overtime hours in the period (approved by HR) |
overtimepayhours |
Weighted overtime hours: 1.5x for the first hour and 2x for subsequent hours per day |
Example formulas:
- Meal allowance of Rp20,000 per day present:
workdays * 20000 - Late deduction of Rp1,000 per minute:
lateminutes * 1000 - BPJS Health contribution of 1% of basic salary:
basicsalary * 1 / 100 - Attendance bonus when present at least 22 days:
workdays >= 22 ? 200000 : 0 - The functions
min(a, b)andmax(a, b)are also available, for example to cap an allowance.
Attendance: Lateness, Overtime, and Leave
- Work Hours determine the late threshold and the overtime start time. Clocking in after the late threshold counts as minutes late; leaving after the overtime start counts as overtime hours.
- Clock times are always taken from the server clock, not the phone or tablet clock, so they cannot be backdated by changing the device time.
- Clocking in from a phone checks the location and takes a photo. A kiosk can use photo only or face recognition (faces are registered first in Face Enrollment). Leaving the kiosk screen requires the admin PIN.
- HR can correct attendance in the Attendance List, for example when an employee forgot to clock out, and decide which overtime is approved.
- Leave and sick days are requested in List of Employee Leave and approved in Leave Approval.
Resulting Journals
| Transaction | Debit | Credit |
|---|---|---|
| Payroll Calculation posting | Expense account of each component (basic salary, allowances, overtime) | Deduction accounts (for example BPJS contributions payable) and the accrued salaries account |
| Salary Payment | Accrued salaries | Cash or bank according to the payment type |
The posting journal is written net per account: when several components use the same account, their values are combined in one line. A payment cannot exceed the employee's salary balance, which is posted salary minus earlier payments.
Setup Order (Once at the Start)
- Fill in the Work Hours List (start time, late threshold, overtime start, break length).
- Create Payroll Components with their accounts.
- Build a Salary Structure for each group of employees.
- Complete the Employeedata: group, salary structure, then press Import Payroll Components and adjust values per person. Link the employee to an app user if they clock in from a phone.
- If you use a kiosk, register the Attendance Kiosk Device (mode, employee group, location, admin PIN).
- After that the rhythm is monthly: daily attendance, corrections and approvals by HR, Payroll Calculation, posting, Salary Payment, payslips.
Reports
- Attendance Summary: working days, working hours, minutes late, and overtime hours per employee.
- Attendance Sheet: daily attendance, one column per date.
- Payroll Summary and Payroll per Component: total salary per employee and per component.
- Payslip: one payslip per employee.
- Employee Leave Summary: leave by type.