Darko Gjorgjijoski 13aa087faf Add compound tax support (#753)
* test(taxes): cover compound_tax API semantics and validate it as boolean

* feat(taxes): restore the compound tax toggle in tax type settings

* feat(taxes): compute document-level compound tax amounts

Two-pass recalculation: simple taxes on the discounted subtotal, compound
taxes on the subtotal plus all simple taxes (v2 parity; branch order
fixed -> compound -> inclusive back-out -> simple). Amounts now also
recalculate on tax add/remove and on the tax-inclusive toggle, which
previously never triggered recalculation.

* feat(taxes): support compound taxes in per-item mode

Per-item tax rows now carry the compound flag and charge compound taxes
on the item's discounted base plus its simple taxes, through the same
calcTaxAmount branch order as document-level taxes. The item row splits
its tax sums into simple and compound so a compound row can never widen
its own base.

Also fixes two pre-existing bugs: the per-item tax dropdown read
window.__taxTypes, which nothing ever assigned, so it always rendered
empty (tax types are now fetched by the items table and passed down);
and removing a tax row hard-zeroed the item's totals instead of
re-syncing them.

* fix(invoices): skip placeholder tax rows when persisting item taxes

The document form keeps one empty placeholder tax row per item in
per-item tax mode. Its empty name is nullified by the framework's
empty-string middleware, so inserting it violated the NOT NULL
constraint and turned every per-item save into a 500. The equivalent
v2 guard keyed on a null amount, which the v3 stub (amount: 0) evades;
keying on the missing tax_type_id catches it.
2026-08-14 00:17:52 +02:00
2026-08-14 00:17:52 +02:00
2026-08-14 00:17:52 +02:00
2026-08-14 00:17:52 +02:00
2026-08-14 00:17:52 +02:00
2026-08-14 00:17:52 +02:00
2021-06-18 15:23:56 +05:30
2025-08-31 03:04:31 +02:00
2024-07-28 17:44:22 -07:00
2024-07-28 17:24:57 +02:00
2024-01-28 19:47:46 +01:00
2024-03-27 11:00:36 +01:00
2021-12-02 21:01:04 +05:30
2024-06-05 11:33:52 +02:00
2026-08-11 20:59:21 +02:00
2026-04-06 17:59:15 +02:00

InvoiceShelf

Open-source invoicing for people who want to own their business data.

Download InvoiceShelf · Documentation · Join Discord

Warning

The default 3.x branch is an alpha preview. It is ready for testing and feedback, but not for production data. Use the supported 2.x release for a production installation.

InvoiceShelf dashboard

Run your invoicing from one place

InvoiceShelf is a self-hosted web application for creating invoices, tracking payments and expenses, and keeping customer accounts organised. It is built for freelancers and small businesses that want a focused workflow without giving up control of their data.

  • Create invoices and estimates, then export polished PDFs.
  • Record payments and see what each customer still owes.
  • Track expenses, taxes, and business reports.
  • Schedule recurring invoices for repeat work.
  • Give customers a portal for invoices, estimates, and payment history.
  • Manage multiple companies and invite team members with scoped roles.

Optional official modules can add specialised features without making the core application heavier.

Install InvoiceShelf

Production: InvoiceShelf 2.x

Install the current stable release from the self-hosted download page, or run the official Docker image with the :latest tag. Follow the installation guide for the complete setup and upgrade instructions.

Preview: InvoiceShelf 3.x

Use the preview only with disposable or backed-up data:

A minimal SQLite Docker setup looks like this:

git clone https://github.com/InvoiceShelf/docker.git invoiceshelf
cd invoiceshelf
cp docker-compose.sqlite.yml docker-compose.yml
# For the 3.x preview, change the image tag in docker-compose.yml to :next.
docker compose up -d

Open http://localhost:8090 and finish the setup wizard. Read the Docker guide before using InvoiceShelf on a public server.

For a traditional web-server installation, see the manual installation guide. InvoiceShelf 3.x requires PHP 8.4 and supports MySQL/MariaDB, PostgreSQL, and SQLite. Docker includes the required application runtime.

Learn and get help

Contribute

Code contributions are welcome. Start with the contribution guide and use the development environment in docker/development.

You can also help translate InvoiceShelf on Crowdin.

License

InvoiceShelf is released under the GNU Affero General Public License v3.0.

S
Description
No description provided
Readme AGPL-3.0
70 MiB
Languages
PHP 59.9%
Vue 36.1%
Blade 3.2%
Shell 0.6%
Dockerfile 0.1%