::use 'design.mtt'::

::_("Global view of orders - delivery of"):: ::hDate(date)::


::foreach o orders:: ::set total = 0:: ::foreach m o.orders:: ::end::

::o.contract.name:: - ::o.contract._vendor.name::

::_("Quantities"):: ::_("Product"):: ::_("Reference"):: ::_("Unit price incl. VAT"):: ::_("Total")::
::m.quantity:: ::m.pname:: $$nullSafe(::m.ref::) ::formatNum(m.priceTTC):: ::currency():: ::formatNum(m.totalTTC):: ::currency():: ::set total = total + m.totalTTC::
Total ::formatNum(total):: ::currency()::
::end::
::end::