modification schéma entrées/sorties temporaires liées

This commit is contained in:
Jean-Christophe Engel 2025-03-22 11:33:35 +01:00
parent 16d6ac752a
commit 3ba67d0c65
5 changed files with 18 additions and 16 deletions

View file

@ -33,7 +33,7 @@
{{#select
json_extract(mvt.document, '$.amount') - IFNULL(SUM(json_extract(mvt2.document, '$.amount')), 0) AS present
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')
WHERE
json_extract(mvt.document, '$.operation') IN !op
@ -133,7 +133,8 @@
key=""|uuid
validate_schema="link.schema.json"
type="link"
input=$_GET.key
direction="input"
temp_key=$_GET.key
return=$mvt_key
}}
{{:redirect force="../historique.html?ok=1&key=%s&prop=0&msg=retour"|args:$mvt_new.equipment}}