From 428aa1be281419542aa3ad22ec8119b1350a608e Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Mon, 28 Sep 2026 14:24:51 +0200 Subject: [PATCH 1/3] Masquer bouton Attacher amortissement si vnr = 0 --- exit_step2.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exit_step2.html b/exit_step2.html index c230b98..db8e04d 100644 --- a/exit_step2.html +++ b/exit_step2.html @@ -43,6 +43,7 @@ {{* lister les amortissements liés à l'immobilisation *}} {{:include file="./_get_amort_lines.html" immo_doc_id=$_GET.immo_doc_id keep="linked_amort, total_amort"}} +{{:assign vnr="%d-%d"|math:$solde:$total_amort}} {{* déterminer le compte d'amortissement en fonction du compte d'immobilisation *}} {{:include @@ -132,12 +133,12 @@
Montant des amortissements
{{$total_amort|money_currency_html:false|raw}}
Valeur nette résiduelle
-
{{"%d-%d"|math:$solde:$total_amort|money_currency_html:false|raw}}
+
{{$vnr|money_currency_html:false|raw}}
{{/if}} -{{if $free_amort_lines}} +{{if $free_amort_lines && $vnr > 0}}