Correction dysfonctionnement config unfinished
This commit is contained in:
parent
3f2c4902c9
commit
db1f1700d1
4 changed files with 34 additions and 4 deletions
|
|
@ -56,7 +56,12 @@
|
|||
{{#foreach from=$module.config.prefixes item="code"}}
|
||||
{{:assign var="prefix_array." value=$code}}
|
||||
{{/foreach}}
|
||||
{{#foreach from=$module.config.unfinished item="code"}}
|
||||
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||
{{if $elem.code != null}}
|
||||
{{:assign code=$elem.code}}
|
||||
{{else}}
|
||||
{{:assign code=$elem}}
|
||||
{{/if}}
|
||||
{{:assign var="prefix_array." value=$code}}
|
||||
{{/foreach}}
|
||||
|
||||
|
|
@ -77,7 +82,12 @@
|
|||
{{:assign credit_account=$credit_account|keys|value:0}}
|
||||
|
||||
{{* déterminer si le compte d'immo est un compte d'immo en cours *}}
|
||||
{{#foreach from=$module.config.unfinished item="code"}}
|
||||
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||
{{if $elem.code != null}}
|
||||
{{:assign code=$elem.code}}
|
||||
{{else}}
|
||||
{{:assign code=$elem}}
|
||||
{{/if}}
|
||||
{{if $debit_account|strpos:$code === 0}}
|
||||
{{:assign status="unfinished"}}
|
||||
{{/if}}
|
||||
|
|
@ -164,8 +174,13 @@
|
|||
{{#foreach from=$module.config.prefixes item="code"}}
|
||||
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
||||
{{/foreach}}
|
||||
{{#foreach from=$module.config.unfinished item="code"}}
|
||||
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
||||
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||
{{if $elem.code != null}}
|
||||
{{:assign code=$elem.code}}
|
||||
{{else}}
|
||||
{{:assign code=$elem}}
|
||||
{{/if}}
|
||||
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
||||
{{/foreach}}
|
||||
{{:assign var="patterns" value=$pattern_array|implode:"|"}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue