bebeboutik/modules/lapostews/print_summary.tpl

193 lines
4.3 KiB
Smarty
Raw Normal View History

2016-01-04 12:49:26 +01:00
<html>
<head>
<style type="text/css">{literal}
body {
margin: 0px;
padding: 0px;
font-family: sans-serif;
font-size: 11px;
line-height: 16px;
}
table {
border-collapse: collapse;
width: 100%;
}
td {
vertical-align: top;
}
thead th, .bar {
background: #cccccc;
text-align: left;
font-weight: normal;
}
thead th, tbody td {
padding: 2px 4px;
}
.right {
text-align: right;
}
.strong {
font-weight: bold;
}
.width1 {
width: 100px;
}
.width0 {
width: 20px;
}
.border td {
width: 250px;
border: 1px solid #000000;
padding: 10px;
}
{/literal}</style>
</head>
<body>
{literal}
<!--mpdf
<htmlpagefooter name="myfooter">
<div style="text-align: right;">
Page {PAGENO}/{nb}
</div>
</htmlpagefooter>
<sethtmlpagefooter name="myfooter" value="on" />
mpdf-->
{/literal}
<table>
<tr>
<td>SITE DE PRISE EN CHARGE : {$site_code}</td>
<td class="right strong">BORDEREAU DE REMISE Offre Entreprises So Colissimo</td>
</tr>
<tr>
<td colspan="2">LIBELLE SITE DE PRISE EN CHARGE : {$site}</td>
</tr>
</table>
<table>
<tr>
<td class="width1">N° CLIENT</td><td class="width0">:</td><td>{$contract}</td>
<td class="right">EDITE LE {$date}</td>
</tr>
<tr>
<td class="width1">LIBELLE CLIENT</td><td class="width0">:</td>
<td colspan="2">{foreach $sender_lines as $line}{$line}<br />{/foreach}
{$sender_postal} {$sender_city}<br /><br /><br /><br /></td>
</tr>
<tr>
<td class="width1">N° BORDEREAU</td><td class="width0">:</td><td colspan="2">{$summary_number} du {$date}</td>
</tr>
<tr>
<td class="strong" colspan="3"><br />{$title} - Compte de facturation : {$contract}</td>
</tr>
</table>
{assign var=i value=1}
<table>
<thead>
<tr>
<th>Ref exped</th><th>Adresse destinataire</th><th>N° colis</th><th>CPOST</th><th>CPAYS</th><th>Poids</th><th>N</th><th>CRBT</th><th>VA</th>
</th>
</thead>
<tfoot>
<tr><td class="bar" colspan="9"></td></tr>
<tr>
<td colspan="9">
<br />
NOMBRE DES COLIS DE LA PAGE : {if $count_orders <= 46}
{$count_orders}
{else}
46
{/if}
<br />
POIDS DES COLIS DE LA PAGE : {if $count_orders <= 46}
{$total_weight|number_format:2:',':''}
{else}
{(0.24*46)|number_format:2:',':''}
{/if} KG<br />
TOTAL CRBT DE LA PAGE : 0,00 EUR<br />
</td>
</tr>
</tfoot>
<tbody>
{foreach $orders as $order name=orders}
<tr>
<td>EXP{$order.id_order}</td>
<td>{$order.lastname|cat:' - '|cat:$order.address1|truncate:60:''}</td>
<td>{$order.shipping_number}</td>
<td>{$order.postcode}</td>
<td>FR</td>
<td>0,24</td>
<td>0</td>
<td>000.00</td>
<td>00</td>
</tr>
{if $smarty.foreach.orders.iteration % 46 == 0 && $smarty.foreach.orders.iteration != $smarty.foreach.orders.total}
{assign var=i value=$i+1}
</tbody>
</table>
<formfeed />
<table>
<thead>
<tr>
<th>Ref exped</th><th>Adresse destinataire</th><th>N° colis</th><th>CPOST</th><th>CPAYS</th><th>Poids</th><th>N</th><th>CRBT</th><th>VA</th>
</th>
</thead>
<tfoot>
<tr><td class="bar" colspan="9"></td></tr>
<tr>
<td colspan="9">
<br />
NOMBRE DES COLIS DE LA PAGE : {if $smarty.foreach.orders.iteration + 46 > $smarty.foreach.orders.total}
{$smarty.foreach.orders.total - $smarty.foreach.orders.iteration}
{else}
46
{/if}<br />
POIDS DES COLIS DE LA PAGE : {if $smarty.foreach.orders.iteration + 46 > $smarty.foreach.orders.total}
{(($smarty.foreach.orders.total - $smarty.foreach.orders.iteration)*0.24)|number_format:2:',':''}
{else}
{(46*0.24)|number_format:2:',':''}
{/if} KG<br />
TOTAL CRBT DE LA PAGE : 0,00 EUR<br />
</td>
</tr>
</tfoot>
<tbody>
{/if}
{/foreach}
</tbody>
</table>
<br /><br /><br />
<table>
<tr>
<td>
<br /><br />
NOMBRE TOTAL DE COLIS : {$count_orders}<br />
POIDS TOTAL DE COLIS : {$total_weight|number_format:2:',':''} KG<br />
TOTAL CRBT : 0,00 EUR<br />
<br />
Nombre de pages : {literal} <!--mpdf {nb} mpdf--> {/literal}
</td>
<td class="right">
<table class="border"><tr><td>
SIGNATURE DE L'AGENT (*)<br />
<br /><br /><br /><br />
DATE<br /><br />
</td></tr></table>
<br /><br /><br />
* Cette signature ne vaut pas validation des données indiquées par le client
</td>
</tr>
</table>
</body>
</html>