Classification manuelle des immobilisations

This commit is contained in:
Jean-Christophe Engel 2025-07-01 13:08:01 +02:00
parent 79e536a0b3
commit ec94358f47
7 changed files with 81 additions and 60 deletions

View file

@ -57,7 +57,11 @@
{{/select}}
{{if $amort_line.amort_number == 0}}
{{:assign amort_amount=0}}
{{if $info_immo.status == "amortized"}}
{{:assign amort_amount=$ligne_immo.montant}}
{{else}}
{{:assign amort_amount=0}}
{{/if}}
{{else}}
{{:assign amort_amount=$amort_line.amort_amount}}
{{:assign date_debut=$amort_line.last_amort_date|strtotime}}
@ -153,8 +157,9 @@ lister les exercices ouverts :
{{:break}}
{{/if}}
{{/if}}
{{* voir si des amortissements ont été oubliés *}}
{{if $start_date|strtotime > $amort_line.last_amort_date|strtotime && $end_date|strtotime < $now}}
{{if $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}}