::use 'contractadmin/design.mtt':: ::if u==null::

::_("Key-in an order")::

::else::

::_("Key-in an order for"):: ::u.getCoupleName()::

::end:: ::if distribution!=null::

::_("For the delivery of the"):: ::hDate(distribution.date)::

::end::
::if distribution!=null:: ::end:: ::if u==null ::
::end::
::if distribution==null::::end:: ::set total = 0:: ::foreach uo userOrders:: ::end:: ::set extra = 0:: ::if c.hasPercentageOnOrders():: ::set extra = total*(c.percentageValue/100):: ::end::
::_("Product"):: ::_("Price"):: ::_("Quantity"):: ::_("Status")::::_("Alternately with :")::
::if uo.product.active==false:: ::else:: ::end:: ::if uo.product.active==false:: ::uo.product.getName():: ::_("(inactive)"):: ::else:: ::uo.product.getName():: ::end:: ::formatNum(uo.product.price):: ::currency():: ::if uo.order==null:: ::set q = 0:: ::else:: ::set q = uo.order.quantity:: ::end:: ::set total = total+(q*uo.product.price)::
::_("Total order"):: ::total::::currency()::
::c.percentageName:: (::c.percentageValue::%)::extra::::currency()::
::_("Total"):: ::total+extra::::currency():: ::_("Check all")::
::end::