feat(reminders): rappels fiscaux J-15 par e-mail (Resend) pour SASU simple#42
Open
antonymarion wants to merge 2 commits into
Open
feat(reminders): rappels fiscaux J-15 par e-mail (Resend) pour SASU simple#42antonymarion wants to merge 2 commits into
antonymarion wants to merge 2 commits into
Conversation
b0e38f2 to
35bd3d9
Compare
Rappels e-mail Resend (cron PM2), calendrier SASU IS+TVA, montants depuis journal/bilan. Pipeline journal:qonto (fetch + qonto-to-journal), journal:an (bilan N-1), integrations/core. Journal et bilans locaux gitignored. Co-authored-by: Cursor <cursoragent@cursor.com>
c384755 to
d5b303a
Compare
agDateForYear utilise la clôture N-1 (+6 mois), comme AG_APPROBATION, et lit fiscal_affectation_YYYY. Le dépôt greffe est calculé à AG + 30 jours au lieu d'une date décalée d'un an. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
journal:qonto: synchronisation Qonto puis catégorisation PCG/TVA →data/journal-entries.json(indispensable pour des montants CA3 non nuls dans les e-mails).journal:an: à-nouveaux depuis bilan N-1 + affectation du résultat + fusion des écritures banque.integrations/core: chargement.envetcompany.jsonpour les scripts CLI et PM2.company.json) gitignored ; retrait du journal d’exemple versionné dans le dépôt.Calendrier des rappels (profil
sasu_is_tva_normal)TVA_OVERRIDE_EUR)Un e-mail par obligation, 15 jours avant l’échéance (
remind_on), vianpm run reminders:sendou PM2 (cron 08:00 Europe/Paris). Les envois déjà faits sont journalisés dansdata/reminders-sent.json.Contenu du PR
lib/reminders/*,config/reminders.json,scripts/send-reminders.js,ecosystem.config.cjsscripts/journal-qonto.js,scripts/qonto-to-journal.js,scripts/prepare-opening-entries.jsintegrations/core/load-env.js,integrations/core/provider.jspackage.json,.env.example,company.example.jsonREADME.md(workflow, overrides, PM2 Windows)data/examples/bilan-closing.sample.jsonconfig/qonto-label-rules.example.json→ règles libellés en.local.json(gitignored)Commandes
Configuration locale (non versionnée)
company.json,.env(Resend, Qonto,IS_N1_EUR,TVA_OVERRIDE_EUR, etc.)data/journal-entries.json,data/bilan-closing.json,data/transactions/Test plan
npm run journal:qonto→data/transactions/*.json+journal-entries.jsonavec lignes TVAnpm run journal:anavecdata/bilan-closing.json+fiscal_affectation_*danscompany.jsonnpm run reminders:preview -- --date 2026-02-28→ acompte IS avec montant + justificationnpm run reminders:preview -- --date 2026-05-10→ TVA CA3 du 25/05 (période M−1) ≠ 0 si journal à journpm run reminders:preview -- --date 2026-06-16→ AG / liasse / DAS2 selon calendrierdue_date(configreminders.json)npm run reminders:dry-run→ pas d’envoi Resendpm2:reminders+pm2 save(+pm2-windows-startupsi Windows)Notes
qonto-to-journal.js: règles PCG génériques ; clients récurrents viaconfig/qonto-label-rules.local.json.AG_APPROBATION(clôture N−1 + 6 mois oufiscal_affectation_YYYY/ag_datedanscompany.json).