From d2b0f4eaae468cb5987168595de9dbcbe96c426c Mon Sep 17 00:00:00 2001
From: Jean-Christophe Engel
Date: Wed, 28 Jan 2026 17:04:23 +0100
Subject: [PATCH] =?UTF-8?q?M=C3=A9moriser=20l'=C3=A9tat=20d'affichage=20de?=
=?UTF-8?q?s=20=C3=A9critures=20ignor=C3=A9es?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
_immobilisations_autres.html | 23 ++++++++++++++++++-----
_unfinished.html | 20 +++++++++++++++++---
2 files changed, 35 insertions(+), 8 deletions(-)
diff --git a/_immobilisations_autres.html b/_immobilisations_autres.html
index 2b8dad9..51daa6d 100644
--- a/_immobilisations_autres.html
+++ b/_immobilisations_autres.html
@@ -8,9 +8,24 @@
Cette page liste les écritures pas (encore) prises en charge par le module et sans écriture d'amortissement associée.
+ {{:include file="_get_config.html" keep="module.config"}}
+ {{if $_POST|count == 0}}
+ {{:assign unhide=$module.config.unhide_other}}
+ {{else}}
+ {{if $_POST.unhide == null}}
+ {{:assign unhide=0}}
+ {{else}}
+ {{:assign unhide=1}}
+ {{/if}}
+ {{:save key="config" unhide_other=$unhide}}
+ {{/if}}
+ {{if $unhide}}
+ {{:assign checked="checked"}}
+ {{/if}}
+
@@ -29,8 +44,6 @@
{{* lister les immobilisations *}}
- {{:include file="_get_config.html" keep="module.config"}}
-
{{:assign condition="("}}
{{#foreach from=$module.config.prefixes item="code"}}
{{:assign code=$code|cat:"%"|quote_sql}}
@@ -39,7 +52,7 @@
{{:assign condition=$condition|cat:"0)"}}
{{:assign condition=$condition|cat:" AND debit > 0 AND NOT (trans.status & 16)"}}
- {{if $_POST.unhide == null}}
+ {{if $unhide == null}}
{{*:assign condition=$condition|cat:" AND NOT (trans.status & 16)"*}}
{{:assign filter_condition=" NOT ("}}
@@ -80,7 +93,7 @@
{{:assign status="unknown"}}
{{/load}}
- {{if $_POST.unhide == null}}
+ {{if $unhide == null}}
{{if $status != "unknown"}}
{{:continue}}
{{/if}}
diff --git a/_unfinished.html b/_unfinished.html
index 08ddf90..abce26a 100644
--- a/_unfinished.html
+++ b/_unfinished.html
@@ -8,6 +8,21 @@
Cette page liste les immobilisations en cours de constitution, donc non amortissables
+ {{:include file="_get_config.html" keep="module.config"}}
+ {{if $_POST|count == 0}}
+ {{:assign unhide=$module.config.unhide_unfinished}}
+ {{else}}
+ {{if $_POST.unhide == null}}
+ {{:assign unhide=0}}
+ {{else}}
+ {{:assign unhide=1}}
+ {{/if}}
+ {{:save key="config" unhide_unfinished=$unhide}}
+ {{/if}}
+ {{if $unhide}}
+ {{:assign checked="checked"}}
+ {{/if}}
+
@@ -55,7 +70,6 @@
{{* lister les immobilisations en cours de constitution *}}
- {{:include file="_get_config.html" keep="module.config"}}
{{:assign accounts_condition="("}}
{{#foreach from=$module.config.unfinished item="elem"}}
@@ -103,7 +117,7 @@
{{#load type="immo" assign="info_immo" where="$$.line = :line_id AND $$.status = 'ignored'" :line_id=$immo_id|intval}}
{{:assign ignore=true}}
{{/load}}
- {{if $ignore && $_POST.unhide == null}}
+ {{if $ignore && $unhide == null}}
{{:continue}}
{{/if}}