Simplification appels traitement commun

This commit is contained in:
Jean-Christophe Engel 2023-11-29 15:02:56 +01:00
parent 6330861130
commit c86154d1b3
3 changed files with 16 additions and 7 deletions

View File

@ -24,10 +24,13 @@
{{:assign designation=$equipment.designation}}
{{:assign var="categories." value=$equipment.category}}
{{/load}}
{{:assign date=$_POST.date|parse_date}}
{{* Extraire et compiler les infos de la base *}}
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
{{:include
file="/%s/_calcul_dispo.html"|args:$module.name
keep="equipments"
date=$_POST.date|parse_date
}}
{{* déterminer la quantité sortie temporairement de ce matriel à la date donnée *}}
{{:assign var=sorti from="equipments.%s.eqpmt.%s.exterieur"|args:$equipment.category:$_POST.equipment}}

View File

@ -24,10 +24,13 @@
{{:assign designation=$equipment.designation}}
{{:assign var="categories." value=$equipment.category}}
{{/load}}
{{:assign date=$_POST.date|parse_date}}
{{* Extraire et compiler les infos de la base *}}
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
{{:include
file="/%s/_calcul_dispo.html"|args:$module.name
keep="equipments"
date=$_POST.date|parse_date
}}
{{* déterminer la quantité présente de ce matériel à la date donnée *}}
{{:assign var=present from="equipments.%s.eqpmt.%s.nonproprio"|args:$equipment.category:$_POST.equipment}}
@ -57,7 +60,7 @@
{{/form}}
{{* Extraire et compiler les infos de la base *}}
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
{{* calculer les quantité de matériels dont l'asso n'est pas propriétaire *}}
{{#foreach from=$equipments key="cat_key" item="category"}}

View File

@ -24,10 +24,13 @@
{{:assign designation=$equipment.designation}}
{{:assign var="categories." value=$equipment.category}}
{{/load}}
{{:assign date=$_POST.date|parse_date}}
{{* Extraire et compiler les infos de la base *}}
{{:include file="/%s/_calcul_dispo.html"|args:$module.name keep="equipments"}}
{{:include
file="/%s/_calcul_dispo.html"|args:$module.name
keep="equipments"
date=$_POST.date|parse_date
}}
{{* déterminer la quantité disponible de ce matériel à la date donnée *}}
{{:assign var=stock from="equipments.%s.eqpmt.%s.stock"|args:$equipment.category:$_POST.equipment}}