Files
Khaemhat/docs/adr/0007-pacchetto-fiscale.md
T
Alby96andClaude Opus 5.5 e746d99dab docs: add specification, design docs, mockups, wiki and deploy files
Prepare everything needed before development starts on Khaemhat, the
ERP + CRM for Italian SMEs:

- docs/SPEC.md: the original project specification, unchanged, plus
  CLAUDE.md with operational rules and amendments (Gitea instead of
  GitHub/GHCR, Docker image as the only deliverable).
- ADR 0001-0011 for the baseline decisions.
- Mockups: 22 high-resolution screens, the full gallery, 88 thumbnails
  cropped from it, mockup.css and an index.
- Technical docs (architecture, data model, modules, API, MCP, deploy,
  security, development process, status with open spec questions).
- Full draft wiki in docs/wiki (already published to the Gitea wiki).
- Icons in assets/ and deploy files for Docker Compose and Unraid,
  pointing to the Gitea package registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 22:26:58 +01:00

26 lines
1.2 KiB
Markdown

# ADR 0007 — Fiscalità isolata in un pacchetto paese
- **Stato:** accettata
- **Data:** 2026-11-10
- **Fonte:** SPEC §1.10, §3
## Contesto
La fiscalità italiana (IVA, FatturaPA, SDI, F24, Intrastat, cespiti, bilancio CEE) cambia spesso ed è specifica di
un paese. Il resto del gestionale deve restare generico.
## Decisione
- `Khaemhat.Fiscal.Abstractions` definisce le interfacce (`IFiscalPack`, `ITaxEngine`, `IEInvoiceFormat`,
`ISdiTransport`, `IFiscalCalendar`, `IWithholdingRules`, `IFixedAssetRules`, `IFinancialStatementsSchema`, …).
- `Khaemhat.Fiscal.Italy` le implementa e contiene tutto ciò che è italiano: codici IVA e nature, code list
FatturaPA, writer/reader/validatore, canali SDI, F24, LIPE, Intrastat, coefficienti di ammortamento, schemi CEE,
piano dei conti modello, dataset dei comuni e ABI/CAB.
- Il pacchetto si sceglie da `company_profile.country`; un test di architettura vieta riferimenti diretti
all'implementazione italiana fuori dalla composizione in `Program.cs`.
## Conseguenze
- Un aggiornamento normativo tocca un solo progetto e i suoi test.
- Altri paesi saranno nuovi pacchetti (`Khaemhat.Fiscal.<Paese>`) senza modificare i moduli.