Simplification détermination numéro compte

This commit is contained in:
Jean-Christophe Engel 2024-03-26 09:17:20 +01:00
parent 46f203a89c
commit 318bbce353
1 changed files with 2 additions and 7 deletions

View File

@ -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}}