Sales Invoice Developer Notes

Key files

  • accounting/models.py

  • accounting/forms.py

  • accounting/views.py

  • accounting/sales_taxes.py

  • accounting/signals.py

  • accounting/urls.py

  • templates/accounting/sales_invoice/*.html

Signal behavior

When invoice items are added/updated/deleted, ItemTransactionModel signals trigger Sales Invoice snapshot recalculation.

Migrations

The sales-invoice flow introduces:

  • schema migrations for new sales-invoice and tax models

  • a data migration seeding Canada tax presets

Build docs

Use Sphinx via uv:

uv run --with sphinx sphinx-build -b html docs docs/_build/html

Open docs/_build/html/index.html in a browser.