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

@ -126,7 +126,12 @@
"" as 'Stock';
"" as 'Sorti';
"" as 'Disponible';
$$.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
equipment=$equipment_key
order=1
}}
@ -148,6 +153,7 @@
<td class="num nosort">{{$exterieur}}</td>
<td class="num nosort">{{$dispo}}</td>
<td>{{$comment}}</td>
<td>{{:link href="/admin/users/details.php?id=%s"|args:$user label="%s"|args:$col9}}</td>
<td class="actions">
{{if $current != "archives"}}
{{:linkbutton