Demo

Illustrative example - not a client. All companies, people and numbers are made up.

Monthly payroll.

A month of hours and leave becomes signed pay and one journal entry per company. The payroll service calculates. Code checks what goes in and compares what comes back, the accountant prepares, the owner approves the result and signs. After hiring, pay by person is open to the owner and the accountant only.

Company
Demo Manufacturer LLC and Demo Manufacturer US Inc.
Starts when
The pay period ends
How often
Every month, one run per company
Select a step to open its card. The table below lists every step in order.

Steps

Steps in order

#StepDone byToleranceRollout stage
1Code collects the pay period Pay inputs · Automation, no AIExact - one row per person and company and 1 more6
2Code checks hours, leave and pay Pay checks · Automation, no AINo hour on a day of approved leave and 6 more6
3Office manager corrects with the heads Office managerExact and 1 more6
4Accountant sends the input file AccountantNumber of people exact, each difference with a name behind it and 1 more6
5Code compares the result file Pay result checks · Automation, no AIPeople, days, hours and bonuses exact and 4 more6
6Owner approves the result OwnerThe explained parts add up to the whole change and 1 more6
7Accountant prepares payments and entry AccountantOne payment per person and period and 3 more6
8Owner signs the payments in the bank OwnerNumber and total exact and 1 more6

Rollout stage: 6 · Month-end close and approvals.

Before

How it was done before

The Ukrainian company typed hours from a Google Sheet into a letter to the payroll service; the US company exported them from QuickBooks Online. The result was paid as it came, and the journal entry was made a month later.

Where it breaks without control

  • A person has hours on a day of approved leave and is paid for both.
  • A bank account is changed, the first payment has not come back yet, and the person is paid again to the new one.
  • Somebody who left stays in the result file for one more month.
  • A raise is typed into the employee record, and nobody approved it.

Controls

What is checked, and who signs

Checks

StepCompared withToleranceOn a difference
1 · Code collects the pay periodEvery employee record active on any day of the period, every attendance, every approved day of leave and each line carried over against the rows made from themExact - one row per person and company; each attendance and each day of leave used onceA record that reached no row or two rows is listed, and the draft is not checked further. It waits in the exception queue of the accountant, who has the record it came from corrected, never the row.
2 · Code checks hours, leave and payHours by day against the schedule, the approved leave and the approved overtime; first and last day against the hours; pay on the record against the last approval; people against each otherNo hour on a day of approved leave; each working day covered by hours or leave within 15 minutes; no hour before the first or after the last day; overtime not above what was approved; no attendance left open or closed by Odoo itself; pay exactly the approved one; no two people of a company with one identification number or one bank accountEach difference waits in plain words. Hours and leave go to the office manager's exception queue, because Odoo accepts an attendance on a day of leave. Pay, bonuses and two people with one account go to the owner's, so that the office manager sees no sum; the owner approves the pay found or puts the approved one back. The file is not made while a line is open, except a disputed line that step 3 set aside for the next period.
3 · Office manager corrects with the headsThe corrected record against the head's written answerExact; every correction has an answer and a reason from the listA corrected line passes through step 2 again before the file is made. Without an answer by the day of sending, only the hours that nobody disputes are paid; the rest stays in the queue for the next period and is shown to the owner. Nobody corrects their own hours, the office manager included - the owner does.
4 · Accountant sends the input filePeople in the file against people paid last period plus joiners less people who left before this period began; file uploaded against the file checkedNumber of people exact, each difference with a name behind it; fingerprint exactThe file is not sent, and the accountant finds the person who is too many or missing. From this hour the period is closed for hours and leave in our module; a later change is listed for the next period.
5 · Code compares the result filePeople, days, hours, pay and bonuses against the input sent; gross less deductions against net; lines against totals; days of leave left against Odoo; each person's gross against the month beforePeople, days, hours and bonuses exact; gross, net and totals within 0.01; days of leave exact; period and company the ones sent; a change above 10 % listedA file that fails is not taken. It waits in the exception queue of the accountant, who asks the payroll service for a corrected file and may not edit it; the new file goes through the same checks. A change above 10 % does not stop the file - code shows the cause it finds in the inputs (joiner, leaver, unpaid leave, overtime, bonus, approved raise), and the accountant writes it where code finds none.
6 · Owner approves the resultTotal gross against the month before, explained by joiners, leavers, hours, bonuses and raises; each listed person against the reasonThe explained parts add up to the whole change; no listed person without a reasonThe owner returns the file with a question on a person or a total, and the accountant answers or asks the payroll service for a corrected file, which starts again at step 5. A new file cancels the approval. Without the approval our module refuses the payments and the entry.
7 · Accountant prepares payments and entryPayments against the approved result, person by person; each account against the validated one; payments of the period already sent; the entry against the totals of the result fileOne payment per person and period; net exact; account exactly the validated one; entry within 0.01 of the totalsOur module refuses the payment and names the condition. Odoo allows several accounts on one employee record, so a second account needs the owner's validation and the old one is closed the same day. A second payment for a period is made only after the first is back on the bank statement. The accountant may not change a sum or validate an account.
8 · Owner signs the payments in the bankNumber of payments and total in the bank against the approved result; each account on the list of changes against the one the owner validatedNumber and total exact; account exactThe owner does not sign. The accountant cancels the file in the bank, corrects the payment in Odoo and makes a new file; the first file is deleted, so that two files for one period never wait together.

Duties by role

What the action log records

StepRecordWhat is written
1 · Code collects the pay periodAgent action logThe number of records read and of rows made, by source
2 · Code checks hours, leave and payAgent action logOne line per difference, without sums
5 · Code compares the result fileAgent action logOne line per check result, without names and sums

Connected processes

Where the work comes from and where it goes

Work goes to

ProcessWhat passesAt step
Bank reconciliationSigned pay, to be matched with the bank statementOwner signs the payments in the bank
Cash forecastNet pay and charges by company and date, as totals with no namesOwner approves the result
Month-end closeThe posted pay entry of each companyAccountant prepares payments and entry

Work comes from

ProcessWhat passesAt step
Joining and leavingFirst or last day, approved pay, validated account, days of leave leftCode writes the record and the tasks
Time offApproved days by person and kind, and each later changeCode books the days

Back to the diagramShow it on the process map

Want this process checked on your data?

Tell us where it goes wrong.

Write to us about this process