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.
 
 
 
 
 
 

178 lines
4.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>
<!-- page head-->
::fill head::
<td >
<h1 style='text-align:right;'>::user._amap.name::</h1>
<h2 style='text-align:right;'>::_("Delivery of the"):: ::hDate(date)::</h2>
</td>
::end::
<!-- table header -->
::fill tableHeader::
<tr>
<th>::_("Contract")::</th>
<th>::_("Qty")::</th>
<th>::_("Product")::</th>
<th>::_("U.P.")::</th>
<th>::_("Fees")::</th>
<th>::_("Total")::</th>
<th>::_("Signature")::</th>
</tr>
::end::
::set name = ""::
::set name2 = ""::
::set total = 0::
::set productNum = 0::
::set currentContract = ""::
::foreach m orders::
::if m.userName != name || m.userName2 != name2::
::if name != ""::
::raw "</table> <hr />"::
::end::
::raw "<table style='width:100%;'>" ::
<tr>
<td style='width:33%;'>
<b style="font-size:150%;">
::set basket = getBasket(m.userId,place.id,date)::
<span ::cond basket!=null::>N°::basket.num:: - </span>
::m.userName::
</b>
::set total = 0::
::set productNum = 0::
</td>
<td>
::set u = getUser(m.userId):
::if u!=null && u.phone!=null::
Tél: $$nullSafe(::u.phone::)
::end::
</td>
<td style='text-align:right;'>
<b>::user._amap.name::</b>
</td>
</tr>
<tr>
<td>
::if m.userName2 != null::
::_("alternately with")::<br/>
<b>::m.userName2::</b>
::set total = 0::
::set productNum = 0::
::end::
</td>
<td>
::if m.userName2 != null::
::set u = getUser(m.userId2):
::if u !=null::
$$nullSafe(::u.phone::)
::end::
::end::
</td>
<td style='text-align:right;'>
<b>::_("Delivery of the"):: ::hDate(date)::</b>
</td>
</tr>
::raw "</table>" ::
::raw "<table style='width:100%;'>"::
::raw tableHeader::
::end::
::if m.userName != name || m.userName2 != name2::
::set class="name"::
::set currentContract = ""::
::else::
::set class=""::
::end::
<tr class="::class::">
::if currentContract != short(m.contractName,40) ::
::if currentContract == "" ::
::set td_style="font-size:" + fontRatio + "%" ::
::else::
::set td_style="font-size:" + fontRatio + "%;border-top: 2px solid #AAA;" ::
::end::
<td style="::td_style::" >
::short(m.contractName,40)::
</td>
::set currentContract = short(m.contractName,40)::
::else::
<td> </td>
::end::
<td style="font-size: ::fontRatio::%;border-bottom: 2px solid #AAA;">
::if(m.quantity==0 && m.canceled)::
::_("Canceled")::
::else::
::raw m.smartQt::
::end::
::set productNum = productNum+m.quantity::
</td>
<td style="font-size: ::fontRatio::%;border-bottom: 2px solid #AAA;">
::m.productName::
</td>
<td>
::formatNum(m.productPrice)::&nbsp;::currency()::
</td>
<td>
::if m.fees!=null::
::formatNum(m.fees)::&nbsp;::currency()::
::end::
</td>
<td>
::formatNum(m.total)::&nbsp;::currency()::
::set total = total + m.total::
</td>
<td style="width:20%;"></td>
</tr>
::set name = m.userName ::
::set name2 = m.userName2 ::
<!--TOTAL-->
::set next = orders[repeat.m.index+1]::
::if next==null || next.userName!=name || next.userName2!=name2::
<tr>
<td style="border-top: 2px solid #AAA;"></td>
<td class="total">::formatNum(productNum)::</td>
<td class="total" colspan="2"></td>
<td class="total">::_("TOTAL")::</td>
<td class="total" style="font-size: ::fontRatio::%;">::formatNum(total)::&nbsp;::currency()::</td>
<td></td>
</tr>
::end::
::end::
<p>::raw nl2br(user.getAmap().txtDistrib)::</p>
<p class="hidden"><i>::_("Push on \"Control + P\" to print this page.")::</i></p>
<table class="" ::cond sqlLog::>
::foreach r sqlLog::
<tr ::attr class if(r.bad) 'badSql'::>
<td>::r.t::ms</td>
<td>::r.length::</td>
<td><a href="#" onclick="javascript:alert('::r.explain::');return false;">Exp</a></td>
<td><a href="#" onclick="javascript:alert('::r.stack::');return false;">Stack</a></td>
<td>::r.sql::</td>
</tr>
::end::
</table>
</body>
</html>