@mostajs/compta-budget
v0.1.0
Published
Comptabilité budgétaire — allocation → engagement → réalisation → écart, par composition de sources (DB-agnostique).
Maintainers
Readme
@mostajs/compta-budget
Auteur : Dr Hamid MADANI [email protected] · Licence : AGPL-3.0-or-later
Comptabilité budgétaire (couche logique) — suit chaque ligne de budget sur 4 temps :
alloué → engagé → réalisé → écart, et détecte le surengagement. Compose des sources
injectées (DEVRULES §10) ; ne réimplémente ni aid-grants ni compta.
import { createComptaBudget } from '@mostajs/compta-budget';
const cb = createComptaBudget({ sources: {
budgetLines: () => repos.aidGrants.budgets.find(),
aids: () => repos.aidGrants.aids.find(),
}});
await cb.status('aide-mensuelle'); // { allocated, engaged, realized, available, outstanding, variance, overcommitted }
await cb.summary();Tests & exemple (§11.1 / §12) : npm install && npm test. Proposition & livrables : docs/. Fiche LLM : llms.txt.
