::contract._amap.name:: - ::__("Distribution of the ::date::, from ::from:: to ::to::",{date:dDate(distrib.date),from:hHour(distrib.date),to:hHour(distrib.end)})::

::distrib._contract.name:: - ::distrib._contract._vendor.name::

::_("Place"):: : ::distrib._place.toString()::, ::distrib._place.getAddress()::

::set c = contract._contact:: ::set v = contract._vendor:: ::_("Contact in charge of the contract") : ::c.firstName:: ::c.lastName::, ::c.email::, ::c.phone::

::_("Farmer"):: : ::v.name:: , ::if v.email!=null :: ::v.email:: ::end::, ::if v.phone!=null :: ::v.phone:: ::end::

::_("Members on duty"):: : ::if distrib._distributor1!=null:: ::distrib._distributor1.getName()::, ::end:: ::if distrib._distributor2!=null:: ::distrib._distributor2.getName()::, ::end:: ::if distrib._distributor3!=null:: ::distrib._distributor3.getName()::, ::end:: ::if distrib._distributor4!=null:: ::distrib._distributor4.getName():: ::end::

::foreach p products:: ::end:: ::foreach user users:: ::foreach p products:: ::end:: ::end:: ::foreach p products:: ::end::
::p.name::
::p.ref::
TOTAL
::set basket = getBasket(user.id,distrib._place.id,distrib.date):: N°::basket.num:: - ::user.getCoupleName():: ::set o = orders.get(user.id).get(p.id):: ::if(o!=null):: ::raw o.smartQt:: ::end:: ::formatNum(totalByUser(user.id)):: ::currency()::
TOTAL ::set q = totalByProduct(p.id):: ::if(p.qt!=null && (p.hasFloatQt || p.variablePrice) ):: ::q * p.qt:: ::unit(p._unitType,false):: ::else:: ::q:: ::end::

::raw nl2br(distrib._contract._amap.txtDistrib)::