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>
26 lines
1.2 KiB
Markdown
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.
|