Case study · Custom software
Cuadra: from an invoicing spreadsheet to custom software
Many small companies invoice with an Excel template that has grown over the years. It works until someone copies a formula wrong, an invoice number is repeated or nobody remembers to chase a payment.
Demo project: the business is fictional; the design, the code and the figures are real.
- 73 KB
- for the whole program
- 1.2 s
- until it is usable on a phone on slow 4G
- 0
- things to install: it runs in the browser
Measured on a simulated phone on slow 4G (1.6 Mbps and 150 ms latency) with the processor slowed down four times.
01
The challenge
The example company, Instalaciones Vega, does jobs for residents’ associations, shops and private customers. It invoices with VAT, sometimes with income tax withholding, and tracks payments by hand.
The usual mistakes: a mistyped tax ID that makes the invoice invalid, totals that do not add up because of one cell, overdue invoices nobody chases and the quarterly fright of the VAT return.
02
The solution
Spanish tax IDs checked
When a customer is added, the program checks the control letter or digit of their NIF, NIE or CIF. If it is mistyped, it warns you before you invoice.
Invoices that add up on their own
Lines with their VAT rate, withholding when it applies and sequential numbering per year. Each invoice looks like the paper version and can be printed or saved as PDF.
Payments at a glance
Every invoice is paid, pending or overdue, and the summary shows how much is still owed and who to call first.
Tax calendar
The deadlines for Spanish tax forms 303, 390, 111, 202 and 200, with an estimate of the quarter’s VAT so there are no surprises.
Without leaving Excel behind
One button exports the invoices to a file Excel opens directly, with accents and columns intact, ready for the accountant.
03
The result
This is a demo: the data is made up and only stored in your browser. In a real project it would have users with passwords, a database with daily backups, and it would comply with Spain’s invoicing software regulation (Veri*factu).
What it is built with
- Plain JavaScript, no libraries
- NIF, NIE and CIF validation
- SVG charts
- Print to PDF
- Export for Excel
Do you run a similar business?
Tell me how you work and I’ll tell you what I would do, with no commitment. I reply within 24 hours.
Let’s talk