Accounts payable is where a growing distributor quietly loses money: a supplier bills 500 units when 480 arrived, a price creeps up two percent, an invoice gets paid twice because it came in by email and by post. Three-way matching (purchase order, goods receipt, invoice) is the control that stops this, and in a custom ERP it is a small, well-defined piece of software. Built badly, it becomes a queue of exceptions nobody clears.
I run Loop Origin , a software studio, and as a Principal Software Engineer I have spent nine years building order, inventory and finance modules in Laravel, Vue, Nuxt and PostgreSQL. I wrote this with help from AI tools and checked every query and code sample myself.…