Le champ/colonne "1,1%" affiche le delta seul, pas HT + 1,1%
field_cotisation_urssaf stockait round(HT * 1.011, 2) (le montant augmenté) -- "1,1%" comme libellé de champ/colonne désigne la cotisation elle-même, pas HT + cotisation. Change pour round(HT * 0.011, 2). La TVA continue de s'appliquer sur la base augmentée (HT + ce champ) : Montant TTC est inchangé par cette correction, seule la valeur affichée/stockée dans "1,1%" change. Migration (update hook 8008) : recalcule field_cotisation_urssaf pour les 154 lignes que figli_compta_ledger_update_8007() avait marquées cotisation active, en soustrayant simplement le HT déjà correct -- contrairement à cette dernière, ce n'est pas un arbitrage sur des données historiques ambiguës, juste un bug dans du code écrit plus tôt le même jour, donc recalculé sans condition ni prudence particulière. Ajoute aussi le total "1,1%" au pied du tableau (solde de l'année), absent jusqu'ici : LedgerStatsController::totauxAnnee() somme maintenant field_cotisation_urssaf comme il le fait déjà pour HT/TTC.
This commit is contained in:
@@ -263,7 +263,7 @@
|
||||
<span v-if="currentYearLoading" class="figli-note">chargement…</span>
|
||||
</td>
|
||||
<td class="amount figli-ht-col">{{ currentYearTotals ? formatEur(currentYearTotals.montant_ht) : '' }}</td>
|
||||
<td class="amount figli-cotisation-col"></td>
|
||||
<td class="amount figli-cotisation-col">{{ currentYearTotals ? formatEur(currentYearTotals.cotisation) : '' }}</td>
|
||||
<td class="amount figli-tva-col"></td>
|
||||
<td class="amount figli-ttc-col">{{ currentYearTotals ? formatEur(currentYearTotals.montant_ttc) : '' }}</td>
|
||||
<td v-for="c in allComptes" :key="c" class="amount compte-col" :class="currentYearTotals ? soldeClass(currentYearTotals.par_compte[c]) : ''">{{ currentYearTotals && currentYearTotals.par_compte[c] !== undefined ? formatEur(currentYearTotals.par_compte[c]) : '' }}</td>
|
||||
|
||||
Reference in New Issue
Block a user