@open-nodo/module-patrimony
v0.6.0
Published
Typed patrimony, amortization, and balance-sheet classification kernel with a Prisma fragment.
Readme
@open-nodo/module-patrimony
Typed patrimony and amortization kernel for Italian ETS balance sheets.
The package owns:
- package-owned, Prisma-compatible
ImmobilizzazioneKindvalues and types; - typed
CreditoSubKindandDebitoSubKindclassification contracts aligned withmodule-accounting; - exhaustive standard amortization rates and annual quota calculation;
- idempotent amortization schedule generation over a structural Prisma client;
- accumulated-amortization reads;
- ordered credit/debit classifications, labels, and All.1 validation;
- the composable extended-patrimony
prisma/patrimony.prismafragment.
effectiveAmortizationRate and computeAnnualAmortization accept a typed
Immobilizzazione. Unknown asset kinds are compile-time errors. Database
helpers depend on the exported PatrimonyPrismaClient interface rather than a
generated client from any particular host application.
All tenant-scoped fragment models require an explicit tenantId; the package
does not assume a deployment-specific tenant.
