Simplification détermination numéro compte
This commit is contained in:
parent
46f203a89c
commit
318bbce353
@ -4,12 +4,7 @@
|
||||
déterminer le numéro du compte passé en paramètre dans un tableau
|
||||
*}}
|
||||
|
||||
{{:assign key=$account|keys|key:0}}
|
||||
{{:assign label=$account|values|key:0}}
|
||||
|
||||
{{:assign pos=$label|strpos:$key}}
|
||||
{{if $pos == false}}
|
||||
{{:assign pos=$label|strpos:" "}}
|
||||
{{:assign account_code=$label|substr:0:$pos}}
|
||||
{{/if}}
|
||||
{{:assign pos=$label|strpos:" "}}
|
||||
{{:assign account_code=$label|substr:0:$pos}}
|
||||
{{:assign var="account_code.%s"|args:$account_code value=$label}}
|
||||
|
Loading…
Reference in New Issue
Block a user