Payroll CalculationData trustPayroll

Payroll fights every cycle? Fancy formulas still compute wrong answers when inputs are untrusted

The formulas are becoming increasingly complex, yet employees still do not trust their pay slips. Trust comes from verifiable inputs and explainable processes, not from adding another rule. A compensation system is first and foremost a reliable data pipeline, and only then a calculation engine.

Updated 2026-10-09 ~9 min read Manufacturing digitalization · EHR · HR

What you'll take away

  • Freeze organization, attendance, part counting, etc. input before the start of the pay cycle; change after the deadline Adjustment order
  • Trial-calc before payout; over-threshold variances need human review. After payout lock, only forward-looking adjustments are allowed.
  • The remuneration authority is strictly isolated from the ordinary personnel authority, and the field level is desensitized.
  • Piecework/timing data should be able to be traced back to the worker or work order; wage items should be able to return to the business document
  • Performance results must have a formal result after calibration, and verbal change of salary is prohibited

That column on the pay slip, you can't click back

On payday afternoon, the workshop supervisor called HR holding his phone: 'The piecework pay is 200 short; I’ve checked the coefficient and it’s fine.' HR opened the payroll spreadsheet and found that the attendance days had been altered on the night before payday, and the piecework output came from an Excel sheet that couldn’t be matched to work orders. What employees often argue about isn’t 'is the coefficient 1.2 or 1.3,' but 'where did this number come from?'

Common fuels in manufacturing: manual adjustments of attendance at the end of the month, mismatches between piecework and MES, subsidies passed by word of mouth, and performance scores being altered on WeChat. Every time the accounting colleagues put out fires, the formulas just keep getting longer—adding formulas when the pipeline is unstable is like fitting a louder horn to noise. The correct order is to stabilize the inputs first, then talk about a complex subsidy engine.

Pick any wage item, and see if you can trace it back within two minutes—to the organization position, attendance results, piecework documents, or performance result sheet, and whether it has been changed after being frozen. If you can't trace it back, don't pile up more rules.

First, draw the input list for this cycle

Reliable accounting does not start from the formula editor, but starts from 'which versions of input this cycle depends on':

Input fieldCommon accidentsShould have control
Org & AssignmentsThe job transfer was not based on the effective date, and the payroll group was incorrectMaster Data Effective Date Switch
Attendance ResultsSilent number change, no confirmation windowAbnormal closed loop Freeze before salary
Piecework / HourlyExcel and on-site two sets of dataTrace MES/Work Reporting Primary Key
Performance fluctuationOral adjustment of grades and salary increaseOfficial results after read-only calibration
Subsidies/BenefitsRules are in the human brainStandard Item Effective Date Approval
PermissionOrdinary personnel matters can change salaryCompensation Role Segregation and Data Masking

Write the responsible parties as RACI: who submits attendance confirmation, who submits piecework reconciliation batches, who submits the formal performance version, who has the authority to initiate adjustment forms. Version the input checklist according to the cycle—if any upstream party has not closed confirmation, the trial calculation should be refused to start or clearly marked in red, rather than 'send this first and adjust if there’s a problem.'

Employment status can also contaminate the pipeline: issuing payroll before onboarding, or having no attendance records after onboarding, later piece-rate calculations and exceptions won't align — these are upstream issues of pre-employment and organizational assignment, and should not be forcibly handled in the payroll formula.

Three gates: Freeze, Trial Calculation, Lock

A reliable payroll month typically follows this schedule: attendance confirmation window closes → organization/piecework/performance and other inputs are frozen → payroll specialist runs a trial calculation → discrepancy list is distributed for review → items exceeding the threshold are manually confirmed → payment approval → lock → bank submission/accounting posting.

Input frozen. Inputs are read-only after the deadline; the only legitimate way to make adjustments is through an adjustment form — specifying the reason, impact period, and approver, and reflecting it in the next period or a designated period. Any habit of 'changing the attendance sheet ten minutes before payday' will turn the trial calculation into a performance. Historical back payments also go through the adjustment form, and untraceable changes to already issued results are prohibited.

Trial balance confirmation. Break down differences by department or salary group; thresholds can be configured (e.g., changes in payable amount exceeding X yuan, fluctuations in piecework exceeding Y%, abnormal headcount, or large deviations from the median of the same position last month). The thresholds are not meant to generate workload but to focus attention on areas that 'might be wrong.' It is unrealistic for everyone to confirm each item, but for highly sensitive items (performance, piecework), it is recommended that the individual or manager can view them within their authorized scope.

Issuance lock. After locking, only adjustments to individual items can affect future periods; payroll-related fields cannot be edited at will, and audits can restore the standard. Using 'deduct next month' to cover this month's mistakes damages both trust and compliance.

When adding a formula, it must include an effective date and a trial calculation example. Directly changing the coefficient online is prohibited as it affects already frozen periods. Comparing the salary budget with the actual payment helps management see the staffing and overtime structure, rather than just looking at the total amount on payday.

Piecework Dispute: Return to the work reporting key, rather than arguing over the coefficient

In piece-rate scenarios, it is essential to align with the reporting key: the same output cannot be accounted for in piece-rate and also be counted again for other allowances; if it doesn't match, stop at the trial calculation stage, and do not issue payment with errors. Disputes over output on the payslip regarding coefficients are less effective than going back to the MES/reporting documents — who reported the work, which work order, and when it was confirmed.

If the MES is already online but piecework is still entirely entered manually, priority should be given to connecting the reporting system to reduce double entry; if the interface fails, manual entry is allowed, but it must go into the to-do list and be corrected and backfilled once fixed, and it cannot turn into two sets of output running in parallel long-term. When the discrepancy rate between piecework and reporting is high, stop the automatic piecework items first, and then discuss optimizing tiered pricing.

