mirror of
https://git.roflcopter.fr/lesanges/equipment.git
synced 2025-05-23 15:31:50 +02:00
calcul dispo : ajout condition date manquante
This commit is contained in:
parent
7575cc8a71
commit
c1b9aa25c2
1 changed files with 7 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue