Compare commits

..
1 Commits
Author SHA1 Message Date
bachirandClaude Sonnet 5 41ab7445f7 Remove Provision EPAU as a tracked compte
Not used going forward. Deleted the term + its 2 répartition paragraphs
(the standalone opening line was removed entirely since it had nothing
left; the EPAU F_2617 line now shows a real 5214,01€ écart instead of
silently absorbing that amount under a compte nobody uses).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 22:59:25 +02:00
3 changed files with 6 additions and 5 deletions
@@ -5,7 +5,7 @@
* Install functions for the Figli Compta Ledger module.
*
* Builds the data model discussed with the SAS: a "Compte" per associate
* (+ EXT./EXT.WEB/Provision EPAU), a unified "Client" list, and
* (+ EXT./EXT.WEB), a unified "Client" list, and
* "Ligne comptable" nodes whose amount is split across "Répartition"
* paragraphs referencing a Compte. The presave validation in
* figli_compta_ledger.module enforces sum(répartition) == montant_ht,
@@ -22,10 +22,11 @@ use Drupal\Core\Entity\Entity\EntityFormDisplay;
use Drupal\Core\Entity\Entity\EntityViewDisplay;
/**
* The 9 "comptes" tracked historically (6 associates + EXT./EXT.WEB/Provision EPAU).
* The 8 "comptes" tracked (6 associates + EXT./EXT.WEB). "Provision EPAU"
* existed in the historical spreadsheets but is not used going forward.
*/
function _figli_compta_ledger_comptes() {
return ['Sandrine', 'Maud', 'Ouidade', 'Chloé', 'Bachir', 'Valentin', 'EXT.', 'EXT.WEB', 'Provision EPAU'];
return ['Sandrine', 'Maud', 'Ouidade', 'Chloé', 'Bachir', 'Valentin', 'EXT.', 'EXT.WEB'];
}
/**
@@ -157,6 +157,6 @@ function figli_compta_ledger_theme($existing, $type, $theme, $path) {
*/
function figli_compta_ledger_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) {
if ($route_name === 'help.page.figli_compta_ledger') {
return '<p>' . t('Grand livre SAS Figures Libres : chaque "Ligne comptable" (entrée, charge, versement, achat) doit être répartie entre un ou plusieurs "Comptes" (les 6 associés + EXT./EXT.WEB/Provision EPAU) pour un total exactement égal au montant HT.') . '</p>';
return '<p>' . t('Grand livre SAS Figures Libres : chaque "Ligne comptable" (entrée, charge, versement, achat) doit être répartie entre un ou plusieurs "Comptes" (les 6 associés + EXT./EXT.WEB) pour un total exactement égal au montant HT.') . '</p>';
}
}
@@ -85,7 +85,7 @@
loading: true,
error: null,
rows: [],
allComptes: ['Sandrine', 'Maud', 'Ouidade', 'Chloé', 'Bachir', 'Valentin', 'EXT.', 'EXT.WEB', 'Provision EPAU'],
allComptes: ['Sandrine', 'Maud', 'Ouidade', 'Chloé', 'Bachir', 'Valentin', 'EXT.', 'EXT.WEB'],
filterCompte: '',
filterClient: '',
filterType: '',