Customer invoice.
A closed delivery becomes a posted invoice sent to the dealer. Code drafts it from the delivery and checks it against the order, the export papers, VIES or the exemption certificate and the rate of the day. The accountant settles differences, posts and sends it.
- Company
- Demo Manufacturer LLC and Demo Manufacturer US Inc.
- Starts when
- An order is delivered
- How often
- Every working day, one run per delivery
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 drafts the invoice from the delivery Selected | Invoice drafts · Automation, no AI | One invoice per delivery of sold goods and per paid repair and 1 more | 6 |
| 2 | Code checks the draft invoice Selected | Invoice checks · Automation, no AI | Quantity equals delivered, price, discount and currency equal the order, all exact and 7 more | 6 |
| 3 | Accountant settles the differences Selected | Accountant | None left open | 6 |
| 4 | Accountant posts the invoice Selected | Accountant | Next number with no gap and 3 more | 6 |
| 5 | Accountant sends the invoice Selected | Accountant | Exact | 6 |
| 6 | Dealer pays the invoice Selected | Dealer | No check at this step | 6 |
Rollout stage: 6 · Month-end close and approvals.
Before
How it was done before
The Ukrainian company typed the invoice from its order sheet in Google Sheets. The US company copied it into QuickBooks Online from the warehouse's letter.
Where it breaks without control
- An order leaves in two deliveries - the whole order is invoiced with the first, or the second is never invoiced.
- A dealer's VAT number or exemption certificate ended after the first order, and the sale still goes out without tax.
- A dealer who paid before the delivery is asked for the whole amount again.
- A sent invoice is changed in place, and the dealer and the books hold two versions of one number.
Controls
What is checked, and who signs
Checks
| Step | Compared with | Tolerance | On a difference |
|---|---|---|---|
| 1 · Code drafts the invoice from the delivery | The delivery order or the repair against the invoices already made from it | One invoice per delivery of sold goods and per paid repair; none of them left without an invoice for more than one working day | A delivery that has an invoice is skipped, so running twice never invoices twice; a delivery to the US company belongs to Sale from Ukraine to the US company and is skipped too, and so is the return of a dealer's repaired unit - a paid repair is invoiced from its repair order, a warranty repair has no invoice. One that stays without a draft goes to the accountant's exception queue with the reason, such as a line with no price or no tax record, and Month-end close lists it again at the end of the month. |
| 2 · Code checks the draft invoice | Order lines, or the price the dealer accepted for a repair; delivered lines and serial numbers; the customs declaration; VIES or the certificate; the rate of the day; the payment terms; the invoice's own lines, tax and total | Quantity equals delivered, price, discount and currency equal the order, all exact; serial numbers the delivered ones; value and currency equal to the declaration, to the cent, with its number on the invoice; VAT number valid in VIES today, or the certificate in date for the state of delivery; no tax line on an invoice of the US company; a rate of today in Odoo; due date by the terms; lines add up to the total to the cent | The draft goes to the accountant's exception queue with each difference in plain words. When VIES does not answer, the draft waits and code asks again every hour; no answer never counts as valid. |
| 3 · Accountant settles the differences | Each difference against its source document | None left open | A price is corrected on the order by the sales manager and a quantity on the delivery by the warehouse lead, never on the invoice alone, and the draft is made again. Without a valid VAT number the draft waits until the dealer sends one or the accountant taxes it by the tax record. Without a certificate an invoice of the US company waits until the dealer sends one; tax is never put on it instead. The corrected draft passes step 2 again before it can be posted. |
| 4 · Accountant posts the invoice | The number against the last one of the company; the invoice date against the delivery date, the lock date and the day of the checks; the earlier payment against the order it names | Next number with no gap; dated the day of posting, which is the day of the VIES answer and of the rate; not before the delivery and after the lock date; earlier payment set against the invoice before the letter is made | A draft checked on another day goes through step 2 again before it can be posted. Our module refuses a date inside a locked month, refuses to delete an invoice that has a number and refuses to reset one that was sent; a mistake in a sent invoice is corrected through Credit note to a dealer. |
| 5 · Accountant sends the invoice | The address against the invoice contact; the number and the amount asked against the posted invoice and what is still open on it | Exact | Our module refuses an address that is not on the dealer record, and an amount other than the open one; the accountant has the letter made again from the invoice. |
Duties by role
What the action log records
| Step | Record | What is written |
|---|---|---|
| 1 · Code drafts the invoice from the delivery | Agent action log | One line per delivery drafted or skipped |
| 2 · Code checks the draft invoice | Agent action log | One line per check result |
Connected processes
Where the work comes from and where it goes
Work goes to
| Process | What passes | At step |
|---|---|---|
| Stripe payout match | A card or ACH payment of an invoice | Dealer pays the invoice |
| Bank reconciliation | A transfer with the invoice number | Dealer pays the invoice |
| Collecting overdue invoices | An invoice past its due date | Dealer pays the invoice |
| Cash forecast | An open invoice with its due date | Accountant posts the invoice |
| Tax figures for the return | A posted invoice with its VIES answer or certificate | Accountant posts the invoice |
Work comes from
| Process | What passes | At step |
|---|---|---|
| Order picking and delivery | A delivery of sold goods done, with quantities and serial numbers | Code closes the delivery |
| Export shipment | The declaration's number, value and currency, which the invoice repeats | Code checks the declaration |
| Repair | A paid repair at the price the dealer accepted | Code closes the repair order |
Want this process checked on your data?
Tell us where it goes wrong.