In brief
HR and payroll integration connects three systems: time and attendance (T&A) as the source of clock-ins, the HR and payroll system as the source of contracts, absences and pay, and the ERP, which receives the payroll journal split by cost center and work order. The sequence matters most: first a closed and approved timesheet, then the payroll run, and finally one summary journal entry to the general ledger. A shared employee ID and a single cost center list remove most discrepancies.
Three systems and the flows between them
In a mid-sized manufacturing company, data about people lives in three places, and each needs part of the data from the other two.
| Flow | From | To | When | What it carries |
|---|---|---|---|---|
| employee record | HR | T&A, ERP | at hiring and every change | employee number, department, cost center, working time fraction, contract dates |
| rosters | shift planning | T&A | before the settlement period and on every change | each person's planned working hours |
| absences | HR | T&A | as they happen | leave, sick leave, business travel as an excused absence |
| timesheet | T&A | HR | after the manager's approval | hours worked, night hours, overtime, on-call duty |
| time on orders | T&A or the production system | ERP | in real time or daily | hours per production order or project |
| payroll journal | HR | ERP | after the payroll run is closed | amounts per account and cost center |
The most common mistake is not sending absences to T&A. The attendance system then shows a person on leave as absent without excuse, the manager fixes it by hand, and with a few hundred people the timesheet review takes days.
From clock-ins to payroll
Under Polish law, the employer keeps working time records so that pay can be calculated correctly (Article 149 of the Polish Labour Code). In practice, the integration has to make sure the payroll system receives a closed and approved timesheet, not raw clock-ins.
- T&A collects clock-ins from the readers and compares them with the roster.
- The manager reviews discrepancies: missing clock-ins, an entry without an exit, overtime without an instruction, work on a day off.
- The system checks rest periods: at least 11 hours of uninterrupted rest in every 24 hours (Article 132) and 35 hours each week (Article 133). A breach is a signal for the manager and HR before the month is closed.
- The manager approves the timesheet for the team, and T&A locks it against changes after approval.
- HR imports the timesheet into the payroll system as pay components: regular hours, night hours, overtime with premiums.
- Payroll runs the calculation, and corrections after closing go through as a separate document with the reason.
Most time is lost in step two. A list of timesheet discrepancies, separate for each manager, is prepared before month-end by the Timesheet checker: it compares clock-ins with the roster, flags missing clock-ins and overtime without an instruction, and checks daily and weekly rest. Correcting the timesheet, approving overtime and passing data to payroll stay with people. More in Checking working time records, and on rosters in Shift rosters in a plant.
The payroll journal in the ERP
The ERP ledger receives one summary entry per month, not a payroll list with names. Pay details stay in the payroll system, which only a small group of people can access.
An example entry for one cost center (sample amounts):
| Item | Cost center 410 Production |
|---|---|
| gross pay | 1,240,000 PLN |
| employer social security contributions (ZUS) | 254,000 PLN |
| employer-funded PPK (Poland's workplace pension plan) | 18,600 PLN |
| settlements with employees (net pay) | per payroll |
| liabilities to ZUS and the tax office | per declarations |
Three rules save work at month-end:
- The payroll system calculates the cost center split, not a spreadsheet in accounting. When an employee changes department mid-month, the cost is split by days or by hours from the timesheet.
- Time on orders from T&A or the production system allocates labor cost to production orders in the ERP. Without it, the cost of production rests on standards, not on actual time.
- Reconcile after every import: total gross pay on the payroll equals the total on cost accounts in the ERP. A difference means a pay component has no account mapping.
Identifiers and code lists
Most discrepancies between HR systems and the ERP come from two things: different person identifiers and different cost center lists.
- The employee number as the key, assigned in HR and passed on to T&A and the ERP. The PESEL (Polish national ID number) is not suitable as an integration key: not every employee has one, and personal data in keys spreads into logs and reports.
- One cost center list, owned by controlling. HR and T&A take it from the ERP instead of keeping their own copies.
- An effective date on every change: a transfer to another department from the 15th of the month means two periods, not an overwritten field.
- Contractors and temporary workers get a separate record type, because their time and settlement work differently from employment contracts.
How to run shared master records across several systems is covered in Master data management (MDM).
Personal data and permissions
HR and payroll data is among the most sensitive data in a company. Information about sick leave concerns health, which is a special category of data (Article 9 of the GDPR). The integration should carry only what the target system needs (Article 5 of the GDPR):
- T&A receives "excused absence", not the type of absence, if the first is enough for the manager;
- the ERP receives amounts per cost center, not individual salaries;
- integration service accounts have access only to the fields they need, and every import and export is logged.
When implementing, start with the employee record flow, then add absences and timesheets, and leave the payroll journal for last, once the code lists are shared. At B2Bnetwork, such connections are built by the team behind our System integration service, together with tests on data from several closed months before cutover.
Questions and answers
Does the time and attendance system have to be integrated with HR and payroll?
It does not have to be, but without integration someone retypes the timesheet or imports files by hand every month. With a few dozen people that is a few hours of work; with a few hundred it is days, plus the risk of a pay error. Integration pays off especially where there are night shifts, overtime and different working time systems.
How often should data move between the systems?
Employee records and absences in real time or at least daily, because they decide whether T&A judges attendance correctly. Timesheets after the manager's approval, usually once per settlement period with room for corrections. The payroll journal once, after the payroll run is closed.
What about temporary workers and contractors?
They need a separate record type, because they are settled differently and often paid by another entity. Record their time in the same T&A system so labor cost on orders and cost centers is complete. The ERP then receives the agency's invoice or the contractor's bill, split according to the timesheet.
Can an AI Worker check working time records?
Yes, as a check before month-end. The AI Worker reads clock-ins, rosters and absences, flags discrepancies and rest period breaches, and prepares a list for each manager. Correcting the timesheet, approving overtime and passing data to payroll are done by people.