Correction bug affichage matériel à l'extérieur
This commit is contained in:
parent
2bf414fcf3
commit
3b4687647d
@ -47,14 +47,19 @@
|
|||||||
|
|
||||||
{{* itérer sur les matériels de la catégorie *}}
|
{{* itérer sur les matériels de la catégorie *}}
|
||||||
{{#foreach from=$cat_elem.eqpmt key="eqpmt_key" item="eqpmt"}}
|
{{#foreach from=$cat_elem.eqpmt key="eqpmt_key" item="eqpmt"}}
|
||||||
|
|
||||||
{{:assign keys=$eqpmt|keys}}
|
{{:assign keys=$eqpmt|keys}}
|
||||||
{{if "stock"|in:$keys && $eqpmt.stock !== 0}}
|
{{if "stock"|in:$keys && $eqpmt.stock !== 0}}
|
||||||
{{:assign dispo="%d-%d"|math:$eqpmt.stock:$eqpmt.exterieur}}
|
{{if "exterieur"|in:$keys}}
|
||||||
|
{{:assign dispo="%d-%d"|math:$eqpmt.stock:$eqpmt.exterieur}}
|
||||||
|
{{:assign exterieur=$eqpmt.exterieur}}
|
||||||
|
{{else}}
|
||||||
|
{{:assign dispo=$eqpmt.stock}}
|
||||||
|
{{:assign exterieur=0}}
|
||||||
|
{{/if}}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$eqpmt.designation}}</td>
|
<td>{{$eqpmt.designation}}</td>
|
||||||
<td>{{$eqpmt.stock}}</td>
|
<td>{{$eqpmt.stock}}</td>
|
||||||
<td>{{if $eqpmt.exterieur == null}}0{{else}}{{$eqpmt.exterieur}}{{/if}}</td>
|
<td>{{$exterieur}}</td>
|
||||||
<td>{{$dispo}}</td>
|
<td>{{$dispo}}</td>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
{{:linkbutton
|
{{:linkbutton
|
||||||
|
Loading…
Reference in New Issue
Block a user