Erplain · Invoicing
Can you automate invoicing in Erplain from delivery notes?
Yes. An agent can poll the mailbox, read each Excel delivery note, and create the matching invoice in Erplain as a draft. What stays human: the review, the finalisation and the send. That boundary is what makes automation acceptable in accounting.
The concrete problem
In a small business that delivers before invoicing, the back office receives delivery notes by email, usually as Excel files. Someone opens them one by one, finds the customer in Erplain, checks their price level, retypes every line, and creates the invoice. It is slow, repetitive, and it is exactly where quantity errors creep in.
Erplain automates its internal cycle very well — quote to purchase order to invoice. What it does not do is reach into a mailbox and turn a delivery note into an invoice. That gap is what a custom agent fills.
How the agent works
- It polls the back-office mailbox, read-only
- It analyses each delivery note and sorts it: ready, blocked, or already invoiced
- It creates invoice drafts in Erplain, in a queue
- It recognises notes already invoiced by hand, and creates nothing for those
- It stops cleanly on request, after the note in progress
Allow up to one minute per delivery note: the agent drives Erplain's interface the way a person would, line by line, checking as it goes. It is not instant — and that is not the point. The point is that nobody has to do it: the agent runs on its own while you do something else.

The five guard rails that make it safe
An invoicing agent without explicit limits is an accounting risk, not a time saving. These are the constraints I always impose:
| Price level | Checked for every customer before creation — never inferred or guessed. |
|---|---|
| No duplicates | Two checks: a local register of processed notes, plus a search inside Erplain. |
| Quantities re-read | Every quantity is read back after entry and compared to the source note. |
| Drafts only | Never finalised, never sent to the customer. Approval stays human. |
| Clean stop | Stopping never leaves a half-finished draft inside Erplain. |
Does this apply to you?
This approach fits if you are in this situation:
- You use Erplain and you invoice from delivery notes
- The notes arrive by email in a reasonably consistent format (Excel, structured PDF)
- The volume justifies it: from a few dozen notes a month upwards
- You accept that final approval stays human — that one is non-negotiable on my side
If one of these doesn't match, tell me anyway: sometimes the honest answer is "don't automate this".
Tell me about your case
My name is Mordi Atlan. I build agents in Python that automate repetitive work for small businesses. This particular agent runs in production today.
or write to me directly at atlanm335@gmail.com
Reply within 48 h. First conversation free, and I'll tell you straight if it can be automated or not.