calcul dispo : ajout condition date manquante

This commit is contained in:
Jean-Christophe Engel 2024-10-21 11:02:47 +02:00
parent 7575cc8a71
commit c1b9aa25c2
1 changed files with 7 additions and 1 deletions

View File

@ -37,7 +37,13 @@
{{:include file="./_get_config.html" keep="config"}}
{{* parcourir les mouvements et cumuler les entrées/sorties *}}
{{#load type="movement" where="$$.equipment IN %s"|args:$in_equipments assign="mvt"}}
{{if $date == null}}
{{:assign condition="$$.equipment IN %s"|args:$in_equipments}}
{{else}}
{{:assign condition="$$.equipment IN %s AND $$.date <= '%s'"|args:$in_equipments:$date}}
{{/if}}
{{#load type="movement" where="%s"|args:$condition assign="mvt" order="$$.date ASC"}}
{{* matériel propriété de l'asso en stock *}}
{{:assign
var="stock"