::use 'design.mtt'::

::_("Global view of orders - from"):: ::hDate(from):: ::_("to"):: ::hDate(to)::

$$export(/contractAdmin/vendorsByTimeFrame/::from.toString().substr(0,10)::/::to.toString().substr(0,10)::?csv=1)

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

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

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