Compare commits
No commits in common. "main" and "v0.48" have entirely different histories.
@ -32,17 +32,6 @@
|
|||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{{* condition de filtrage *}}
|
|
||||||
{{if $_GET.cat_key != null}}
|
|
||||||
{{:assign condition="(SELECT key
|
|
||||||
FROM @TABLE AS cat
|
|
||||||
WHERE cat.key = (SELECT $$.category
|
|
||||||
FROM @TABLE AS mat
|
|
||||||
WHERE mat.key = @TABLE.$$.equipment)) = '%s'"|args:$_GET.cat_key}}
|
|
||||||
{{else}}
|
|
||||||
{{:assign condition=1}}
|
|
||||||
{{/if}}
|
|
||||||
|
|
||||||
{{* lister tous les mouvements *}}
|
{{* lister tous les mouvements *}}
|
||||||
{{#list
|
{{#list
|
||||||
type="movement"
|
type="movement"
|
||||||
@ -63,11 +52,17 @@
|
|||||||
END as 'Stockage';
|
END as 'Stockage';
|
||||||
$$.comment AS 'Commentaire'
|
$$.comment AS 'Commentaire'
|
||||||
"|args:$config.user_fields.name_sql
|
"|args:$config.user_fields.name_sql
|
||||||
where="%s"|args:$condition
|
|
||||||
order=1
|
order=1
|
||||||
max=50
|
|
||||||
desc=true
|
desc=true
|
||||||
}}
|
}}
|
||||||
|
{{* filtrer selon la catégorie *}}
|
||||||
|
{{#load key=$equipment}}
|
||||||
|
{{:assign cat_key=$category}}
|
||||||
|
{{/load}}
|
||||||
|
{{if $_GET.cat_key != null && $cat_key != $_GET.cat_key}}
|
||||||
|
{{:continue}}
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$direction:$operation}}
|
{{:assign var="op_label" from="config.%s_nature.%s.label"|args:$direction:$operation}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$date|date_short}}</td>
|
<td>{{$date|date_short}}</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user