diff --git a/inventaire.html b/inventaire.html index ddf779a..78bbc4f 100644 --- a/inventaire.html +++ b/inventaire.html @@ -52,7 +52,9 @@ {{#list select=" $$.name AS 'Matériel' ; - "" AS 'Catégorie' ; + (SELECT $$.name + FROM @TABLE as cat + WHERE cat.key = @TABLE.$$.category) AS "Catégorie" ; "" AS 'Stock' ; "" AS 'Sorti' ; "" AS 'Dispo' diff --git a/inventaire_nonprop.html b/inventaire_nonprop.html index f7b8f26..e09b172 100644 --- a/inventaire_nonprop.html +++ b/inventaire_nonprop.html @@ -52,7 +52,9 @@ {{#list select=" $$.name AS 'Matériel' ; - "" AS 'Catégorie' ; + (SELECT $$.name + FROM @TABLE as cat + WHERE cat.key = @TABLE.$$.category) AS "Catégorie" ; "" AS 'Quantité' " type="equipment"