From c07b77e942f0764d73cc34ddf79a6b945d884bf4 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Wed, 6 May 2026 13:09:11 +0200 Subject: [PATCH] Correction erreur solde immo --- amortization.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/amortization.html b/amortization.html index 0caed6c..237ee0c 100644 --- a/amortization.html +++ b/amortization.html @@ -63,15 +63,14 @@ {{:assign total_credits="%d+%d"|math:$total_credits:$amount}} {{/if}} {{/load}} -{{:assign var="ligne_immo.montant" value="%d-%d"|math:$ligne_immo.montant:$total_credits}} -{{:assign solde=$ligne_immo.montant}} +{{:assign solde="%d-%d"|math:$ligne_immo.montant:$total_credits}} {{*:debug info_immo=$info_immo ligne_immo=$ligne_immo total_credits=$total_credits solde=$solde*}} {{if $info_immo.status == "amortized"}} - {{:assign amort_amount=$ligne_immo.montant}} + {{:assign amort_amount=$solde}} {{:assign valeur_residuelle=0}} {{else}} - {{:assign valeur_residuelle=$ligne_immo.montant}} + {{:assign valeur_residuelle=$solde}} {{/if}} {{* lister les lignes des écritures d'amortissement liées à l'immobilisation *}} @@ -208,13 +207,13 @@ {{/if}} {{if $valeur_residuelle > 0}}
Montant des amortissements
-
{{"%d-%d"|math:$ligne_immo.montant:$valeur_residuelle|money_currency_html:false|raw}}
+
{{"%d-%d"|math:$solde:$valeur_residuelle|money_currency_html:false|raw}}
Valeur nette comptable
{{$valeur_residuelle|money_currency_html:false|raw}}
{{/if}} {{if $info_immo.duration != null && $valeur_residuelle > 0}}
Annuité estimée
-
{{"min(%d, %f/%d)"|math:$valeur_residuelle:$ligne_immo.montant:$info_immo.duration|money_currency_html:false|raw}}
+
{{"min(%d, %f/%d)"|math:$valeur_residuelle:solde:$info_immo.duration|money_currency_html:false|raw}}
{{/if}}