modification schéma entrées/sorties temporaires liées
This commit is contained in:
parent
16d6ac752a
commit
3ba67d0c65
5 changed files with 18 additions and 16 deletions
|
|
@ -3,7 +3,7 @@
|
|||
{{*
|
||||
Enregistrer un retour de sortie temporaire
|
||||
paramètres :
|
||||
- key : clé du mouvement
|
||||
- key : clé de la sortie temporaire
|
||||
*}}
|
||||
|
||||
{{* infos du mouvement *}}
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
{{#select
|
||||
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS exterieur
|
||||
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')
|
||||
WHERE
|
||||
json_extract(mvt.document, '$.operation') IN !op
|
||||
|
|
@ -133,7 +133,8 @@
|
|||
key=""|uuid
|
||||
validate_schema="link.schema.json"
|
||||
type="link"
|
||||
output=$_GET.key
|
||||
direction="output"
|
||||
temp_key=$_GET.key
|
||||
return=$mvt_key
|
||||
}}
|
||||
{{:redirect force="../historique.html?ok=1&key=%s&prop=1&msg=retour"|args:$mvt_new.equipment}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue