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:

  1. 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.
  2. Salary Structure: a template for a group of employees, listing components and their values: fixed, entered manually, or calculated with a formula.
  3. 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.
  4. 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.
  5. 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.
  6. 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:

Attendance: Lateness, Overtime, and Leave

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)

  1. Fill in the Work Hours List (start time, late threshold, overtime start, break length).
  2. Create Payroll Components with their accounts.
  3. Build a Salary Structure for each group of employees.
  4. 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.
  5. If you use a kiosk, register the Attendance Kiosk Device (mode, employee group, location, admin PIN).
  6. After that the rhythm is monthly: daily attendance, corrections and approvals by HR, Payroll Calculation, posting, Salary Payment, payslips.

Reports