début nouvelle config types ES
This commit is contained in:
parent
b6de0c59c0
commit
b19904b05b
10 changed files with 122 additions and 74 deletions
|
|
@ -73,11 +73,14 @@
|
|||
{{:assign nonproprio=0}}
|
||||
{{/if}}
|
||||
|
||||
{{* déterminer le type de mouvement *}}
|
||||
{{:assign var="mvt_nature" from="mvt.%s_nature"|args:$mvt.direction}}
|
||||
{{:assign var="type_mvt" from="config.%s_nature.%s"|args:$mvt.direction:$mvt_nature}}
|
||||
|
||||
{{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}}
|
||||
{{if $type_mvt == 'définitif'}}
|
||||
{{:assign stock="%d+%d"|math:$stock:$mvt.amount}}
|
||||
{{:assign
|
||||
|
|
@ -95,6 +98,13 @@
|
|||
from=nonproprio}}
|
||||
{{/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}}
|
||||
{{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