Why build a system at all
Existing business software for small and medium-sized companies covers a great deal, yet everyday tasks often take more steps than they need to. At the same time, data and processes stay tied to an outside provider.
The goal was a self-hosted system of my own with full control over the data — one that mirrors familiar workflows while simplifying how they are operated: fewer clicks per task, fewer context switches, sensible defaults.
The benchmark for usability is the Swiss business software Bexio. Every function is observed there first, then a deliberate decision follows: adopt it, simplify it, or solve it differently.
The project did not begin as an exercise but out of a real operational need — and it is genuinely used day to day. The requirements come from practice, not from a tutorial.
What it is built from
Why Inertia.js instead of a separate API
Deliberately not a separate front end with its own REST API. Inertia delivers the same user experience without a second layer that would need its own authentication, validation and documentation maintained alongside. For a project of this size in one pair of hands, that is the decisive gain.
What the system does
Delivered in 35 feature blocks, each building on the last.
Core commercial process
- Contacts and client relationships
- Quotations with line items and PDF output
- Orders with status tracking
- Invoices including the Swiss QR payment slip
- Credit notes, offsettable against open invoices
- Supplier orders
Time and services
- Time tracking by timer or entered manually
- Services with billability
- Transfer into invoices
- Personal daily overview on the dashboard
Finance and stock
- Accounting with chart of accounts and postings
- Bank reconciliation of open items
- Multi-currency support with exchange rates
- Article master with SKUs
- Stock management as an optional module
Roles and permissions
- Permissions defined in fine detail
- Modules switchable per organisation
- Navigation each user arranges themselves
Documents and languages
- Template system for every PDF document type
- Interface in ten languages
- Chinese in preparation
Integrations
- AI-assisted matching of order line items
- Web shop connection for importing orders
Four decisions that shape the system
Modules that stay on when in doubt
Functional areas can be switched on per organisation. The default is deliberately *on*: a module without an explicit entry counts as enabled. A missing configuration entry can therefore never make functions disappear without comment — a fault shows immediately instead of staying silent. The one deliberate exception is stock management, which ships switched off.
One calculation instead of four
A review of the code showed that four document types each carried near-identical calculation logic in separate classes. They were merged into one shared base class, secured by a golden-master test: the output of the old implementation was captured and checked against the new one. The result: 132 fewer lines of code with demonstrably unchanged behaviour.
Templates instead of hard-wired layouts
Rather than programming a PDF layout for each document type, there is one central template system. Layout, headers and footers and the arrangement of fields are configurable and apply across every document type.
The Swiss payment part and its quirk
The QR payment slip is implemented in full accordance with the Swiss Payment Standards — including the rule that the payment part may only be rendered in four languages, regardless of the system language chosen elsewhere. A good illustration that regulatory requirements take precedence over user preference.
Team standards, without a team
How changes come about
- Git Flow with a protected main branch — direct commits are not possible
- Pull requests with review approval for every change, without exception
- Conventional commits for a history that can be followed
- Specification before implementation — open decisions settled in advance
How they are secured
- Assumptions are checked against the actual code before implementation
- More than 990 automated tests
- Verification in the browser is mandatory before anything counts as finished
- Documentation per module, kept up to date
The third point has a concrete reason: several classes of fault pass the tests and only fail when data is actually saved. Anyone who watches the test colour alone will ship them.
As of August 2026.
Four places where it snagged
A setting that made work invisible
Situation: Client enquiries from an acquisition list were not meant to flood the normal overview — but that made them invisible by default, even to the person they were assigned to.
Solution: An organisation-wide setting governs the default behaviour. Alongside it, one fixed exception: in the personal view, assigned entries always appear.
Lesson: Configurability needs guard rails. No setting may leave someone unable to find their own work.
When framework magic fails silently
Situation: Permission checks came up empty because the automatic discovery of rules does not apply to models from foreign namespaces. Access was denied rather than wrongly granted — but with no discernible cause.
Solution: Every rule is registered explicitly instead of relying on automatic discovery. That has applied to every new rule since.
Lesson: Convenience is the wrong yardstick where security is concerned. There, being explicit is the better choice.
Refactoring without a single centime moving
Situation: Four almost identical calculation classes were to be merged. Where money is concerned any deviation is unacceptable, and there was no safety net covering the old behaviour.
Solution: A golden-master test freezes the behaviour of the old implementation and checks the new one against it.
Lesson: When rebuilding business-critical calculation logic, secure the existing behaviour first, then rebuild.
Twenty-six seconds that were not the code's fault
Situation: Page load times of around 26 seconds in the development environment.
Solution: The cause lay at the file-system boundary between Windows and the Linux environment. Moving the project into the native Linux file system removed the problem entirely.
Lesson: With performance problems, examine the infrastructure layer first. The development environment is part of the system — faults there cost just as much time as faults in the code, and are documented far worse.
What is being worked on next
The project is alive and continues along a plan.
- Delivery notes as a document type of their own, including PDF output
- PDF output for orders
- Employee master data and absence management as the basis for overtime and undertime calculation
- Multi-currency reporting on the dashboard, converted to a single reference currency
- Chinese in both writing systems, including font embedding in PDF generation
- Further work on AI-assisted article matching