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
The diagram goes on to the side. Drag it, or use the two buttons.
Steps
Steps in order
| # | Step | Done by | Tolerance | Rollout stage |
|---|---|---|---|---|
| 1 | Code collects the pay period Selected | Pay inputs · Automation, no AI | Exact - one row per person and company and 1 more | 6 |
| 2 | Code checks hours, leave and pay Selected | Pay checks · Automation, no AI | No hour on a day of approved leave and 6 more | 6 |
| 3 | Office manager corrects with the heads Selected | Office manager | Exact and 1 more | 6 |
| 4 | Accountant sends the input file Selected | Accountant | Number of people exact, each difference with a name behind it and 1 more | 6 |
| 5 | Code compares the result file Selected | Pay result checks · Automation, no AI | People, days, hours and bonuses exact and 4 more | 6 |
| 6 | Owner approves the result Selected | Owner | The explained parts add up to the whole change and 1 more | 6 |
| 7 | Accountant prepares payments and entry Selected | Accountant | One payment per person and period and 3 more | 6 |
| 8 | Owner signs the payments in the bank Selected | Owner | Number and total exact and 1 more | 6 |
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
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · Code collects the pay period | Every 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 them | Exact - one row per person and company; each attendance and each day of leave used once | A 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 pay | Hours 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 other | No 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 account | Each 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 heads | The corrected record against the head's written answer | Exact; every correction has an answer and a reason from the list | A 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 file | People in the file against people paid last period plus joiners less people who left before this period began; file uploaded against the file checked | Number of people exact, each difference with a name behind it; fingerprint exact | The 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 file | People, 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 before | People, 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 % listed | A 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 result | Total gross against the month before, explained by joiners, leavers, hours, bonuses and raises; each listed person against the reason | The explained parts add up to the whole change; no listed person without a reason | The 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 entry | Payments 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 file | One payment per person and period; net exact; account exactly the validated one; entry within 0.01 of the totals | Our 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 bank | Number of payments and total in the bank against the approved result; each account on the list of changes against the one the owner validated | Number and total exact; account exact | The 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
| Step | Record | What is written |
|---|---|---|
| 1 · Code collects the pay period | Agent action log | The number of records read and of rows made, by source |
| 2 · Code checks hours, leave and pay | Agent action log | One line per difference, without sums |
| 5 · Code compares the result file | Agent action log | One line per check result, without names and sums |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Bank reconciliation | Signed pay, to be matched with the bank statement | Owner signs the payments in the bank |
| Cash forecast | Net pay and charges by company and date, as totals with no names | Owner approves the result |
| Month-end close | The posted pay entry of each company | Accountant prepares payments and entry |
Work comes from
| Process | What passes | At step |
|---|---|---|
| Joining and leaving | First or last day, approved pay, validated account, days of leave left | Code writes the record and the tasks |
| Time off | Approved days by person and kind, and each later change | Code books the days |
Want this process checked on your data?
Tell us where it goes wrong.