Compare commits
2 Commits
ce87720d41
...
3ba67d0c65
Author | SHA1 | Date | |
---|---|---|---|
3ba67d0c65 | |||
16d6ac752a |
@ -132,7 +132,7 @@
|
|||||||
mvt.key AS mvt_key,
|
mvt.key AS mvt_key,
|
||||||
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS reste
|
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS reste
|
||||||
FROM module_data_equipment AS mvt
|
FROM module_data_equipment AS mvt
|
||||||
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.output')
|
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.temp_key')
|
||||||
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
||||||
WHERE
|
WHERE
|
||||||
json_extract(mvt.document, '$.operation') IN !op
|
json_extract(mvt.document, '$.operation') IN !op
|
||||||
@ -223,7 +223,7 @@
|
|||||||
mvt.key AS mvt_key,
|
mvt.key AS mvt_key,
|
||||||
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS present
|
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS present
|
||||||
FROM module_data_equipment AS mvt
|
FROM module_data_equipment AS mvt
|
||||||
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.input')
|
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.temp_key')
|
||||||
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
||||||
WHERE
|
WHERE
|
||||||
json_extract(mvt.document, '$.operation') IN !op
|
json_extract(mvt.document, '$.operation') IN !op
|
||||||
|
@ -1,148 +0,0 @@
|
|||||||
{{* -*- brindille -*- *}}
|
|
||||||
|
|
||||||
{{*
|
|
||||||
paramètres :
|
|
||||||
- key : clé du matériel qui revient
|
|
||||||
*}}
|
|
||||||
|
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{:include file="../../_nav.html" current="entrees"}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* récupérer la config des entrées/sorties *}}
|
|
||||||
{{:include file="../../_get_config.html" keep="config"}}
|
|
||||||
|
|
||||||
{{* déterminer le matériel concerné par le mouvement *}}
|
|
||||||
{{#load key=$_GET.key assign="equipment"}}{{/load}}
|
|
||||||
|
|
||||||
{{*
|
|
||||||
-------------------- Traiter l'envoi du formulaire --------------------
|
|
||||||
*}}
|
|
||||||
{{#form on="save"}}
|
|
||||||
{{* vérifier les données saisies *}}
|
|
||||||
{{if $_POST.amount <= 0}}
|
|
||||||
{{:error message="La quantité (%s) doit être strictement positive !!"|args:$_POST.amount}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{if $_POST.date|parse_date|strtotime > $now}}
|
|
||||||
{{:error message="Impossible de saisir une date dans le futur (%s)"|args:$_POST.date}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* préparer le nouveau mouvement *}}
|
|
||||||
{{:assign var="mvt_new.key" value=""|uuid}}
|
|
||||||
{{:assign var="mvt_new.direction" value="input"}}
|
|
||||||
{{:assign var="mvt_new.date" value=$_POST.date|parse_date}}
|
|
||||||
{{:assign var="mvt_new.operation" value=$_POST.operation}}
|
|
||||||
{{:assign var="mvt_new.amount" value=$_POST.amount}}
|
|
||||||
|
|
||||||
{{*
|
|
||||||
lister les mouvements
|
|
||||||
- insérer le nouveau mvt à sa place par date croissante
|
|
||||||
*}}
|
|
||||||
{{:assign insere=false}}
|
|
||||||
{{#load
|
|
||||||
where="
|
|
||||||
$$.type = 'movement'
|
|
||||||
AND
|
|
||||||
$$.equipment = :eqpmt_key"
|
|
||||||
:eqpmt_key=$equipment.key
|
|
||||||
order="$$.date"
|
|
||||||
assign="movement"
|
|
||||||
}}
|
|
||||||
{{if! $insere}}
|
|
||||||
{{if
|
|
||||||
$mvt_new.direction == "input" && $date >= $mvt_new.date ||
|
|
||||||
$mvt_new.direction == "output" && $date > $mvt_new.date
|
|
||||||
}}
|
|
||||||
{{:assign var="movements_new." from=mvt_new}}
|
|
||||||
{{:assign insere=true}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
{{:assign var="movements_new." from=movement}}
|
|
||||||
{{/load}}
|
|
||||||
{{if ! $insere}}
|
|
||||||
{{:assign var="movements_new." from=mvt_new}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* Vérifier la cohérence des mouvements du matériel *}}
|
|
||||||
{{:include
|
|
||||||
file="../valider_modification.html"
|
|
||||||
keep="erreur, pb"
|
|
||||||
movements=$movements_new
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{if $erreur}}
|
|
||||||
<p class="block error">Impossible d'enregistrer ce mouvement.
|
|
||||||
{{if $pb.mvt.key != $mvt_new.key}}
|
|
||||||
{{:assign var="err_mvt_label" from="config.input_nature.%s.label"|args:$pb.mvt.operation}}
|
|
||||||
<br />Mouvement incompatible avec
|
|
||||||
« {{$err_mvt_label}} de {{$equipment.name}} (qté : {{$pb.mvt.amount}})
|
|
||||||
en date du {{$pb.mvt.date|date_short}} ».
|
|
||||||
{{/if}}
|
|
||||||
</p>
|
|
||||||
{{else}}
|
|
||||||
{{* vérification réussie : enregistrer le mouvement modifié *}}
|
|
||||||
{{:save
|
|
||||||
key=""|uuid
|
|
||||||
validate_schema="../movement.schema.json"
|
|
||||||
type="movement"
|
|
||||||
direction="input"
|
|
||||||
operation=$_POST.operation
|
|
||||||
amount=$_POST.amount|intval
|
|
||||||
equipment=$equipment.key
|
|
||||||
date=$_POST.date|parse_date
|
|
||||||
comment=$_POST.comment|trim
|
|
||||||
}}
|
|
||||||
{{:redirect force="../../historique.html?ok=1&key=%s&prop=1&msg=retour"|args:$_GET.key}}
|
|
||||||
{{/if}}
|
|
||||||
{{/form}}
|
|
||||||
|
|
||||||
{{:admin_header title="Retour de matériel" custom_css="./../../style.css" current="module_equipment"}}
|
|
||||||
{{:form_errors}}
|
|
||||||
|
|
||||||
{{* Extraire et compiler les infos de la base *}}
|
|
||||||
{{:include file="../../_calcul_dispo.html" eqpmt_key=$_GET.key keep="categories, equipments"}}
|
|
||||||
{{:assign var=sorti from="equipments.%s.exterieur"|args:$_GET.key}}
|
|
||||||
|
|
||||||
{{* types d'entrées *}}
|
|
||||||
{{#foreach from=$config.input_nature key=key}}
|
|
||||||
{{if $type == 'retour'}}
|
|
||||||
{{:assign var="input_labels.%s"|args:$key value=$label}}
|
|
||||||
{{/if}}
|
|
||||||
{{/foreach}}
|
|
||||||
|
|
||||||
|
|
||||||
{{if $sorti > 0}}
|
|
||||||
{{:assign var=cat_name from=categories.%s|args:$equipment.category}}
|
|
||||||
{{* formulaire d'entrée de matériel *}}
|
|
||||||
<form method="post" action="">
|
|
||||||
<fieldset class="informations">
|
|
||||||
<legend>Informations matériel</legend>
|
|
||||||
<dl class="describe">
|
|
||||||
<dt>Matériel</dt>
|
|
||||||
<dd>{{$equipment.name}}</dd>
|
|
||||||
<dt>Catégorie</dt>
|
|
||||||
<dd>{{$cat_name}}</dd>
|
|
||||||
<dt>Quantité sortie</dt>
|
|
||||||
<dd>{{$sorti}} <span class="help">(à la date du {{$now|date_short}})</span></dd>
|
|
||||||
</dl>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="entree">
|
|
||||||
<legend>Ajouter un retour de matériel</legend>
|
|
||||||
<dl>
|
|
||||||
{{:input type="select" name="operation" label="Type" required=true options=$input_labels|sort}}
|
|
||||||
{{:input type="date" name="date" label="Date" required=true default=$now|date_short}}
|
|
||||||
{{:input type="number" name="amount" label="Quantité" min=1 required=true default=$sorti max=$sorti}}
|
|
||||||
{{:input type="textarea" name="comment" label="Remarques" cols="40", rows="3" required=false}}
|
|
||||||
</dl>
|
|
||||||
</fieldset>
|
|
||||||
<p class="submit">
|
|
||||||
{{:button type="submit" name="save" label="Enregistrer" shape="right" class="main"}}
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
{{else}}
|
|
||||||
<p class="block error">Il n'y a aucun matériel</p>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:admin_footer}}
|
|
@ -33,7 +33,7 @@
|
|||||||
{{#select
|
{{#select
|
||||||
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS present
|
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS present
|
||||||
FROM module_data_equipment AS mvt
|
FROM module_data_equipment AS mvt
|
||||||
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.input')
|
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.temp_key')
|
||||||
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
||||||
WHERE
|
WHERE
|
||||||
json_extract(mvt.document, '$.operation') IN !op
|
json_extract(mvt.document, '$.operation') IN !op
|
||||||
@ -133,7 +133,8 @@
|
|||||||
key=""|uuid
|
key=""|uuid
|
||||||
validate_schema="link.schema.json"
|
validate_schema="link.schema.json"
|
||||||
type="link"
|
type="link"
|
||||||
input=$_GET.key
|
direction="input"
|
||||||
|
temp_key=$_GET.key
|
||||||
return=$mvt_key
|
return=$mvt_key
|
||||||
}}
|
}}
|
||||||
{{:redirect force="../historique.html?ok=1&key=%s&prop=0&msg=retour"|args:$mvt_new.equipment}}
|
{{:redirect force="../historique.html?ok=1&key=%s&prop=0&msg=retour"|args:$mvt_new.equipment}}
|
||||||
|
@ -6,18 +6,18 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["link"]
|
"enum": ["link"]
|
||||||
},
|
},
|
||||||
"input" : {
|
"direction" : {
|
||||||
"description": "clé d'une entrée temporaire",
|
"type" : "string",
|
||||||
"type": "string"
|
"enum" : ["input", "output"]
|
||||||
},
|
},
|
||||||
"output" : {
|
"temp_key" : {
|
||||||
"description": "clé d'une sortie temporaire",
|
"description": "clé d'une entrée ou sortie temporaire",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"return": {
|
"return": {
|
||||||
"description": "clé d'un retour",
|
"description": "clé du retour associé",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["type", "return"]
|
"required": ["type", "direction", "temp_key", "return"]
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{*
|
{{*
|
||||||
Enregistrer un retour de sortie temporaire
|
Enregistrer un retour de sortie temporaire
|
||||||
paramètres :
|
paramètres :
|
||||||
- key : clé du mouvement
|
- key : clé de la sortie temporaire
|
||||||
*}}
|
*}}
|
||||||
|
|
||||||
{{* infos du mouvement *}}
|
{{* infos du mouvement *}}
|
||||||
@ -33,7 +33,7 @@
|
|||||||
{{#select
|
{{#select
|
||||||
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS exterieur
|
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS exterieur
|
||||||
FROM module_data_equipment AS mvt
|
FROM module_data_equipment AS mvt
|
||||||
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.output')
|
LEFT JOIN module_data_equipment AS link ON mvt.key = json_extract(link.document, '$.temp_key')
|
||||||
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
LEFT JOIN module_data_equipment AS mvt2 ON mvt2.key = json_extract(link.document, '$.return')
|
||||||
WHERE
|
WHERE
|
||||||
json_extract(mvt.document, '$.operation') IN !op
|
json_extract(mvt.document, '$.operation') IN !op
|
||||||
@ -133,7 +133,8 @@
|
|||||||
key=""|uuid
|
key=""|uuid
|
||||||
validate_schema="link.schema.json"
|
validate_schema="link.schema.json"
|
||||||
type="link"
|
type="link"
|
||||||
output=$_GET.key
|
direction="output"
|
||||||
|
temp_key=$_GET.key
|
||||||
return=$mvt_key
|
return=$mvt_key
|
||||||
}}
|
}}
|
||||||
{{:redirect force="../historique.html?ok=1&key=%s&prop=1&msg=retour"|args:$mvt_new.equipment}}
|
{{:redirect force="../historique.html?ok=1&key=%s&prop=1&msg=retour"|args:$mvt_new.equipment}}
|
||||||
|
@ -1,149 +0,0 @@
|
|||||||
{{* -*- brindille -*- *}}
|
|
||||||
|
|
||||||
{{*
|
|
||||||
paramètres :
|
|
||||||
- key : clé du matériel à rendre
|
|
||||||
*}}
|
|
||||||
|
|
||||||
{{if ! $dialog}}
|
|
||||||
{{* barre de navigation *}}
|
|
||||||
{{:include file="../../_nav.html" current="sorties"}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* récupérer la config des entrées/sorties *}}
|
|
||||||
{{:include file="../../_get_config.html" keep="config"}}
|
|
||||||
|
|
||||||
{{* types de sorties *}}
|
|
||||||
{{#foreach from=$config.output_nature key=key}}
|
|
||||||
{{if $type == 'retour'}}
|
|
||||||
{{:assign var="output_labels.%s"|args:$key value=$label}}
|
|
||||||
{{/if}}
|
|
||||||
{{/foreach}}
|
|
||||||
|
|
||||||
{{* Traiter l'envoi du formulaire *}}
|
|
||||||
{{#form on="save"}}
|
|
||||||
{{* interdire date dans le futur *}}
|
|
||||||
{{if $_POST.date|parse_date|strtotime > $now}}
|
|
||||||
{{:error message="Impossible de saisir une date dans le futur (%s)"|args:$_POST.date}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* récupérer les infos du matériel *}}
|
|
||||||
{{#load type="equipment" key=$_GET.key assign="equipment"}}
|
|
||||||
{{/load}}
|
|
||||||
|
|
||||||
{{:assign stock=0}}
|
|
||||||
{{:assign exterieur=0}}
|
|
||||||
{{:assign nonproprio=0}}
|
|
||||||
{{:assign insere=false}}
|
|
||||||
|
|
||||||
{{* lister tous les mouvements du matériel *}}
|
|
||||||
{{#load type="movement" where="$$.equipment = '%s'"|args:$_GET.key assign="mvt" order="$$.date ASC"}}
|
|
||||||
|
|
||||||
{{* traiter le nouveau mouvement *}}
|
|
||||||
{{if ! $insere && $mvt.date > $_POST.date|parse_date}}
|
|
||||||
{{:assign insere=true}}
|
|
||||||
{{:assign dispo_old=$nonproprio}}
|
|
||||||
{{:assign nonproprio="%d-%d"|math:$nonproprio:$_POST.quantite}}
|
|
||||||
|
|
||||||
{{if $nonproprio < 0}}
|
|
||||||
{{:assign date_err=$_POST.date|date:"d/m/Y"}}
|
|
||||||
{{:error message="Erreur : la quantité indiquée (%s) est supérieure à celle disponible (%d) à la date du %s"|args:$_POST.quantite:$dispo_old:$date_err}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* traiter le mouvement courant *}}
|
|
||||||
{{:assign var="type_mvt" from="config.%s_nature.%s.type"|args:$mvt.direction:$mvt.operation}}
|
|
||||||
|
|
||||||
{{if $mvt.direction === 'input'}}
|
|
||||||
{{if $type_mvt == 'définitif'}}
|
|
||||||
{{:assign stock="%d+%d"|math:$stock:$mvt.amount}}
|
|
||||||
{{elseif $type_mvt == 'retour'}}
|
|
||||||
{{:assign exterieur="%d-%d"|math:$exterieur:$mvt.amount}}
|
|
||||||
{{elseif $type_mvt == 'temporaire'}}
|
|
||||||
{{:assign nonproprio="%d+%d"|math:$nonproprio:$mvt.amount}}
|
|
||||||
{{/if}}
|
|
||||||
{{elseif $mvt.direction === 'output'}}
|
|
||||||
{{if $type_mvt == 'définitif'}}
|
|
||||||
{{:assign stock="%d-%d"|math:$stock:$mvt.amount}}
|
|
||||||
{{elseif $type_mvt == 'temporaire'}}
|
|
||||||
{{:assign exterieur="%d+%d"|math:$exterieur:$mvt.amount}}
|
|
||||||
{{elseif $type_mvt == 'retour'}}
|
|
||||||
{{:assign nonproprio="%d-%d"|math:$nonproprio:$mvt.amount}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:assign dispo="%d-%d"|math:$stock:$exterieur}}
|
|
||||||
|
|
||||||
{{if $dispo < 0 || $stock < 0 || $exterieur < 0 || $nonproprio < 0}}
|
|
||||||
{{:assign date_err=$mvt.date|date:"d/m/Y"}}
|
|
||||||
{{:error message="Erreur : la quantité indiquée (%s) est incompatible avec la sortie de %s unités à la date du %s"|args:$_POST.quantite:$mvt.amount:$date_err}}
|
|
||||||
{{/if}}
|
|
||||||
{{/load}}
|
|
||||||
{{if ! $insere}}
|
|
||||||
{{:assign dispo_old=$nonproprio}}
|
|
||||||
{{:assign nonproprio="%d-%d"|math:$nonproprio:$_POST.quantite}}
|
|
||||||
{{if $nonproprio < 0}}
|
|
||||||
{{:assign date_err=$_POST.date|date:"d/m/Y"}}
|
|
||||||
{{:error message="Erreur : la quantité indiquée (%s) est supérieure à celle disponible (%d) à la date du %s"|args:$_POST.quantite:$dispo_old:$date_err}}
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* Enregistrer le mouvement *}}
|
|
||||||
{{:assign mvt_key=""|uuid}}
|
|
||||||
{{:save
|
|
||||||
key=$mvt_key
|
|
||||||
validate_schema="../movement.schema.json"
|
|
||||||
type="movement"
|
|
||||||
direction="output"
|
|
||||||
operation=$_POST.operation
|
|
||||||
amount=$_POST.quantite|intval
|
|
||||||
equipment=$equipment.key
|
|
||||||
date=$_POST.date|parse_date
|
|
||||||
comment=$_POST.remarques|trim
|
|
||||||
}}
|
|
||||||
{{:redirect force="../../historique.html?ok=1&key=%s&prop=0&msg=sortie"|args:$_GET.key}}
|
|
||||||
{{/form}}
|
|
||||||
|
|
||||||
{{:admin_header title="Sortie de matériel" custom_css="./../../style.css" current="module_equipment"}}
|
|
||||||
{{:form_errors}}
|
|
||||||
|
|
||||||
{{* Extraire et compiler les infos de la base *}}
|
|
||||||
{{:include file="../../_calcul_dispo.html" eqpmt_key=$_GET.key keep="categories,equipments"}}
|
|
||||||
{{:assign var=present from="equipments.%s.nonproprio"|args:$_GET.key}}
|
|
||||||
|
|
||||||
{{if $present > 0}}
|
|
||||||
{{* déterminer le matériel concerné par le mouvement *}}
|
|
||||||
{{#load key=$_GET.key assign="equipment"}}{{/load}}
|
|
||||||
{{:assign var=cat_name from=categories.%s|args:$equipment.category}}
|
|
||||||
|
|
||||||
{{* formulaire de sortie de matériel *}}
|
|
||||||
<form method="post" action="">
|
|
||||||
<fieldset class="informations">
|
|
||||||
<legend>Informations matériel</legend>
|
|
||||||
<dl class="describe">
|
|
||||||
<dt>Matériel</dt>
|
|
||||||
<dd>{{$equipment.name}}</dd>
|
|
||||||
<dt>Catégorie</dt>
|
|
||||||
<dd>{{$cat_name}}</dd>
|
|
||||||
<dt>Quantité présente</dt>
|
|
||||||
<dd>{{$present}}</dd>
|
|
||||||
</dl>
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="sortie">
|
|
||||||
<legend>Ajouter une sortie d'un matériel présent temporairement</legend>
|
|
||||||
<dl>
|
|
||||||
{{:input type="select" name="operation" label="Type" required=true options=$output_labels|sort}}
|
|
||||||
{{:input type="date" name="date" label="Date de sortie" required=true default=$now|date_short}}
|
|
||||||
{{:input type="number" name="quantite" label="Quantité" required=true default=$present min=1 max=$present}}
|
|
||||||
{{:input type="textarea" name="remarques" label="Remarques" cols="40" rows="3" required=false}}
|
|
||||||
</dl>
|
|
||||||
</fieldset>
|
|
||||||
<p class="submit">
|
|
||||||
{{:button type="submit" name="save" label="Enregistrer" shape="right" class="main"}}
|
|
||||||
</p>
|
|
||||||
</form>
|
|
||||||
{{else}}
|
|
||||||
<p class="block error">Il n'y a aucun matériel en stock</p>
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{:admin_footer}}
|
|
@ -26,7 +26,7 @@
|
|||||||
{{:assign var="type_operation" from="config.input_nature.%s.type"|args:$mvt_suppr.operation}}
|
{{:assign var="type_operation" from="config.input_nature.%s.type"|args:$mvt_suppr.operation}}
|
||||||
|
|
||||||
{{if $type_operation == 'temporaire'}}
|
{{if $type_operation == 'temporaire'}}
|
||||||
{{#load type="link" where="$$.input = :key OR $$.return = :key" :key=$_GET.key}}
|
{{#load type="link" where="$$.temp_key = :key OR $$.return = :key" :key=$_GET.key}}
|
||||||
{{:assign link_key=$key}}
|
{{:assign link_key=$key}}
|
||||||
{{/load}}
|
{{/load}}
|
||||||
{{if $link_key != null}}
|
{{if $link_key != null}}
|
||||||
@ -75,7 +75,7 @@
|
|||||||
{{:assign var="type_operation" from="config.output_nature.%s.type"|args:$mvt_suppr.operation}}
|
{{:assign var="type_operation" from="config.output_nature.%s.type"|args:$mvt_suppr.operation}}
|
||||||
|
|
||||||
{{if $type_operation == 'temporaire'}}
|
{{if $type_operation == 'temporaire'}}
|
||||||
{{#load type="link" where="$$.output = :key OR $$.return = :key" :key=$_GET.key}}
|
{{#load type="link" where="$$.temp_key = :key OR $$.return = :key" :key=$_GET.key}}
|
||||||
{{:assign link_key=$key}}
|
{{:assign link_key=$key}}
|
||||||
{{/load}}
|
{{/load}}
|
||||||
{{if $link_key != null}}
|
{{if $link_key != null}}
|
||||||
|
Loading…
Reference in New Issue
Block a user