42 lines
1011 B
HTML
42 lines
1011 B
HTML
|
{{* -*- brindille -*- *}}
|
||
|
|
||
|
{{*
|
||
|
Afficher l'historique de tous les mouvements
|
||
|
*}}
|
||
|
|
||
|
|
||
|
{{:admin_header title="Gestion des matériels" current="module_equipment"}}
|
||
|
|
||
|
{{:include file="./_nav.html" current="historique"}}
|
||
|
|
||
|
{{* récupérer la config des entrées/sorties *}}
|
||
|
{{:include file="./_get_config.html" keep="config"}}
|
||
|
|
||
|
{{* lister tous les mouvements *}}
|
||
|
{{#list
|
||
|
type="movement"
|
||
|
select="$$.date AS 'Date';
|
||
|
CASE $$.direction WHEN 'input' THEN 'Entrée' WHEN 'output' THEN 'Sortie' END AS 'Mouvement';
|
||
|
$$.operation AS 'Opération';
|
||
|
(SELECT $$.name
|
||
|
FROM @TABLE AS b
|
||
|
WHERE b.key = @TABLE.$$.equipment) AS 'Matériel' ;
|
||
|
$$.amount AS 'Quantité';
|
||
|
$$.comment AS 'Commentaire'"
|
||
|
order=1
|
||
|
desc=true
|
||
|
}}
|
||
|
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$direction:$operation}}
|
||
|
<tr>
|
||
|
<td>{{$date|date_short}}</td>
|
||
|
<td>{{$col2}}</td>
|
||
|
<td>{{$op_label}}</td>
|
||
|
<td>{{$col4}}</td>
|
||
|
<td class="num">{{$amount}}</td>
|
||
|
<td>{{$comment}}</td>
|
||
|
<td></td>
|
||
|
</tr>
|
||
|
{{/list}}
|
||
|
|
||
|
{{:admin_footer}}
|