début traitement membre dépositaire

This commit is contained in:
Jean-Christophe Engel 2025-02-28 16:37:42 +01:00
parent 3ebcd07b23
commit ceb88fafda
6 changed files with 157 additions and 45 deletions

View file

@ -46,11 +46,15 @@
FROM @TABLE AS mat
WHERE mat.key = @TABLE.$$.equipment) AS 'Matériel' ;
$$.amount AS 'Quantité';
$$.comment AS 'Commentaire'"
$$.comment AS 'Commentaire';
CASE WHEN $$.user NOT NULL
THEN (SELECT %s AS nom FROM users WHERE id = $$.user)
ELSE ''
END as 'Dépositaire'
"|args:$config.user_fields.name_sql
order=1
desc=true
}}
}}
{{* filtrer selon la catégorie *}}
{{#load key=$equipment}}
{{:assign cat_key=$category}}
@ -67,6 +71,7 @@
<td>{{$col4}}</td>
<td class="num">{{$amount}}</td>
<td>{{$comment}}</td>
<td>{{:link href="/admin/users/details.php?id=%s"|args:$user label="%s"|args:$col7}}</td>
<td></td>
</tr>
{{/list}}