Ne pas afficher les amortissements d'une immobilisation non amortissable

This commit is contained in:
Jean-Christophe Engel 2026-03-09 14:25:06 +01:00
parent a5662bf383
commit b937056a62
2 changed files with 4 additions and 5 deletions

View file

@ -165,11 +165,6 @@
shape="settings"
target="_dialog"
}}
{{:linkbutton
label="Amortissements"
href="amortization.html?immo_id=%s&type_immo=other"|args:$immo_id
shape="table"
}}
</td>
</tr>
{{/select}}

View file

@ -33,6 +33,10 @@
{{:assign status=$status}}
{{/load}}
{{if $status == 'ignored'}}
{{:error message="Cette immobilisation ne doit pas être amortie"}}
{{/if}}
{{* chercher des écritures liées à l'immo courante au crédit du même compte
et déduire leur montant de celui de l'immo
*}}