Ajout gestion configuration comptes d'immobilisation

This commit is contained in:
Jean-Christophe Engel 2025-07-16 09:50:25 +02:00
parent e7763d7cac
commit bcf89ba874
11 changed files with 309 additions and 28 deletions

View file

@ -149,8 +149,7 @@
*}}
{{:read file="./defaut.json" assign="config_json"}}
{{:assign config_defaut=$config_json|json_decode}}
{{:assign var="prefix_array" value=$config_defaut.prefixes|keys}}
{{#foreach from=$prefix_array item="code"}}
{{#foreach from=$config_defaut.prefixes item="code"}}
{{* déterminer le numéro du compte d'amortissement associé au compte d'immobilisation *}}
{{:include
file="./_get_amort_code.html"
@ -254,7 +253,7 @@
{{:input
type="list"
name="credit_account"
label="Compte d'amortissement (280xx ou 281xx)"
label="Compte d'amortissement (28xx)"
required=true
target="!acc/charts/accounts/selector.php?codes=%s&id_year=%d"|args:"28*":$selected_year
default=$credit_account