
Payroll posting and labor cost allocation by project and department in NetSuite
Written by the S4 Consulting Oracle NetSuite team · Reviewed by Lạc Phạm, Solution Architect · Updated: 28/11/2026
Payroll posting in NetSuite with S4 Advanced Payroll creates one Journal Entry per payroll run, debiting expense in detail by account, department, location, class and project, and crediting 334, 338x, 3335, 141 and 335. From that posted data, management can see which project or department carries labor cost and why this month differs from the last.
In what order is payroll cost allocated?
The rule is that earnings with their own destination go straight there; only the remainder is allocated by method.
- Commissions follow the department, location and project of the revenue.
- Piece-rate pay follows the project and department of the output ticket.
- Manual lines with their own destination follow it.
- Remaining gross pay and employer insurance are split by approved timesheet hours, a versioned fixed-rate table, rostered days or the default project.
Allocation tables are versioned with effective dates; versions used by posted payroll are locked, so changing rates does not alter past periods.

How is the expense account chosen?
No account numbers such as 622, 627, 641 or 642 are hard-coded. The chief accountant maps expense accounts by destination, and the system resolves them in priority order: line class, line project, line department, payroll profile account, employee department, then the default. Each mapping can differ by labor type (employee or contractor) and by subsidiary, with an effective date.
Which lines does the payroll journal contain?
| Side | Account | Content |
|---|---|---|
| Debit | Expense by allocation line | Employee wages, contractor fees, employer insurance and union fee |
| Debit | Expense by allocation mix | 13th-month accrual |
| Credit | 334 | Total employee net pay |
| Credit | 3388 or 331 | Contractor net pay |
| Credit | 338x | Employee and employer share per fund |
| Credit | 3335 | PIT withheld |
| Credit | 141 | Advance offsets per advance |
| Credit | 335 | 13th-month accrual |
Finance previews the journal before posting. Missing accounts or an unbalanced entry block posting with the failing line described. To correct after posting, finance reverses the payroll: the reversal keeps every dimension, then a new run is created for the same period.

How is labor cost analyzed?
Each posting stores labor cost facts by account, department, class, location, project, labor type and component (wages, overtime, allowances, bonuses, piece rates, employer insurance, 13th month, contractors). The Cost analysis tab shows:
- Total labor cost, ratio to revenue, the share in cost of goods sold and in operating expense, cost per head and overtime share.
- A 12-month trend versus the prior period and the same period last year.
- A bridge explaining changes by headcount, average pay, overtime, allowances, bonuses and piece rates.
- Breakdown down to each employee, reconciled with the general ledger by account.
Whether labor sits in COGS or operating expense is determined by the NetSuite account type, not by account numbers.


Video and references
A 14-minute video with illustrative data from payroll to journal and labor cost analysis. Learn more about S4 Advanced Payroll and get a cost estimate.
Frequently asked questions
How many journal entries does a payroll run create?
One Journal Entry per run, grouping lines with the same account and dimensions. Agency bills are created separately after posting.
Can payroll be allocated by project hours?
Yes. The timesheet method uses approved NetSuite time; versioned fixed-rate tables and rostered days are also available.
Does the package hard-code 622, 627, 641 and 642?
No. The chief accountant maps expense accounts by class, project, department or profile to match the company’s chart of accounts.
How are errors corrected after posting?
Void any agency bills, reverse the payroll, then create a new run for the same period; the reversal keeps all dimensions.
