Compare commits

...

2 commits

Author SHA1 Message Date
Jean-Christophe Engel
8801cefe2c Amélioration présentation onglets et menu 2026-01-08 18:44:40 +01:00
Jean-Christophe Engel
a0446a02eb Correction dysfonctionnement config unfinished 2026-01-08 18:21:42 +01:00
17 changed files with 58 additions and 26 deletions

View file

@ -24,13 +24,15 @@
<li {{if $current == "config"}} class="current"{{/if}}><a href="config.html">Configuration</a></li> <li {{if $current == "config"}} class="current"{{/if}}><a href="config.html">Configuration</a></li>
</ul> </ul>
{{if $subsubcurrent != null}}
<ul class="sub">
{{if $subsubcurrent == "amortization"}} {{if $subsubcurrent == "amortization"}}
<ul class="sub">
<li class="title strong">Amortissements</li> <li class="title strong">Amortissements</li>
</ul>
{{elseif $subsubcurrent == "balance_exit"}} {{elseif $subsubcurrent == "balance_exit"}}
<ul class="sub">
<li class="title strong">Sortie de bilan</li> <li class="title strong">Sortie de bilan</li>
{{elseif $subsubcurrent == "transfer"}}
<li class="title strong">Transfert d'immobilisations</li>
{{/if}}
</ul> </ul>
{{/if}} {{/if}}

View file

