Exclure les immo et amortissements de la balance d'ouverture
This commit is contained in:
parent
d599d49e1a
commit
516021031d
4 changed files with 106 additions and 10 deletions
|
|
@ -43,11 +43,13 @@
|
|||
{{:assign config_defaut=$config_json|json_decode}}
|
||||
{{:assign var="prefix_array" value=$config_defaut.prefixes|keys}}
|
||||
{{#foreach from=$prefix_array item="code"}}
|
||||
{{:assign code_s=$code|strval}}
|
||||
{{:assign ch1=$code_s|substr:0:1}}
|
||||
{{:assign reste=$code_s|substr:1}}
|
||||
{{:assign code=$ch1|cat:"8"|cat:$reste}}
|
||||
{{:assign var="amort_array." value=$code|intval}}
|
||||
{{* déterminer le numéro du compte d'amortissement associé au compte d'immobilisation *}}
|
||||
{{:include
|
||||
file="./_get_amort_code.html"
|
||||
code_immo=$code
|
||||
keep="code_amort"
|
||||
}}
|
||||
{{:assign var="amort_array." value=$code_amort|intval}}
|
||||
{{/foreach}}
|
||||
|
||||
{{:include
|
||||
|
|
@ -113,10 +115,12 @@
|
|||
d'immobilisation => ajouter un 8 après le 2 de tête
|
||||
*}}
|
||||
{{#select code, label from acc_accounts where id = :id; :id=$_GET.account assign=amort_account}}{{/select}}
|
||||
{{:assign c1=$amort_account.code|substr:0:1}}
|
||||
{{:assign reste=$amort_account.code|substr:1}}
|
||||
{{:assign amort_code=$c1|cat:8|cat:$reste}}
|
||||
{{:assign var="credit_account.%s"|args:$amort_code value="%s — Amortissements "|args:$amort_code|cat:$amort_account.label}}
|
||||
{{:include
|
||||
file="./_get_amort_code.html"
|
||||
code_immo=$amort_account.code
|
||||
keep="code_amort"
|
||||
}}
|
||||
{{:assign var="credit_account.%s"|args:$code_amort value="%s — Amortissements "|args:$code_amort|cat:$amort_account.label}}
|
||||
|
||||
{{#select
|
||||
id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue