179 lines
6.5 KiB
HTML
179 lines
6.5 KiB
HTML
{$customer_id = $smarty.get.customer_id|default:0}
|
|
{$mois = $smarty.get.mois}
|
|
{$annee = $smarty.get.annee}
|
|
|
|
<style>
|
|
h1 {
|
|
margin: 0;
|
|
margin-bottom: 1mm;
|
|
font-weight: normal;
|
|
font-size: 18px;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 14px;
|
|
margin: 0;
|
|
font-weight: normal;
|
|
}
|
|
|
|
h2:last-child {
|
|
margin-bottom: 1mm;
|
|
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
}
|
|
|
|
.bordered th, .bordered td {
|
|
border: 1px solid #0e0e0e;
|
|
padding: 1mm;
|
|
}
|
|
|
|
th {
|
|
background-color: #e6e6e6;
|
|
}
|
|
|
|
tr.bold td {
|
|
font-weight: bold;
|
|
}
|
|
|
|
tr.small th, tr.small td {
|
|
font-size: 11px;
|
|
}
|
|
</style>
|
|
<page backtop="10mm" backleft="10mm" backright="10mm" backbottom="20mm">
|
|
<page_header>
|
|
</page_header>
|
|
|
|
<page_footer>
|
|
<table align="center" style="padding-bottom: 10mm;">
|
|
<col style="width: 80%; padding: 1mm; border: none; border-top: 1px solid #000; text-align: center;" />
|
|
<tbody>
|
|
<tr>
|
|
<td>auto-entrepreneur - SIREN 312 033 7</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</page_footer>
|
|
|
|
<table style="padding-bottom: 10mm">
|
|
<col style="width:50%; vertical-align: top">
|
|
<col style="width:50%; vertical-align: top">
|
|
|
|
<tr>
|
|
<td>
|
|
<h1>STERIVEIN</h1>
|
|
<h2>Dr MONFREUX Alain</h2>
|
|
<h2>14 rue du Clairon Pouget</h2>
|
|
<h2>31500 TOULOUSE</h2>
|
|
|
|
<p>Tel : 06.76.61.83.40 Fax : 05.61.58.01.39<br>
|
|
Internet : www.sterivein.com<br>
|
|
Email : dr.monfreux@sterivein.com<br>
|
|
RCS : 312 033 764 RCS Toulouse
|
|
</p>
|
|
</td>
|
|
<td>
|
|
<table align="right" class="bordered" style="width: 80%; padding-bottom:5mm">
|
|
<tr>
|
|
<td>RELEVÉ DE FACTURES</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table align="right" class="bordered" style="width: 80%;padding-bottom:15mm">
|
|
<col style="width:50%; text-align: center">
|
|
<col style="width:50%; text-align: center">
|
|
<tr>
|
|
<th>DATE</th>
|
|
<th>CLIENT</th>
|
|
</tr>
|
|
<tr>
|
|
<td>{$smarty.now|date_format:"%d/%m/%Y"}</td>
|
|
<td>{loop type="customer" name="cust" current=false id=$customer_id}{$REF}{/loop}</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<table align="left">
|
|
<tr>
|
|
<td style="text-align:left; width: 100%;font-weight:bold;font-size:14px;line-height:18px">
|
|
{loop type="customer" name="cust" current=false id=$customer_id}
|
|
{loop type="address" name="adr" customer=$ID default=true}
|
|
{if ! empty($COMPANY)}{$COMPANY}<br>{/if}
|
|
{loop type="title" name="order-invoice-address-title" id=$TITLE}{if $LONG != '-'}{$LONG}{/if}{/loop} {if $FIRSTNAME != '-'}{$FIRSTNAME}{/if} {if $LASTNAME != '-'}{$LASTNAME}<br />{/if}
|
|
{$ADDRESS1}<br>
|
|
{if $ADRESSE2}{$ADDRESS2}<br>{/if}
|
|
{if $ADRESSE3}<br>{$ADDRESS3}<br>{/if}
|
|
{$ZIPCODE} {$CITY}<br>
|
|
{loop type="country" name="country_delivery" id=$COUNTRY}{$TITLE}{/loop}
|
|
{/loop}
|
|
{/loop}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
{$total = 0}{capture name=data}{strip}
|
|
{loop type="order" name="commandes" customer=$customer_id exclude_status='5,6'}
|
|
{$cmd_mois = $CREATE_DATE|date_format:'%m'}
|
|
{$cmd_annee = $CREATE_DATE|date_format:'%Y'}
|
|
|
|
{if $cmd_annee == $annee && $cmd_mois == $mois}
|
|
{$total = $total + $TOTAL_TAXED_AMOUNT}
|
|
<tr class="small{if $STATUS > 1} bold{/if}">
|
|
<td>{format_date date=$CREATE_DATE output="date"}</td>
|
|
<td>{loop name="admin-comment" type="admin_comment" element_key="order" element_id={$ID}}{$COMMENT}{/loop}</td>
|
|
<td>{$INVOICE_REF|default:$REF}</td>
|
|
<td>{loop type="module" name="pay" id=$PAYMENT_MODULE}{$TITLE}{/loop}</td>
|
|
<td>
|
|
{loop type="rib-client" name="echeance" order_date=$CREATE_DATE|date_format:'%Y-%m-%d' customer_id=$customer_id}
|
|
{format_date date=$DATE_PAIEMENT output="date"}
|
|
{/loop}
|
|
{elseloop rel='echeance'}
|
|
{format_date date=$CREATE_DATE output="date"}
|
|
{/elseloop}
|
|
</td>
|
|
<td>{format_money number=$TOTAL_TAXED_AMOUNT}</td>
|
|
</tr>
|
|
{/if}
|
|
{/loop}
|
|
{/strip}{/capture}
|
|
|
|
{if $smarty.capture.data|trim != ''}
|
|
<table class="bordered">
|
|
<col style="width: 12%; text-align: center">
|
|
<col style="width: 22%; text-align: center">
|
|
<col style="width: 16%; text-align: center">
|
|
<col style="width: 18%; text-align: center">
|
|
<col style="width: 14%; text-align: center">
|
|
<col style="width: 14%; text-align: right">
|
|
<thead>
|
|
<tr class="small">
|
|
<th>Date facture</th>
|
|
<th>N° du bon de commande</th>
|
|
<th>N° de facture</th>
|
|
<th>Mode de règlement</th>
|
|
<th>Date échéance</th>
|
|
<th>Montant échéance</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{$smarty.capture.data nofilter}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="5" style="text-align: right; font-weight: bold">TOTAL DU RELEVÉ</td>
|
|
<td style="font-weight: bold">{format_money number=$total}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
<p>En votre aimable règlement.<br> <br>
|
|
<b>Les échéances déjà réglées sont affichées en gras.</b></p>
|
|
{else}
|
|
<p>Il n'y a pas de commande pour ce client dans le mois de {$mois}/{$annee}</p>
|
|
{/if}
|
|
</page>
|