Gestion config par défaut + ajout contrôles
This commit is contained in:
parent
be70b6ef6e
commit
794094b712
11 changed files with 226 additions and 161 deletions
|
|
@ -82,9 +82,12 @@
|
|||
{{:assign nonproprio=0}}
|
||||
{{/if}}
|
||||
|
||||
{{* récupérer la config des entrées/sorties *}}
|
||||
{{:include file="/%s/_get_config.html"|args:$module.name keep="config"}}
|
||||
|
||||
{{if $direction === 'entrée'}}
|
||||
{{* chercher le type d'entrée parmi les types de la config *}}
|
||||
{{#foreach from=$module.config.inputNature item="elem"}}
|
||||
{{#foreach from=$config.inputNature item="elem"}}
|
||||
{{if $operation == $elem.label}}
|
||||
{{if $elem.type == 'définitif'}}
|
||||
{{:assign stock="%d+%d"|math:$stock:$nombre}}
|
||||
|
|
@ -107,7 +110,7 @@
|
|||
{{/foreach}}
|
||||
{{elseif $direction === 'sortie'}}
|
||||
{{* chercher le type de sortie parmi les types de la config *}}
|
||||
{{#foreach from=$module.config.outputNature item="elem"}}
|
||||
{{#foreach from=$config.outputNature item="elem"}}
|
||||
{{if $operation == $elem.label}}
|
||||
{{if $elem.type == 'définitif'}}
|
||||
{{:assign stock="%d-%d"|math:$stock:$nombre}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue