refonte config types ES
This commit is contained in:
parent
b19904b05b
commit
08ff1f82fd
16 changed files with 133 additions and 208 deletions
|
|
@ -75,12 +75,7 @@
|
|||
|
||||
{{if $mvt.direction === 'input'}}
|
||||
{{* déterminer le type de mouvement *}}
|
||||
{{#foreach from=$config.input_nature}}
|
||||
{{if $key == $mvt.operation}}
|
||||
{{:assign type_mvt=$type}}
|
||||
{{:break}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{:assign var=type_mvt from="config.input_nature.%s.type"|args:$mvt.operation}}
|
||||
{{if $type_mvt == 'définitif'}}
|
||||
{{:assign stock="%d+%d"|math:$stock:$mvt.amount}}
|
||||
{{:assign
|
||||
|
|
@ -99,12 +94,7 @@
|
|||
{{/if}}
|
||||
{{elseif $mvt.direction === 'output'}}
|
||||
{{* déterminer le type de mouvement *}}
|
||||
{{#foreach from=config.output_nature}}
|
||||
{{if $key == $mvt.operation}}
|
||||
{{:assign type_mvt=$type}}
|
||||
{{:break}}
|
||||
{{/if}}
|
||||
{{/foreach}}
|
||||
{{:assign var=type_mvt from="config.output_nature.%s.type"|args:$mvt.operation}}
|
||||
{{if $type_mvt == 'définitif'}}
|
||||
{{:assign stock="%d-%d"|math:$stock:$mvt.amount}}
|
||||
{{:assign
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue