Généralisation comptes immobilisation

This commit is contained in:
Jean-Christophe Engel 2024-12-18 11:06:41 +01:00
parent 92622fb9a0
commit 33ad15dbfc
4 changed files with 38 additions and 19 deletions

View file

@ -43,11 +43,14 @@
{{:assign credit_account=$account_code}}
{{* vérifier :
- que le compte d'immo débute par 20 ou 21
- que le compte d'immo débute par un préfixe correct (20, 21, ...)
- est présent dans le PC de l'exercice correspondant à la date
*}}
{{:assign var="prefix_array." value="'20%'"}}
{{:assign var="prefix_array." value="'21%'"}}
{{:read file="./defaut.json" assign="config_json"}}
{{:assign config_defaut=$config_json|json_decode}}
{{:assign var="prefix_array" value=$config_defaut.prefixes|keys}}
{{:include
file="_check_account.html"
account=$debit_account
@ -94,7 +97,6 @@
date=$date_debut
}}
{{:redirect force="index.html?ok=1&msg=immobilisation"}}
{{/form}}
{{:form_errors}}
@ -127,7 +129,7 @@
{{:input
type="list"
name="debit_account"
label="Compte d'immobilisation (20xx ou 21xx)"
label="Compte d'immobilisation (20xx, 21xx, ...)"
required=true
target="!acc/charts/accounts/selector.php?key=code"
default=$immo_account