From 62692ef550f7c49cb5f41d166f1b38c0e7cfcc58 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 30 Apr 2026 11:55:12 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20pr=C3=A9sentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amortization.html | 16 +++++++--------- attach_amort.html | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/amortization.html b/amortization.html index 710bb6d..926eb52 100644 --- a/amortization.html +++ b/amortization.html @@ -104,9 +104,9 @@ {{/select}} {{/load}} -{{if $_GET.type_immo == null || $_GET.type_immo != "amortized"}} +{{:assign autres_amortissements=false}} +{{if $valeur_residuelle > 0}} {{* Chercher des amortissements non rattachés à une immo *}} - {{:assign autres_amortissements=false}} {{#select line.id as amort_line_id, line.id_transaction AS amort_trans_id @@ -267,13 +267,11 @@

Aucun amortissement enregistré pour cette immobilisation

{{/if}} -{{if $_GET.type_immo == null || $_GET.type_immo != "amortized"}} - {{if $autres_amortissements}} -

- Il y a des écritures d'amortissement qui ne sont pas rattachées à une immobilisation !
- Utilisez le bouton « Rattacher un amortissement » pour les afficher ; vous pourrez choisir d'en attacher certaines à cette immobilisation. -

- {{/if}} +{{if $autres_amortissements}} +

+ Il y a des écritures d'amortissement qui ne sont pas rattachées à une immobilisation !
+ Utilisez le bouton « Rattacher un amortissement » pour les afficher ; vous pourrez choisir d'en attacher certaines à cette immobilisation. +

{{/if}} {{:form_errors}} {{:admin_footer}} diff --git a/attach_amort.html b/attach_amort.html index afffa20..f643f9a 100644 --- a/attach_amort.html +++ b/attach_amort.html @@ -158,7 +158,7 @@
- {{:input type="money" name="montant" label="Montant" default=$reste help="Montant de l'amortissement"}} + {{:input type="money" name="montant" label="Montant" default=$reste required=true help="Montant de l'amortissement"}}