From 17052676dfc9de3b3bf2d1bdd71a9425f35f9162 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 20 Feb 2025 11:58:57 +0100 Subject: [PATCH] =?UTF-8?q?inventaire=20:=20ajout=20tri=20par=20cat=C3=A9g?= =?UTF-8?q?orie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inventaire.html | 4 +++- inventaire_nonprop.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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"