code from amapei
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
::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):: ::currency()::
|
||||
</td>
|
||||
<td class="col-md-2">
|
||||
::formatNum(m.totalTTC):: ::currency()::
|
||||
::set total = total + m.totalTTC::
|
||||
</td>
|
||||
</tr>
|
||||
::end::
|
||||
|
||||
<tr style="background:#DDD;">
|
||||
<th colspan="4">Total</th>
|
||||
<th>::formatNum(total):: ::currency()::</th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
::end::
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
::end::
|
||||
Reference in New Issue
Block a user