::_("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:: |
::p.name:: ::p.ref:: |
::end::
TOTAL |
---|---|---|
::set basket = getBasket(user.id,distrib._place.id,distrib.date):: N°::basket.num:: - ::user.getCoupleName():: | ::foreach p products::::set o = orders.get(user.id).get(p.id):: ::if(o!=null):: ::raw o.smartQt:: ::end:: | ::end::::formatNum(totalByUser(user.id)):: ::currency():: |
TOTAL | ::foreach p products::::set q = totalByProduct(p.id):: ::if(p.qt!=null && (p.hasFloatQt || p.variablePrice) ):: ::q * p.qt:: ::unit(p._unitType,false):: ::else:: ::q:: ::end:: | ::end::
::raw nl2br(distrib._contract._amap.txtDistrib)::
::_("Push on \"Control + P\" to print this page.")::