Performance linkage especially needs gatekeeping: only accept the official version of results after calibration is completed; scores changed in WeChat cannot affect variable pay. Organizational transfers should switch salary groups and tax locations according to the effective date; for multiple salary groups, rely on the employee's affiliation and effective date, and process changes through approval to avoid 'the person has already moved to the new factory, but the tax is still based on the old entity.'

Permission Isolation: Convenience is Not a Reason

Compensation roles are strictly separated from ordinary HR and manager self-service; salary fields are desensitized at the field level for confidentiality; operation logs are traceable. If someone with multiple roles can see salaries for the entire company, it usually means their permissions have not been restricted according to their position—the row-level and field-level access must follow the job role, and it is forbidden to "grant permanent permissions for convenience."

When interfacing with finance, the general ledger consumes summary vouchers, and detailed disputes return to EHR for drilling down; reconciliation starts by looking at summaries and headcount, and anomalies then drill down to individuals. When subsidiaries operate in a multi-tenant setup, HR and payroll data are isolated, and group reports are aggregated only within the authorized scope. Permanent super HR accounts bypass the permission engine and must be changed to temporary authorization with auditing—the pipeline trust also includes 'who can modify salaries'.

What does JEDP-EHR payroll accounting interface with?

The JEDP-EHR payroll module covers hourly wages/piecework/allowances and social insurance and housing funds, supporting trial calculation—review—approval—locking; once payroll is locked, adjustments can only be made through adjustment forms; any selectable payroll items should be able to trace back to organization/attendance/piecework input documents. When linked with performance appraisal results, they must be approved before taking effect; uncalibrated results cannot directly change salaries. Attendance, leave, and organization HR provide upstream inputs; piecework output can be reported according to project consumption MES, but payroll input must be freezable and traceable.

Recommended pace of implementation: First, disable silent salary change permissions and clarify input RACI; then launch the attendance confirmation window and freezing, along with piecework reconciliation rules; next, test the difference threshold and interface for official performance results; after running through the issuance lock and adjustment orders, optimize subsidy formulas and budget analysis. If the pipeline is unstable for a quarter, do not expand the tiered rules—adding each rule could lead to another round of arguments.

Temporarily stop automation when not applicable: Attendance results are still largely manually modified, first close the loop on anomalies; source of piecework cannot be traced, first connect to report work or temporarily simplify the plan; payroll and general HR permissions are not separated, first isolate then enable employee self-service salary inquiry; regulations and payroll group policies are not determined, the system cannot make compliant choices for you.

After sending incorrectly: adjusting the order to 'deduct next month' is cleaner

Even if the process improves, occasional errors will still occur. How you handle them determines whether employees will trust the system next time. The correct approach is to issue an adjustment form: clearly state the reason, the affected period, and the approver, and reflect it in the next period or a designated period; it is prohibited to silently change historical results, and try to avoid using verbal 'deduct next month' — the latter only pushes the dispute into the next month, and auditors cannot have a complete chain.

The explanation scripts on the employee side should be able to point to the documents: attendance comes from which confirmation, piecework from which work report, and the performance coefficient from which calibration version. Customer service–style self-service (drilling down within authorization) can handle most of the 'I’ve calculated it and it’s correct'; only truly over-threshold cases go to specialist manual review. When bank submissions and the general ledger are still fully manual, the EHR internal trial calculation and locking can be stabilized first, but a milestone for voucher integration should be arranged to avoid having two sets of payroll realities coexist for a long time.

When multiple plans and multiple salary groups coexist, changes are approved based on the effective date, rather than changing the assignment in the table on the eve of payroll. After the confidential salary fields are desensitized, managers can only view the authorized scope through self-service — making it convenient to check team costs, but it does not mean opening the payroll of all employees.

Next payroll month: read-only freeze plus one trial calculation

You don't need to wait for the formula engine to be 'perfect.' In the next payroll cycle, force a run of the 'read-only frozen trial calculation,' even if it's still half manual—paste the difference list in front of the department/payroll team leaders, which usually stops arguments more effectively than writing three more formulas.

It’s cheaper to resolve discrepancies before issuing payments than to make retroactive deductions. If piecework doesn’t match reported hours, it’s better to stop automatic items than to issue a payroll with errors. The three inspection questions can be set before payroll issuance: after freezing, are there any changes without orders, are all items exceeding thresholds closed, and can random payroll items be traced back to documents. If the three questions are not passed, don’t talk about 'intelligent payroll' yet. Stabilize the process for a quarter first, then expand subsidies and tiered rules—this will halve disputes, and the accounting team won’t have to rely on all-night firefighting every time.

  • EHR HR solution
  • Attendance Abnormality Closed Loop
  • Organizational Permission Inheritance
  • Performance Closed Loop and Calibration
  • Recruiting pre-board

FAQ

Quick answers on this topic—still stuck?Contact

How to handle historical back payments?

Use a separate adjustment into the next period and keep the reason; do not silently rewrite already-paid history.

How is confidential salary displayed in the system?

Field-level permissions and desensitization; managers self-help only look at the scope of authorization, and remuneration specialists are separated from ordinary personnel permissions.

How to manage multiple plans and multiple salary groups?

Employees belong to a pay group plus effective date; changes go through approval. Org transfers switch pay group and tax location on the effective date.

How does it reconcile with the general ledger?

Summarize the docking with the compensation voucher, and the details are retained in the EHR for traceability; the reconciliation looks at the number of people summarized, and then drill down to the details.

To what level of detail does the trial balance need to be confirmed?

At least the department/pay group difference list + over-threshold individuals; everyone confirms that it is unrealistic, but highly sensitive items (performance, piecework) are recommended to be visible to me or my manager.