Correction dysfonctionnement config unfinished
This commit is contained in:
parent
3f2c4902c9
commit
db1f1700d1
4 changed files with 34 additions and 4 deletions
|
|
@ -59,6 +59,11 @@
|
||||||
|
|
||||||
{{:assign accounts_condition="("}}
|
{{:assign accounts_condition="("}}
|
||||||
{{#foreach from=$module.config.unfinished item="elem"}}
|
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||||
|
{{if $elem.code != null}}
|
||||||
|
{{:assign code=$elem.code}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign code=$elem}}
|
||||||
|
{{/if}}
|
||||||
{{:assign code=$elem.code|cat:"%"|quote_sql}}
|
{{:assign code=$elem.code|cat:"%"|quote_sql}}
|
||||||
{{:assign accounts_condition=$accounts_condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}}
|
{{:assign accounts_condition=$accounts_condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,12 @@
|
||||||
{{#foreach from=$module.config.prefixes item="code"}}
|
{{#foreach from=$module.config.prefixes item="code"}}
|
||||||
{{:assign var="prefix_array." value=$code}}
|
{{:assign var="prefix_array." value=$code}}
|
||||||
{{/foreach}}
|
{{/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}}
|
{{:assign var="prefix_array." value=$code}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
||||||
|
|
@ -77,7 +82,12 @@
|
||||||
{{:assign credit_account=$credit_account|keys|value:0}}
|
{{:assign credit_account=$credit_account|keys|value:0}}
|
||||||
|
|
||||||
{{* déterminer si le compte d'immo est un compte d'immo en cours *}}
|
{{* 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}}
|
{{if $debit_account|strpos:$code === 0}}
|
||||||
{{:assign status="unfinished"}}
|
{{:assign status="unfinished"}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
@ -164,8 +174,13 @@
|
||||||
{{#foreach from=$module.config.prefixes item="code"}}
|
{{#foreach from=$module.config.prefixes item="code"}}
|
||||||
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{#foreach from=$module.config.unfinished item="code"}}
|
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||||
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
{{if $elem.code != null}}
|
||||||
|
{{:assign code=$elem.code}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign code=$elem}}
|
||||||
|
{{/if}}
|
||||||
|
{{:assign var="pattern_array." value="%s*"|args:$code}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
{{:assign var="patterns" value=$pattern_array|implode:"|"}}
|
{{:assign var="patterns" value=$pattern_array|implode:"|"}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,11 @@
|
||||||
{{* libellés des comptes d'immobilisation en cours de constitution *}}
|
{{* libellés des comptes d'immobilisation en cours de constitution *}}
|
||||||
{{:assign condition="("}}
|
{{:assign condition="("}}
|
||||||
{{#foreach from=$module.config.unfinished item="elem"}}
|
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||||
|
{{if $elem.code != null}}
|
||||||
|
{{:assign code=$elem.code}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign code=$elem}}
|
||||||
|
{{/if}}
|
||||||
{{:assign code=$elem.code|quote_sql}}
|
{{:assign code=$elem.code|quote_sql}}
|
||||||
{{:assign condition=$condition|cat:" account.code = "|cat:$code|cat:" OR "}}
|
{{:assign condition=$condition|cat:" account.code = "|cat:$code|cat:" OR "}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,11 @@
|
||||||
{{:include file="_get_config.html" keep="module.config.unfinished"}}
|
{{:include file="_get_config.html" keep="module.config.unfinished"}}
|
||||||
{{:assign condition="("}}
|
{{:assign condition="("}}
|
||||||
{{#foreach from=$module.config.unfinished item="elem"}}
|
{{#foreach from=$module.config.unfinished item="elem"}}
|
||||||
|
{{if $elem.code != null}}
|
||||||
|
{{:assign code=$elem.code}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign code=$elem}}
|
||||||
|
{{/if}}
|
||||||
{{:assign code=$elem.code|cat:"%"|quote_sql}}
|
{{:assign code=$elem.code|cat:"%"|quote_sql}}
|
||||||
{{:assign condition=$condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}}
|
{{:assign condition=$condition|cat:" account.code LIKE "|cat:$code|cat:" OR "}}
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue