From f34af9b3fdc24e713221bfb1f7613025e4923533 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 23 Apr 2026 11:32:29 +0200 Subject: [PATCH] Correction erreur sortie bilan --- balance_sheet_exit.html | 6 ++++-- write_exit.html | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/balance_sheet_exit.html b/balance_sheet_exit.html index e7d9ba7..c9a0c0d 100644 --- a/balance_sheet_exit.html +++ b/balance_sheet_exit.html @@ -77,9 +77,11 @@ WHERE l_immo.id = :line_id AND account.code LIKE '28%' ; :line_id = $_GET.immo_line_id|intval - assign="amort_line" + assign="amort_lines." }} +{{/select}} +{{#foreach from=$amort_lines item="amort_line"}} {{#load type="link" where="$$.immo_line_id = :immo_line_id AND $$.amort_trans_id = :amort_trans_id" assign="line" @@ -113,7 +115,7 @@ {{:assign last_amort_date=$amort_line.date}} {{/if}} {{/load}} -{{/select}} +{{/foreach}} {{if $total_amort == 0}} {{if $info_immo.status == "amortized"}} diff --git a/write_exit.html b/write_exit.html index a4de1cd..252a462 100644 --- a/write_exit.html +++ b/write_exit.html @@ -3,7 +3,7 @@ {{* Enregistrer les écritures de sortie du bilan paramètres : - - immo_line_id : numéro de ligne de l'écriture d'immobilisation + - immo_line_id : numéro de ligne de l'écriture d'immobilisation - amort_amount : montant des amortissements - year : exercice de la date de sortie de l'immobilisation - date_mes : date de mise en service de l'immobilisation @@ -30,6 +30,9 @@ }} {{/select}} +{{#load type="immo" assign="info_immo" where="$$.line = :line_id" :line_id=$_GET.immo_line_id|intval}} +{{/load}} + {{* 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 *}}