simplification affichage inventaire

This commit is contained in:
Jean-Christophe Engel 2024-12-02 09:32:20 +01:00
parent 56b11a0edf
commit 3e3ae7b033
2 changed files with 16 additions and 20 deletions

View File

@ -42,19 +42,18 @@
{{#list {{#list
select=" select="
$$.date AS 'Date' ; (SELECT $$.designation
(SELECT $$.designation FROM @TABLE AS b
FROM @TABLE AS b WHERE b.key = @TABLE.$$.equipment) AS 'Matériel' ;
WHERE b.key = @TABLE.$$.equipment) AS 'Matériel' ; "" as 'Catégorie' ;
"" as 'Catégorie' ; "" AS 'Stock' ;
"" AS 'Stock' ; "" AS 'Sorti' ;
"" AS 'Sorti' ; "" AS 'Dispo'
"" AS 'Dispo'
" "
type="movement" type="movement"
group="$$.equipment" group="$$.equipment"
direction="input" direction="input"
order=2 order=1
}} }}
{{:assign var=cat_key from="equipments.%s.category"|args:$equipment}} {{:assign var=cat_key from="equipments.%s.category"|args:$equipment}}
@ -72,8 +71,7 @@
{{/if}} {{/if}}
<tr> <tr>
<td>{{$date|date_short}}</td> <td>{{$col1}}</td>
<td>{{$col2}}</td>
<td>{{$cat_name}}</td> <td>{{$cat_name}}</td>
<td>{{$stock}}</td> <td>{{$stock}}</td>
<td>{{if $exterieur == null}}0{{else}}{{$exterieur}}{{/if}}</td> <td>{{if $exterieur == null}}0{{else}}{{$exterieur}}{{/if}}</td>

View File

@ -42,17 +42,16 @@
{{#list {{#list
select=" select="
$$.date AS 'Date' ; (SELECT $$.designation
(SELECT $$.designation FROM @TABLE AS b
FROM @TABLE AS b WHERE b.key = @TABLE.$$.equipment) AS 'Matériel' ;
WHERE b.key = @TABLE.$$.equipment) AS 'Matériel' ; "" as 'Catégorie' ;
"" as 'Catégorie' ; "" AS 'Quantité'
"" AS 'Quantité'
" "
type="movement" type="movement"
group="$$.equipment" group="$$.equipment"
direction="input" direction="input"
order=2 order=1
}} }}
{{:assign var=cat_key from="equipments.%s.category"|args:$equipment}} {{:assign var=cat_key from="equipments.%s.category"|args:$equipment}}
@ -67,8 +66,7 @@
{{:continue}} {{:continue}}
{{/if}} {{/if}}
<tr> <tr>
<td>{{$date|date_short}}</td> <td>{{$col1}}</td>
<td>{{$col2}}</td>
<td>{{$cat_name}}</td> <td>{{$cat_name}}</td>
<td>{{$qte}}</td> <td>{{$qte}}</td>
<td class="actions"> <td class="actions">