s4

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.

Payroll cost allocation by project
Project allocation tab for one employee: cost element, location, allocation source, rate and amount. Illustrative data.

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?

SideAccountContent
DebitExpense by allocation lineEmployee wages, contractor fees, employer insurance and union fee
DebitExpense by allocation mix13th-month accrual
Credit334Total employee net pay
Credit3388 or 331Contractor net pay
Credit338xEmployee and employer share per fund
Credit3335PIT withheld
Credit141Advance offsets per advance
Credit33513th-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.

Payroll journal entry in NetSuite
Journal tab of a payroll run: each debit and credit line by account, department, location and project. Illustrative data.

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.

Labor cost analysis in NetSuite
Cost analysis tab: monthly indicators, 12-month trend and a chart explaining why costs changed. Illustrative data.
Labor cost breakdown by department and project
Labor cost breakdown by department, project, class, location and account, with a P&L summary and GL reconciliation. Illustrative data.

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.