From e43c2ee3c0f495d06be613b7d7b004969655084a Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Fri, 5 Jun 2026 14:17:56 +0200 Subject: [PATCH] =?UTF-8?q?other=5Famortizations=20:=20am=C3=A9lioration?= =?UTF-8?q?=20s=C3=A9lection=20=C3=A9critures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other_amortizations.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/other_amortizations.html b/other_amortizations.html index 4b657a2..6838cbf 100644 --- a/other_amortizations.html +++ b/other_amortizations.html @@ -32,6 +32,12 @@ {{* lister les amortissements non rattachés à une immo *}} {{:include file="./_get_free_amort.html" filter_condition=$filter_condition keep="free_amort_lines"}} +{{* déterminer le compte d'amortissement en fonction du compte d'immobilisation *}} +{{:include + file="./_get_amort_code.html" + code_immo=$ligne_immo.account_code + keep="code_amort" +}} {{:admin_header title="Amortissements non rattachés" custom_css="./style.css" current="module_amortization"}} {{* barre de navigation *}} @@ -52,7 +58,7 @@
- {{:input type="checkbox" value=1 name="unhide" checked="%s"|args:$checked label="Afficher les écritures ignorées"}} + {{:input type="checkbox" value=1 name="unhide" checked="%s"|args:$checked label="Afficher toutes les écritures"}}
@@ -73,6 +79,9 @@ {{#foreach from=$free_amort_lines item="line"}} + {{if $_POST.unhide == null && $line.account_code != $code_amort}} + {{:continue}} + {{/if}} {{:assign trans_url="%s/acc/transactions/details.php?id=%s"|args:$admin_url:$line.trans_id}} {{:assign compte_url="%s/acc/accounts/journal.php?id=%s&year=%s"|args:$admin_url:$line.account_id:$line.year}}