hr.payrolls (query) · hr.payrolls.write (assign cost center)
Only processed or paid payrolls are exposed. Drafts (which can still change) and canceled payrolls are not returned.
List payrolls
Payroll detail
Assign cost center
hr.payrolls.write
Sets the payroll’s cost center and, if needed, a different center for some employees (for example, to split salary expense across areas).
Behavior
- The center must belong to the company, be active and be a leaf center (with no active sub-centers). Look up the IDs with Cost centers.
- When the payroll is posted to the books, salary expenses and employer contributions are grouped by account and center (the employee’s or, if they have none, the payroll’s). Withholdings and liabilities are left without a center.
- If the payroll has already been posted, the change does not modify the existing journal entry: fix it with the center reassignment in FileXpress.
- With a distribution, the employee’s (or the payroll’s) expense is split among its centers by percentage when posting.
- If there is an error in any line, no change is applied.
200