@ -59,6 +59,11 @@
{{:assign accounts_condition="("}} {{:assign accounts_condition="("}}
{{#foreach from=$module.config.unfinished item="elem"}} {{#foreach from=$module.config.unfinished item="elem"}}
{{if $elem|has_key:"code"}}
{{:assign code=$elem.code}}
{{else}}
{{:assign code=$elem}}
{{/if}}
{{:assign code=$elem.code|cat:"%"|quote_sql}} {{:assign code=$elem.code|cat:"%"|quote_sql}}
{{:assign accounts_condition=$accounts_condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}} {{:assign accounts_condition=$accounts_condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}}
{{/foreach}} {{/foreach}}

View file

@ -1,5 +1,5 @@
{{* -*- brindille -*- *}} {{* -*- brindille -*- *}}
{{:admin_header title="Ajout immobilisation" current="module_amortissement"}} {{:admin_header title="Ajout immobilisation" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}

View file

@ -56,7 +56,12 @@
{{#foreach from=$module.config.prefixes item="code"}} {{#foreach from=$module.config.prefixes item="code"}}
{{:assign var="prefix_array." value=$code}} {{:assign var="prefix_array." value=$code}}
{{/foreach}} {{/foreach}}
{{#foreach from=$module.config.unfinished item="code"}} {{#foreach from=$module.config.unfinished item="elem"}}
{{if $elem|has_key:"code"}}
{{:assign code=$elem.code}}
{{else}}
{{:assign code=$elem}}
{{/if}}
{{:assign var="prefix_array." value=$code}} {{:assign var="prefix_array." value=$code}}
{{/foreach}} {{/foreach}}
@ -77,7 +82,12 @@
{{:assign credit_account=$credit_account|keys|value:0}} {{:assign credit_account=$credit_account|keys|value:0}}
{{* déterminer si le compte d'immo est un compte d'immo en cours *}} {{* déterminer si le compte d'immo est un compte d'immo en cours *}}
{{#foreach from=$module.config.unfinished item="code"}} {{#foreach from=$module.config.unfinished item="elem"}}
{{if $elem|has_key:"code"}}
{{:assign code=$elem.code}}
{{else}}
{{:assign code=$elem}}
{{/if}}
{{if $debit_account|strpos:$code === 0}} {{if $debit_account|strpos:$code === 0}}
{{:assign status="unfinished"}} {{:assign status="unfinished"}}
{{/if}} {{/if}}
@ -147,7 +157,7 @@
{{/form}} {{/form}}
{{:admin_header title="Ajout immobilisation" current="module_amortissement"}} {{:admin_header title="Ajout immobilisation" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}
{{:include file="_nav.html" current="index"}} {{:include file="_nav.html" current="index"}}
@ -164,7 +174,12 @@
{{#foreach from=$module.config.prefixes item="code"}} {{#foreach from=$module.config.prefixes item="code"}}
{{:assign var="pattern_array." value="%s*"|args:$code}} {{:assign var="pattern_array." value="%s*"|args:$code}}
{{/foreach}} {{/foreach}}
{{#foreach from=$module.config.unfinished item="code"}} {{#foreach from=$module.config.unfinished item="elem"}}
{{if $elem|has_key:"code"}}
{{:assign code=$elem.code}}
{{else}}
{{:assign code=$elem}}
{{/if}}
{{:assign var="pattern_array." value="%s*"|args:$code}} {{:assign var="pattern_array." value="%s*"|args:$code}}
{{/foreach}} {{/foreach}}
{{:assign var="patterns" value=$pattern_array|implode:"|"}} {{:assign var="patterns" value=$pattern_array|implode:"|"}}

View file

@ -76,7 +76,7 @@
{{:form_errors}} {{:form_errors}}
{{/form}} {{/form}}
{{:admin_header title="Informations amortissement" custom_css=$custom_css current="module_amortissement"}} {{:admin_header title="Informations amortissement" custom_css=$custom_css current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}

View file

@ -1,6 +1,6 @@
{{* -*- brindille -*- *}} {{* -*- brindille -*- *}}
{{:admin_header title="Aide" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Aide" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{:include file="_nav.html" current="aide"}} {{:include file="_nav.html" current="aide"}}

View file

@ -120,7 +120,7 @@
{{/select}} {{/select}}
{{:admin_header title="Liste des amortissements" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Liste des amortissements" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if $_GET.type_immo == "amortized" || $valeur_residuelle== 0 }} {{if $_GET.type_immo == "amortized" || $valeur_residuelle== 0 }}

View file

@ -170,7 +170,7 @@
{{:redirect to="compute_exit_data.html?immo_id=%s&amort_amount=%s&year=%s&date_mes=%s&date_debut=%s&exit_date=%s&duree_amort=%s"|args:$_GET.immo_id:$amort_amount:$selected_year:$ts_mes:$ts_debut:$ts_exit:$duree_amort}} {{:redirect to="compute_exit_data.html?immo_id=%s&amort_amount=%s&year=%s&date_mes=%s&date_debut=%s&exit_date=%s&duree_amort=%s"|args:$_GET.immo_id:$amort_amount:$selected_year:$ts_mes:$ts_debut:$ts_exit:$duree_amort}}
{{/form}} {{/form}}
{{:admin_header title="Sortie de bilan" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Sortie de bilan" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$_GET.type_immo subsubcurrent="balance_exit"}} {{:include file="_nav.html" current="index" subcurrent="%s"|args:$_GET.type_immo subsubcurrent="balance_exit"}}

View file

@ -46,7 +46,7 @@
{{:redirect to="write_exit.html?immo_id=%s&amort_amount=%s&year=%s&date_mes=%s&date_debut=%s&exit_date=%s&duree_amort=%s&cession=%s"|args:$_GET.immo_id:$_GET.amort_amount:$_GET.year:$_GET.date_mes:$_GET.date_debut:$_GET.exit_date:$_GET.duree_amort:$_POST.montant_cession}} {{:redirect to="write_exit.html?immo_id=%s&amort_amount=%s&year=%s&date_mes=%s&date_debut=%s&exit_date=%s&duree_amort=%s&cession=%s"|args:$_GET.immo_id:$_GET.amort_amount:$_GET.year:$_GET.date_mes:$_GET.date_debut:$_GET.exit_date:$_GET.duree_amort:$_POST.montant_cession}}
{{/form}} {{/form}}
{{:admin_header title="Sortie du bilan" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Sortie du bilan" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}

View file

@ -45,7 +45,7 @@
{{:form_errors}} {{:form_errors}}
{{/form}} {{/form}}
{{:admin_header title="Configuration" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Configuration" custom_css="./style.css" current="module_amortization"}}
{{:include file="_nav.html" current="config"}} {{:include file="_nav.html" current="config"}}
{{if $_GET.ok == 1}} {{if $_GET.ok == 1}}
<p class="block confirm">Configuration enregistrée.</p> <p class="block confirm">Configuration enregistrée.</p>
@ -99,6 +99,11 @@
{{* libellés des comptes d'immobilisation en cours de constitution *}} {{* libellés des comptes d'immobilisation en cours de constitution *}}
{{:assign condition="("}} {{:assign condition="("}}
{{#foreach from=$module.config.unfinished item="elem"}} {{#foreach from=$module.config.unfinished item="elem"}}
{{if $elem|has_key:"code"}}
{{:assign code=$elem.code}}
{{else}}
{{:assign code=$elem}}
{{/if}}
{{:assign code=$elem.code|quote_sql}} {{:assign code=$elem.code|quote_sql}}
{{:assign condition=$condition|cat:" account.code = "|cat:$code|cat:" OR "}} {{:assign condition=$condition|cat:" account.code = "|cat:$code|cat:" OR "}}
{{/foreach}} {{/foreach}}

View file

@ -1,6 +1,6 @@
{{* -*- brindille -*- *}} {{* -*- brindille -*- *}}
{{:admin_header title="Configuration" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Configuration" custom_css="./style.css" current="module_amortization"}}
{{:include file="_nav.html" current="config" subcurrent="filters"}} {{:include file="_nav.html" current="config" subcurrent="filters"}}
{{if $_GET.ok == 1}} {{if $_GET.ok == 1}}

View file

@ -49,7 +49,7 @@
{{:form_errors}} {{:form_errors}}
{{/form}} {{/form}}
{{:admin_header title="Ignorer l'écriture" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Ignorer l'écriture" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}

View file

@ -16,7 +16,7 @@
{{elseif $type_immo == "other"}} {{elseif $type_immo == "other"}}
{{:admin_header title="Autres immobilisations" custom_css="./style.css" current="module_amortization"}} {{:admin_header title="Autres immobilisations" custom_css="./style.css" current="module_amortization"}}
{{elseif $type_immo == "unfinished"}} {{elseif $type_immo == "unfinished"}}
{{:admin_header title="Immobilisations en cours" custom_css="./style.css" current="module_amortization"}} {{:admin_header title="Immobilisations en cours de constitution" custom_css="./style.css" current="module_amortization"}}
{{/if}} {{/if}}
{{:include file="_nav.html" current="index" subcurrent="%s"|args:$type_immo}} {{:include file="_nav.html" current="index" subcurrent="%s"|args:$type_immo}}

View file

@ -63,7 +63,7 @@
{{/select}} {{/select}}
{{/select}} {{/select}}
{{:admin_header title="Amortissements non rattachés" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Amortissements non rattachés" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}

View file

@ -208,7 +208,7 @@
{{:redirect force="amortization.html?immo_id=%s&ok=1&msg=amortissement"|args:$_GET.immo_id}} {{:redirect force="amortization.html?immo_id=%s&ok=1&msg=amortissement"|args:$_GET.immo_id}}
{{/form}} {{/form}}
{{:admin_header title="Ajout amortissement" current="module_amortissement"}} {{:admin_header title="Ajout amortissement" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}

View file

@ -1,6 +1,6 @@
{{* -*- brindille -*- *}} {{* -*- brindille -*- *}}
{{:admin_header title="Transfert d'immobilisation en cours" current="module_amortissement"}} {{:admin_header title="Transfert d'immobilisation en cours" custom_css="./style.css" current="module_amortization"}}
{{:include file="_get_config.html" keep="module.config.prefixes"}} {{:include file="_get_config.html" keep="module.config.prefixes"}}
{{#years closed=false order="start_date" assign=years.}} {{#years closed=false order="start_date" assign=years.}}
@ -21,6 +21,11 @@
{{:include file="_get_config.html" keep="module.config.unfinished"}} {{:include file="_get_config.html" keep="module.config.unfinished"}}
{{:assign condition="("}} {{:assign condition="("}}
{{#foreach from=$module.config.unfinished item="elem"}} {{#foreach from=$module.config.unfinished item="elem"}}
{{if $elem|has_key:"code"}}
{{:assign code=$elem.code}}
{{else}}
{{:assign code=$elem}}
{{/if}}
{{:assign code=$elem.code|cat:"%"|quote_sql}} {{:assign code=$elem.code|cat:"%"|quote_sql}}
{{:assign condition=$condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}} {{:assign condition=$condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}}
{{/foreach}} {{/foreach}}
@ -191,7 +196,7 @@
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}
{{:include file="_nav.html" current="index"}} {{:include file="_nav.html" current="index" subcurrent="unfinished" subsubcurrent="transfer"}}
{{/if}} {{/if}}
{{:form_errors}} {{:form_errors}}

View file

@ -248,7 +248,7 @@
{{:redirect to="index.html?type_immo=archived"}} {{:redirect to="index.html?type_immo=archived"}}
{{/form}} {{/form}}
{{:admin_header title="Sortie du bilan" custom_css="./style.css" current="module_amortissement"}} {{:admin_header title="Sortie du bilan" custom_css="./style.css" current="module_amortization"}}
{{* barre de navigation *}} {{* barre de navigation *}}
{{if ! $dialog}} {{if ! $dialog}}