[ledger] Invoices: Czech or English per invoice (v0.4.1) #6

Manually merged
mnovak merged 1 commits from feature/invoice-language into main 2026-11-05 15:06:37 +01:00
Owner

Each invoice is printed in Czech or English, chosen per invoice (Mark's decision).

  • invoice::Language { Cs, En } and Invoice.language, #[serde(default)], so an event without the field reads as Czech.
  • Docs: docs/03_invoices.md. Version 0.4.1.

Tests

cargo test --workspace: 104, all pass. New: round trip of en, an event without the field reads as Czech, and an unknown language (de) is refused.

Self-review

  • Backwards compatible: v0.4.0 events (none exist in any ledger yet) still read, as Czech.
  • Printing: the core only records the choice; the PDF is the app's job.
Each invoice is printed in Czech or English, chosen per invoice (Mark's decision). - `invoice::Language { Cs, En }` and `Invoice.language`, `#[serde(default)]`, so an event without the field reads as Czech. - Docs: `docs/03_invoices.md`. Version 0.4.1. ## Tests `cargo test --workspace`: 104, all pass. New: round trip of `en`, an event without the field reads as Czech, and an unknown language (`de`) is refused. ## Self-review - **Backwards compatible:** v0.4.0 events (none exist in any ledger yet) still read, as Czech. - **Printing:** the core only records the choice; the PDF is the app's job.
mnovak added 1 commit 2026-11-05 15:06:33 +01:00
mnovak manually merged commit 4e8e80efb4 into main 2026-11-05 15:06:37 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/FiscusPublic#6