You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

61 lines
1.4 KiB

::use 'design.mtt'::
<div class="col-md-12">
<div class="article">
<h2>::_("Global view of orders - delivery of"):: ::hDate(date)::</h2>
<hr/>
::foreach o orders::
::set total = 0::
<table class="table table-bordered table-hover table-striped" style="width:100%;">
<tr>
<th colspan="5">
<!--<div class="pull-right">$$export(::"/contractAdmin/ordersByProduct/"+o.contract.id+"?csv=1&d="+o.distrib.id::)</div>-->
<h4>::o.contract.name:: - ::o.contract._vendor.name::</h4>
</th>
</tr>
<tr>
<th>::_("Quantities")::</th>
<th>::_("Product")::</th>
<th>::_("Reference")::</th>
<th>::_("Unit price incl. VAT")::</th>
<th>::_("Total")::</th>
</tr>
::foreach m o.orders::
<tr>
<td class="col-md-1">
::m.quantity::
</td>
<td class="col-md-5">
::m.pname::
</td>
<td class="col-md-3">
$$nullSafe(::m.ref::)
</td>
<td class="col-md-2">
::formatNum(m.priceTTC)::&nbsp;::currency()::
</td>
<td class="col-md-2">
::formatNum(m.totalTTC)::&nbsp;::currency()::
::set total = total + m.totalTTC::
</td>
</tr>
::end::
<tr style="background:#DDD;">
<th colspan="4">Total</th>
<th>::formatNum(total)::&nbsp;::currency()::</th>
</tr>
</table>
::end::
</div>
</div>
::end::