diff --git a/_nav.html b/_nav.html index 991e0b4..4e891d7 100644 --- a/_nav.html +++ b/_nav.html @@ -13,6 +13,7 @@
diff --git a/global_history.html b/global_history.html new file mode 100644 index 0000000..9a44889 --- /dev/null +++ b/global_history.html @@ -0,0 +1,41 @@ +{{* -*- 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}} +