diff --git a/balance_sheet_exit.html b/balance_sheet_exit.html index 226179d..f59da2a 100644 --- a/balance_sheet_exit.html +++ b/balance_sheet_exit.html @@ -154,7 +154,7 @@ {{/if}} {{* voir si des amortissements ont été oubliés *}} - {{if $info_immo.status != "amortized" && $start_date|strtotime > $amort_line.last_amort_date|strtotime && $end_date|strtotime < $now}} + {{if $valeur_nette > 0 && $info_immo.status != "amortized" && $start_date|strtotime > $amort_line.last_amort_date|strtotime && $end_date|strtotime < $now}} {{:assign debut=$start_date|date_short}} {{:assign fin=$end_date|date_short}} {{:assign msg_amort=$msg_amort|cat:"\n"|cat:" - "|cat:$label|cat:" : du "|cat:$debut|cat:" au "|cat:$fin}} diff --git a/module.ini b/module.ini index 1c3c73d..e3ce95c 100644 --- a/module.ini +++ b/module.ini @@ -1,5 +1,5 @@ name="Amortissements" -description="Immobilisations et amortissements\nversion 0.25" +description="Immobilisations et amortissements\nversion 0.27" author="Jean-Christophe Engel" author_url="https://gitea.zaclys.com/lesanges" home_button=false