Odoo 19

Construction payroll

Payroll for a multi-company construction group: payslips driven by daily attendance, overtime priced at its own rates, labour cost split per project, and every deduction and settlement a site workforce produces.

  • 380active employees paid
  • 335 / 45paid by WPS / in cash
  • 58salary accounts mapped

The problem

A construction group with four companies paid its site workers and office staff from screens and spreadsheets. Overtime came in two kinds at two rates, labour cost had to land on the project where it was worked, and every month brought advances, loans, fines, salary attachments and leavers.

End-of-service settlements were typed by hand. The salary run was booked as a supplier bill to the card processor, among the real suppliers, so Salary Payable sat at nil and payroll never appeared as its own liability.

What I built

Payroll for a multi-company construction group. Payslips driven by daily attendance, overtime split into regular and off-day hours priced at their own rates, per-project labour cost distribution, WPS and cash salary batches, salary attachments, advances, loans, fines and end of service, with an OWL dashboard and PDF payslips on top.

End of service, to the fils

The settlement computes itself. Gratuity follows UAE Decree-Law 33 of 2021, article 51: 21 days of basic salary per year for the first five years, 30 days after that, nothing under one year, none for UAE nationals, and a cap of 24 months of wage. Service is counted from the joining date to the last day, exclusive, because counting it inclusive came out one day off from the office’s own settlements. Checked to the fils against two real settlements: AED 2,287.85 and AED 19,749.45.

Leave still owed is read from Time Off and priced at basic over 30 by default. The last month is settled by what was actually paid: the regular payslip already covered it, so only absence is taken back and unpaid overtime added. Two buttons keep the form honest: Compute works from the figures on the form as they stand, so a correction is respected; Refresh reads them again from the employee and Time Off.

Ready for the Wage Protection System

Who is paid through WPS and who in cash is decided by one field, the WPS code, carried from the Employee ID onto every employee and kept in step when the ID changes, without overwriting a code HR typed by hand. The Emirates IDs that had been stored in that slot were moved to a field of their own first.

On production, 335 active employees carry a WPS code and 45 are paid in cash: the same split as before the change, so nobody moved batch. Employee IBANs and each company’s employer ID are what the standard WPS export still needs.

Leave approval that writes its own emails

Annual and emergency leave take two approvals, and each approval is an email. The first opens a ready, editable message to HR with the employee’s photo, ID, department, dates and days, and sending it is what approves.

HR then records on the request how many leave salaries are due and whether an air ticket is owed. At the second approval the email to accounts carries those figures, and Send is refused until they are filled in. An approve-without-email path exists for the cases that need it, and it leaves a note on the request.

A salary batch that posts like a salary

The batch now posts a journal entry on each company’s salary journal against Salary Payable, never a bill. Accounts are mapped per company, 58 lines on production, each checked by code and by name, because the same code is Overtime Allowance in one company’s chart and Leave Salary in another’s. A batch that needs an account a company does not have refuses to post and names the line.

Project and employee analytics go on one line, once, where the old rule had written the cost twice.

The result

Runs the monthly payroll of 380 active employees across four companies, on the standard employee record.