calcul dispo : ajout condition date manquante
This commit is contained in:
parent
7575cc8a71
commit
c1b9aa25c2
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user