feat: e-invoice services, SDI channels, inbox, polling and conservation (#74 #75 #76 #77 #79)

Adds the company tables of the electronic invoice and the services that drive them:
the builder turns an issued document into the FatturaPA model, the service generates,
checks and sends the file through the channel chosen by the routing rules (with a
fallback) and applies the SDI notifications to the e-invoice and its document. The
channel settings keep their secrets protected and out of the audit trail; a job reads
the PEC mailbox and the intermediaries every 15 minutes, storing supplier invoices in
the inbox and acknowledging a message only once all its files are kept. The inbox
registers received invoices through the purchase import, and the conservation export
packs a period with a SHA-256 index. A rejected invoice can now be corrected and
generated again; the courtesy PDF embeds the XML.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-13 12:20:59 +01:00
1 parent 709bb13532
commit fb12411404
24 files changed
+4016 -10

No files matched your search

@@ -70,7 +70,8 @@ public static class BuiltInModules
("einvoice.document.read", "Vedere i documenti elettronici"),
("einvoice.document.send", "Inviare documenti allo SDI"),
("einvoice.inbox.read", "Vedere le fatture ricevute"),
("einvoice.inbox.import", "Importare le fatture ricevute")),
("einvoice.inbox.import", "Importare le fatture ricevute"),
("einvoice.channel.manage", "Configurare i canali verso lo SDI")),
Module(ModuleCodes.Intrastat, "Intrastat",
("intrastat.list.read", "Vedere gli elenchi Intrastat"),
("intrastat.list.write", "Compilare gli elenchi Intrastat"),