You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
2.4 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>::_("Attendance sheet")::</title>
<link href="/css/print.css" rel="stylesheet"/>
</head>
<body>
<h2>
::contract._amap.name:: -
::__("Distribution of the ::date::, from ::from:: to ::to::",{date:dDate(distrib.date),from:hHour(distrib.date),to:hHour(distrib.end)})::
</h2>
<h2>
::distrib._contract.name:: - ::distrib._contract._vendor.name::
</h2>
<p>
<span class="glyphicon glyphicon-map-marker"></span><b>::_("Place"):: : </b>
::distrib._place.toString()::, ::distrib._place.getAddress()::
</p>
<p>
::set c = contract._contact::
::set v = contract._vendor::
<b>::_("Contact in charge of the contract") :</b> ::c.firstName:: ::c.lastName::, ::c.email::, ::c.phone::
</p>
<p>
<b>::_("Farmer"):: : </b>
::v.name:: ,
::if v.email!=null :: ::v.email:: ::end::,
::if v.phone!=null :: ::v.phone:: ::end::
</p>
<p>
<b>::_("Members on duty"):: : </b>
::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::
</p>
<table class="table table-bordered table-hover" style="width:100%;">
<tr>
<th></th>
::foreach p products::
<th>
::p.name::<br/>
::p.ref::
</th>
::end::
<th>TOTAL</th>
</tr>
::foreach user users::
<tr>
<th>
::set basket = getBasket(user.id,distrib._place.id,distrib.date)::
<span ::cond basket!=null::>N°::basket.num:: - </span>
::user.getCoupleName()::
</th>
::foreach p products::
<td>
::set o = orders.get(user.id).get(p.id)::
::if(o!=null)::
::raw o.smartQt::
::end::
</td>
::end::
<th>::formatNum(totalByUser(user.id)):: ::currency()::</th>
</tr>
::end::
<tr>
<th>TOTAL</th>
::foreach p products::
<th>
::set q = totalByProduct(p.id)::
::if(p.qt!=null && (p.hasFloatQt || p.variablePrice) )::
::q * p.qt:: ::unit(p._unitType,false)::
::else::
::q::
::end::
</th>
::end::
</tr>
</table>
<p>::raw nl2br(distrib._contract._amap.txtDistrib)::</p>
<p class="hidden"><i>::_("Push on \"Control + P\" to print this page.")::</i></p>
</body>
</html>