Doktally — Invoicing, time billing and VAT for small businesses
Summary
My own multi-tenant SaaS for freelancers, contractors and small companies in Bulgaria: time tracking, contracts, billing, invoices, bank statements, purchases and VAT reporting in one place. Six Spring Boot services behind a gateway and an Angular client, shipped as versioned releases to a production Docker stack. I design, build and run all of it.
Request a demo - it's free :)
Description
Doktally covers the commercial life of a small company: clients and their contracts, the time worked for them, what that time is worth, the invoices that bill it, the bank payments that settle them, purchases and supplier subscriptions, and the VAT that follows. Every number on an invoice can be traced back to the hours, the rate and the contract it came from.
It is built for the Bulgarian setting: it imports the VAT ledgers and declarations filed with the National Revenue Agency (НАП) and checks them against each other, checks VAT numbers in VIES, recognises Bulgarian banks from the IBAN, uses BNB exchange rates, keeps amounts in several currencies and handled the 2026 switch from leva to euro. Documents are issued in the client's language.
I started it in March 2024 and it reached version 1.0 in spring 2026. Since then it has grown a full billing engine (contracts, fixed fees, retainers, recurring charges), bank-statement matching and a secure invoice link for clients, and since October 2026 every deployment is a tested release of independently versioned services.
Role
Founder / Product Engineer
Domain
Invoicing, VAT, bookkeeping, time tracking
Problem
Small Bulgarian companies usually split their admin across an invoicing tool, spreadsheets for VAT, a separate time tracker, a folder of contracts and the accountant's inbox. The same numbers are typed in several places and rarely agree.
The hard part is not printing the invoice. It is knowing which hours are billable, at which rate on which day, under which contract, and making sure nothing is billed twice or forgotten. Off-the-shelf tools either stop at issuing the invoice or are full ERP systems that are too heavy for a company of one to ten people.
Solution
One application with separate services for each area, sharing identity, licensing and a common gateway.
This includes:
- time tracking with monthly, weekly and yearly views, locked once the time is invoiced
- contracts with a lifecycle, annexes with effective dates, a change log, and hour or value limits
- hourly, fixed-fee, retainer and recurring-charge billing, with per-client billing rules and invoice schedules
- readiness checks that stop an invoice that would be wrong, before it is generated
- invoices that explain every line and stay exactly as issued; credit and debit notes
- bank statements (CAMT.053, MT940, CSV) matched to invoices with a reason, and a monthly balance check
- a secure invoice link the client can open, acknowledge or dispute
- purchases, expenses, business trips and supplier subscriptions with missing-invoice reminders
- НАП VAT ledger import with cross-checks and a BG VAT report
- dashboards, calendar actions and email / in-app notifications over RabbitMQ
- organizations, roles and module licences enforced at the gateway
Outcome
Version 1.0 in spring 2026, then a billing engine, bank matching and client-facing invoice links on top: six services, a production Docker Compose stack with automatic HTTPS, backups and monitoring, and a demo with fictional companies for showing it to new users.
Key metrics
-
- Six Spring Boot services and an Angular client behind one gateway
-
- From first commit (March 2024) to version 1.0 (spring 2026), then 100+ versioned releases
-
- Designed, built and operated by one person
Technologies
Java 25, Spring Boot 4, Spring Cloud Gateway, Angular 22, PrimeNG, ECharts, MongoDB, RabbitMQ, Keycloak, Docker, Caddy, Prometheus
Timeline
2024-03 – Present
- Case study
- External link: https://doktally.work/
Use cases
- VAT ledgers straight from the files sent to the tax office
- Invoices that can explain every amount
- The euro changeover without the mess
- Payments matched with a reason, and a balance that must agree
- Never forget a supplier invoice again
- Contracts that remember every change
- Retainers with included hours, rollover and a cap
- A month-close checklist that finds the money you forgot
- Your data is yours to take
- Business trips reported and rebilled in one go