From 79c267aa23f8781811cfe5c8afa2212ebb69ec19 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Wed, 18 Mar 2026 09:30:03 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20afficher=20toutes=20les=20=C3=A9criture?= =?UTF-8?q?s=20d'amortissements=20non=20rattach=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other_amortizations.html | 44 ++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/other_amortizations.html b/other_amortizations.html index ae3d6ae..84ac835 100644 --- a/other_amortizations.html +++ b/other_amortizations.html @@ -8,7 +8,8 @@ {{* récupérer les infos de l'immobilisation *}} {{#select - trans.label as label + trans.label as label, + line.label as line_label FROM acc_transactions_lines AS line INNER JOIN acc_transactions AS trans ON line.id_transaction = trans.id WHERE line.id = :line_id; @@ -20,12 +21,17 @@ {{/select}} {{:include file="_get_config.html" keep="module.config"}} -{{:assign filter_condition=" NOT ("}} -{{#foreach from=$module.config.filters item="filter"}} - {{:assign filter="%"|cat:$filter|cat:"%"|quote_sql}} - {{:assign filter_condition=$filter_condition|cat:" trans.label LIKE "|cat:$filter|cat:" OR "}} -{{/foreach}} -{{:assign filter_condition=$filter_condition|cat:"0)"}} + +{{if $_POST.unhide == null}} + {{:assign filter_condition=" NOT ("}} + {{#foreach from=$module.config.filters item="filter"}} + {{:assign filter="%"|cat:$filter|cat:"%"|quote_sql}} + {{:assign filter_condition=$filter_condition|cat:" trans.label LIKE "|cat:$filter|cat:" OR "}} + {{/foreach}} + {{:assign filter_condition=$filter_condition|cat:"0)"}} +{{else}} + {{:assign filter_condition="1"}} +{{/if}} {{* lister les écritures d'amortissement *}} {{#select @@ -104,9 +110,19 @@ }} {{/if}} +{{if $_POST.unhide != null}} + {{:assign checked="checked"}} +{{/if}} + +
+
+ {{:input type="checkbox" value=1 name="unhide" checked="%s"|args:$checked label="Afficher toutes les écritures" }} +
+
+ {{if $autres_amortissements != null}}
-

Immobilisation « {{$ligne_immo.label}} »

+

Immobilisation « {{$ligne_immo.label}}{{if $ligne_immo.line_label != null}} — {{$ligne_immo.line_label}}{{/if}} »

@@ -143,3 +159,15 @@ {{/if}} {{:form_errors}} {{:admin_footer}} + +