Initial commit

This commit is contained in:
2020-01-27 08:56:08 +01:00
commit b7525048d6
27129 changed files with 3409855 additions and 0 deletions

175
client/pdf/facture.php Normal file
View File

@@ -0,0 +1,175 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
include_once __DIR__ . '/../../fonctions/error_reporting.php';
include_once(__DIR__ . "/../../classes/Navigation.class.php");
include_once(__DIR__ . "/../../classes/Administrateur.class.php");
include_once(__DIR__ . "/../../fonctions/modules.php");
session_start();
$commande = new Commande();
$commande->charger_ref($_GET['ref']);
// Si un client est identifié mais n'est pas celui qui a commandé ou que la commande n'est pas payée
// ou qu'un admin identifié n'est pas autorisé
if( ! ((isset($_SESSION['navig']) && $_SESSION['navig']->connecte && $_SESSION['navig']->client->id == $commande->client && $commande->facture != "") || (isset($_SESSION["util"]) && est_autorise("acces_commandes")))) exit;
// Compatibilité 1.4 -> On utilise le modèle PDF si il existe
if (file_exists(__DIR__.'/modeles/facture.php'))
{
include_once(__DIR__ . "/../../classes/Commande.class.php");
include_once(__DIR__ . "/../../classes/Client.class.php");
include_once(__DIR__ . "/../../classes/Venteprod.class.php");
include_once(__DIR__ . "/../../classes/Produit.class.php");
include_once(__DIR__ . "/../../classes/Adresse.class.php");
include_once(__DIR__ . "/../../classes/Zone.class.php");
include_once(__DIR__ . "/../../classes/Pays.class.php");
include_once(__DIR__ . "/../../fonctions/divers.php");
$client = new Client();
$client->charger_id($commande->client);
$pays = new Pays();
$pays->charger($client->pays);
$zone = new Zone();
$zone->charger($pays->zone);
include_once(__DIR__ . "/modeles/facture.php");
$facture = new Facture();
$facture->creer($_GET['ref']);
exit();
}
// Le moteur ne sortira pas le contenu de $res
$sortie = false;
// Le fond est le template de facture.
$reptpl = __DIR__ . "/template/";
$fond = "facture.html";
$lang = $commande->lang;
// Compatibilité avec le moteur.
$_REQUEST['commande'] = $_GET['ref'];
require_once(__DIR__ . "/../../fonctions/moteur.php");
require_once(__DIR__ . "/../../classes/Pdf.class.php");
// clean the output buffer
ob_clean();
Pdf::instance()->generer($res, $_GET['ref'] . ".pdf");
?>

0
client/pdf/index.html Normal file
View File

View File

@@ -0,0 +1,278 @@
<!--
THELIA - Modèle de facture
Pour plus d'information sur les possibilités de mise en page, merci de consulter
la documentation de html2pdf: http://html2pdf.fr/
-->
<style type="text/css">
<!--
table {
border-collapse: collapse;
width: 100%;
}
td,th {
padding: 1.5mm;
border: 0.2mm solid #333;
}
th {
background-color: #004;
color: #fff;
text-align: center;
font-weight: normal;
}
td {
color:#555;
line-height: 4mm;
}
td.total {
background-color: #ccc;
font-weight: bold;
}
-->
</style>
<page backtop="10mm" backleft="10mm" backright="10mm" backbottom="10mm">
<page_header>
</page_header>
<page_footer>
<table>
<col style="width: 80%; padding: 3mm; border: none; text-align: center;" />
<col style="width: 20%; padding: 3mm; border: none; text-align: right;" />
<tbody>
<tr>
<td>#VARIABLE(nomsitenomentreprise) - #VARIABLE(nomsiteadresse) - #VARIABLE(nomsitecodepostalville) - #VARIABLE(nomsitepays) - #VARIABLE(nomsitetelephone)</td>
<td>::Page:: [[page_cu]]/[[page_nb]]</td>
</tr>
</tbody>
</table>
</page_footer>
<THELIA_facture type="commande" ref="#COMMANDE_REF">
<THELIA_devise type="devise" id="#DEVISE">
#SET{devise,#SYMBOLE}
</THELIA_devise>
<table style="padding-bottom: 5mm;">
<tr>
<td style="width:50%; padding: 0; border: none;" valign="bottom">
<table style="width: 50%;">
<tr>
<td style="border: 0mm;"><img src="#VARIABLE(nomsitelogo)" /></td>
<td style="border: 0mm;">
<p style="line-height: 5mm;">
<h3 style="margin: 0mm;padding: 0mm;">#VARIABLE(nomsitenomentreprise)</h3>
<span style="letter-spacing: 1mm;">#VARIABLE(nomsiteslogan)</span><br />
<br />
<br />
</p>
</td>
</tr>
<tr>
<td colspan="2" style="border: 0mm; padding-bottom: 10mm;">
<p><h2>::Facture n°:: #FACTURE</h2>
Date de facturation: #DATEFACTURATION</p>
</td>
</tr>
</table>
<table style="width: 100%">
<tr>
<th>::N° Commande::</th>
<th>::N° Client::</th>
<th>::Date::</th>
</tr>
<tr>
<td>#REF</td>
<td><THELIA_client type="client" id="#CLIENT">#REF</THELIA_client></td>
<td>#DATE</td>
</tr>
</table>
</td>
<td style="width:50%; padding: 0; border: none;" valign="bottom">
<table style="padding-bottom: 5mm;">
<tr>
<th style="width: 100%; text-align: left;">::Adresse de livraison::</th>
</tr>
<tr>
<td>
<THELIA_adrlivr type="venteadr" id="#ADRLIVR">
#RAISON #PRENOM #NOM<br />
#ADRESSE1 #ADRESSE2 #ADRESSE3<br />
#CPOSTAL #VILLE<br/>
<THELIA_payslivr type="PAYS" id="#PAYS">#TITRE</THELIA_payslivr>
</THELIA_adrlivr>
</td>
</tr>
</table>
<table>
<tr>
<th style="width: 100%; text-align: left;">::Adresse de facturation::</th>
</tr>
<tr>
<td>
<THELIA_adrfact type="venteadr" id="#ADRFACT">
#RAISON #PRENOM #NOM<br />
#ADRESSE1 #ADRESSE2 #ADRESSE3<br />
#CPOSTAL #VILLE<br/>
<THELIA_paysfact type="PAYS" id="#PAYS">#TITRE</THELIA_paysfact><br/><br/>
#TEL
</THELIA_adrfact>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table>
<col style="width: 13%; font-size: 2.8mm;" />
<col style="width: 38%; font-size: 2.8mm;" />
<col style="width: 10%; font-size: 2.8mm; text-align: right" />
<col style="width: 10%; font-size: 2.8mm; text-align: right" />
<col style="width: 5%; font-size: 2.8mm; text-align: right" />
<col style="width: 12%; font-size: 2.8mm; text-align: right" />
<col style="width: 12%; font-size: 2.8mm; text-align: right" />
<thead>
<tr>
<th style="text-align: center;">::Référence::</th>
<th style="text-align: center;">::Désignation::</th>
<th style="text-align: center;">::Prix Unit HT::</th>
<th style="text-align: center;">::Prix Unit TTC::</th>
<th style="text-align: center;">::Qté::</th>
<th style="text-align: center;">::Montant HT::</th>
<th style="text-align: center;">::Montant TTC::</th>
</tr>
</thead>
<tbody>
<THELIA_articles type="venteprod" commande="#ID">
<tr>
<td>#REF</td>
<td>#TITRE</td>
<td>#PRIXUHT #GET{devise}</td>
<td>#PRIXU #GET{devise}</td>
<td>#QUANTITE</td>
<td>#TOTALPRODHT #GET{devise}</td>
<td>#TOTALPROD #GET{devise}</td>
</tr>
</THELIA_articles>
</tbody>
</table>
<!-- Pied du tableau -->
<table>
<col style="width: 50%;" />
<col style="width: 50%; font-size: 3.2mm;" />
<tr>
<td style="padding: 0; padding-top: 5mm; border: none;">
<table style="width: 90%; padding-bottom: 5mm;">
<col style="width: 35%; text-align: right;" />
<col style="width: 65%;" />
<tbody>
<tr>
<th>::Mode de règlement::</th>
<td>#PAIEMENTTITRE</td>
</tr>
<tr>
<th>::Mode de livraison::</th>
<td>#TRANSPORTTITRE</td>
</tr>
</tbody>
</table>
<table style="width: 90%;">
<col style="width: 100%; text-align: left;" />
<tbody>
<tr>
<th>::Zone de correspondance::</th>
</tr>
<tr>
<td style="height: 20mm;">
<THELIA_messagecmd type="messagecmd" commande="#ID">
#MESSAGE
</THELIA_messagecmd>
</td>
</tr>
</tbody>
</table>
</td>
<td valign="top" style="padding: 0;padding-top: 5mm; border: none;">
<table style="padding-bottom: 5mm;">
<col style="width: 58%; text-align: right;" />
<col style="width: 42%; text-align: right;" />
<tbody>
<tr>
<td>::Total HT::</td>
<td>#TOTALARTICLESHT #GET{devise}</td>
</tr>
#FILTRE_different(#REMISE_CLIENT||0||
<tr>
<td>#CLIENT_REMISE</td>
<td>- #REMISE_CLIENT #GET{devise}</td>
</tr>)
#FILTRE_different(#REMISE_CODE||0||
<tr>
<td>::codepromo:: #CODE_REMISE</td>
<td>- #REMISE_CODE #GET{devise}</td>
</tr>)
<THELIA_tva type="tva" commande="#ID">
<tr>
<td>::TVA:: #TAUX%</td>
<td>#MONTANT #GET{devise}</td>
</tr>
</THELIA_tva>
<tr>
<td>::Total TTC::</td>
<td>#TOTALARTICLESTTC #GET{devise}</td>
</tr>
<TEST_remise var="#REMISE" test="superieur" val="0">
<tr>
<td style="border-top: none;">::Remise:: #POURCEREMISE%</td>
<td style="border-top: none;">#REMISE #GET{devise}</td>
</tr>
</TEST_remise>
<//TEST_remise>
<tr>
<td>::Port::</td>
<td>#PORT #GET{devise}</td>
</tr>
<tr>
<td class="total">::Total dû::</td>
<td class="total">#TOTCMDPORT #GET{devise}</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</THELIA_facture>
</page>

View File

@@ -0,0 +1,53 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
$GLOBALS['dicotpl'] = array(
// Facture
'Page' => 'Seite',
'Facture n°' => 'Rechnung n°',
'N° Commande' => 'N° Bestellen',
'N° Client' => 'N° Kunde',
'Date' => 'Date',
'Adresse de livraison' => 'Lieferadresse',
'Adresse de facturation' => 'Rechnungsadresse',
'Référence' => 'Referenz',
'Désignation' => 'Bezeichnung',
'Prix HT' => 'Steuer Preise',
'Qté' => 'Menge',
'TVA' => 'Mehrwertsteuer',
'Montant HT' => 'Nettobetrag',
'Mode de règlement' => 'Zahlungsweise',
'Mode de livraison' => 'Lieferung Methode',
'Zone de correspondance' => 'Zone Matching',
'Port' => 'Port',
'Total HT' => 'Gesamt Pflicht',
'Total TTC' => 'Gesamtpreis',
'Remise' => 'Rabatt',
'Total dû' => 'Total Forderungen',
'codepromo' => 'Code: ',
// Bon de livraison
'Bon de livraison<br />N°' => 'Lieferung<br />N°',
'N° Facture' => 'N° Rechnung'
);
?>

View File

@@ -0,0 +1,53 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
$GLOBALS['dicotpl'] = array(
// Facture
'Page' => 'Page',
'Facture n°' => 'Invoice no.',
'N° Commande' => 'Order no.',
'N° Client' => 'Client no.',
'Date' => 'Date',
'Adresse de livraison' => 'Shipping address',
'Adresse de facturation' => 'Billing address',
'Référence' => 'Reference',
'Désignation' => 'Name',
'Prix HT' => 'Price',
'Qté' => 'Qty',
'TVA' => 'Tax',
'Montant HT' => 'Subtotal',
'Mode de règlement' => 'Payment mode',
'Mode de livraison' => 'Shipping mode',
'Zone de correspondance' => 'Additional information',
'Port' => 'Shipping fee',
'Total dû' => 'Total',
'Total HT' => 'Total w/o tax',
'Total TTC' => 'Total w. tax',
'Remise' => 'Discount',
'codepromo' => 'Code: ',
// Bon de livraison
'Bon de livraison<br />N°' => 'Shipping note<br />no.',
'N° Facture' => 'Invoice no.'
);
?>

View File

@@ -0,0 +1,53 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
$GLOBALS['dicotpl'] = array(
// Facture
'Page' => 'Página',
'Facture n°' => 'Nº factura',
'N° Commande' => 'Nº de pedido',
'N° Client' => 'N° Cliente',
'Date' => 'Fecha',
'Adresse de livraison' => 'Dirección de envío',
'Adresse de facturation' => 'Dirección de la facturación',
'Référence' => 'Referencia',
'Désignation' => 'Designación',
'Prix HT' => 'Precio Sin Impuestos',
'Qté' => 'Cantidad',
'TVA' => 'IVA',
'Montant HT' => 'Cantidad Sin Impuestos',
'Mode de règlement' => 'Forma de pago',
'Mode de livraison' => 'Método de Entrega',
'Zone de correspondance' => 'Zona de correspondencia',
'Port' => 'Porte',
'Total HT' => 'Total Sin Impuestos',
'Total TTC' => 'Total Impuestos Incluidos',
'Remise' => 'Descuento',
'Total dû' => 'Total a pagar',
'codepromo' => 'Code: ',
// Bon de livraison
'Bon de livraison<br />N°' => 'N° de entrega.',
'N° Facture' => 'Nº factura'
);
?>

View File

@@ -0,0 +1,55 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
$GLOBALS['dicotpl'] = array(
// Facture
'Page' => 'Page',
'Facture n°' => 'Facture n°',
'N° Commande' => 'N° Commande',
'N° Client' => 'N° Client',
'Date' => 'Date',
'Adresse de livraison' => 'Adresse de livraison',
'Adresse de facturation' => 'Adresse de facturation',
'Référence' => 'Référence',
'Désignation' => 'Désignation',
'Prix Unit HT' => 'PU HT',
'Prix Unit TTC' => 'PU TTC',
'Qté' => 'Qté',
'TVA' => 'TVA',
'Montant HT' => 'Montant HT',
'Montant TTC' => 'Montant TTC',
'Mode de règlement' => 'Mode de règlement',
'Mode de livraison' => 'Mode de livraison',
'Zone de correspondance' => 'Zone de correspondance',
'Port' => 'Port',
'Total HT' => 'Total HT',
'Total TTC' => 'Total TTC',
'Remise' => 'Remise',
'Total dû' => 'Total dû',
'codepromo' => 'Code: ',
// Bon de livraison
'Bon de livraison<br />N°' => 'Bon de livraison<br />N°',
'N° Facture' => 'N° Facture'
);
?>

View File

@@ -0,0 +1,53 @@
<?php
/*************************************************************************************/
/* */
/* Thelia */
/* */
/* Copyright (c) 2005-2013 OpenStudio */
/* email : info@thelia.fr */
/* web : http://www.thelia.net */
/* */
/* This program is free software; you can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 3 of the License */
/* */
/* This program is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
/* GNU General Public License for more details. */
/* */
/* You should have received a copy of the GNU General Public License */
/* along with this program.  If not, see <http://www.gnu.org/licenses/>. */
/* */
/*************************************************************************************/
$GLOBALS['dicotpl'] = array(
// Facture
'Page' => 'Pagina',
'Facture n°' => 'No. fattura',
'N° Commande' => 'Ordinanza N.',
'N° Client' => 'N. Cliente',
'Date' => 'Data',
'Adresse de livraison' => 'Indirizzo di spedizione',
'Adresse de facturation' => 'Indirizzo di fatturazione',
'Référence' => 'Riferimento',
'Désignation' => 'Designazione',
'Prix HT' => 'Prezzi IVA esclusa',
'Qté' => 'Qtà',
'TVA' => 'IVA',
'Montant HT' => 'Senza IVA',
'Mode de règlement' => 'Modalità di pagamento',
'Mode de livraison' => 'Consegna Metodo',
'Zone de correspondance' => 'Informazioni complementari',
'Port' => 'Porto',
'Total HT' => 'IVA esenzione totale',
'Total TTC' => 'Totale IVA',
'Remise' => 'Sconto',
'Total dû' => 'Totale debiti',
'codepromo' => 'Code: ',
// Bon de livraison
'Bon de livraison<br />N°' => 'Consegna ordinanza<br />N.',
'N° Facture' => 'No. fattura'
);
?>

View File

@@ -0,0 +1,215 @@
<!--
THELIA - Modèle de bon de livraison
Pour plus d'information sur les possibilités de mise en page, merci de consulter
la documentation de html2pdf: http://html2pdf.fr/
-->
<style type="text/css">
<!--
table {
border-collapse: collapse;
width: 100%;
}
td,th {
padding: 1.5mm;
border: 0.2mm solid #333;
}
th {
background-color: #004;
color: #fff;
text-align: center;
font-weight: normal;
}
td.total {
background-color: #ccc;
font-weight: bold;
}
-->
</style>
<page backtop="10mm" backleft="10mm" backright="10mm" backbottom="10mm">
<page_header>
</page_header>
<page_footer>
<table>
<col style="width: 80%; padding: 3mm; border: none; text-align: center;" />
<col style="width: 20%; padding: 3mm; border: none; text-align: right;" />
<tbody>
<tr>
<td><!-- Insérer ici les mentions légales --></td>
<td>::Page:: [[page_cu]]/[[page_nb]]</td>
</tr>
</tbody>
</table>
</page_footer>
<THELIA_facture type="commande" ref="#COMMANDE_REF">
<THELIA_devise type="devise" id="#DEVISE">
#SET{devise,#SYMBOLE}
</THELIA_devise>
<!-- En-tete du document -->
<table style="padding-bottom: 5mm;">
<col style="width:50%; padding: 0; border: none;" />
<col style="width:50%; padding: 0; border: none;" />
<tr>
<!-- A gauche: informations sur le BL -->
<td valign="bottom">
<table style="width: 50%;">
<tr>
<td style="border: 0mm;"><img src="#VARIABLE(nomsitelogo)" /></td>
<td style="border: 0mm;">
<p style="line-height: 5mm;">
<h3 style="margin: 0mm;padding: 0mm;">#VARIABLE(nomsitenomentreprise)</h3>
<span style="letter-spacing: 1mm;">#VARIABLE(nomsiteslogan)</span><br />
<br />
<br />
</p>
</td>
</tr>
<tr>
<td colspan="2" style="border: 0mm; padding-bottom: 10mm;">
<p><h2>::Bon de livraison<br />N°:: #LIVRAISON</h2>
Date d'émission: #DATELIVRAISON</p>
</td>
</tr>
</table>
<table style="width: 80%;">
<col style="width:50%;text-align: center;" />
<col style="width:50%;text-align: center;" />
<tr>
<th>::N° Commande::</th>
<th>::Date::</th>
</tr>
<tr>
<td>#REF</td>
<td>#DATE</td>
</tr>
</table>
<table style="width: 80%; margin-top: 3mm;">
<col style="width:50%;text-align: center;" />
<col style="width:50%;text-align: center;" />
<tr>
<th>::N° Facture::</th>
<th>::N° Client::</th>
</tr>
<tr>
<td>#FACTURE</td>
<td><THELIA_client type="client" id="#CLIENT">#REF</THELIA_client></td>
</tr>
</table>
</td>
<!-- A droite: adresses de livraison et de facturation -->
<td valign="bottom">
<table style="padding-bottom: 5mm;">
<tr>
<th style="width: 100%; text-align: left;">::Adresse de livraison::</th>
</tr>
<tr>
<td>
<THELIA_adrlivr type="venteadr" id="#ADRLIVR">
#RAISON #PRENOM #NOM<br />
#ADRESSE1 #ADRESSE2 #ADRESSE3<br />
#CPOSTAL #VILLE<br/>
<THELIA_payslivr type="PAYS" id="#PAYS">#TITRE</THELIA_payslivr>
</THELIA_adrlivr>
</td>
</tr>
</table>
<table>
<tr>
<th style="width: 100%; text-align: left;">::Adresse de facturation::</th>
</tr>
<tr>
<td>
<THELIA_adrfact type="venteadr" id="#ADRFACT">
#RAISON #PRENOM #NOM<br />
#ADRESSE1 #ADRESSE2 #ADRESSE3<br />
#CPOSTAL #VILLE<br/>
<THELIA_paysfact type="PAYS" id="#PAYS">#TITRE</THELIA_paysfact>
</THELIA_adrfact>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- Liste des articles -->
<table>
<col style="width: 20%;" />
<col style="width: 65%;" />
<col style="width: 15%; text-align: right" />
<thead>
<tr>
<th style="text-align: center;">::Référence::</th>
<th style="text-align: center;">::Désignation::</th>
<th style="text-align: center;">::Qté::</th>
</tr>
</thead>
<tbody>
<THELIA_articles type="venteprod" commande="#ID">
<tr>
<td>#REF</td>
<td>#TITRE</td>
<td>#QUANTITE</td>
</tr>
</THELIA_articles>
</tbody>
</table>
<!-- Mode de livraison -->
<table style="width: 100%; margin-top: 5mm;">
<col style="width: 20%;" />
<col style="width: 80%;" />
<tbody>
<tr>
<th>::Mode de livraison::</th>
<td>#TRANSPORTTITRE</td>
</tr>
</tbody>
</table>
<!-- Zone de correspondance -->
<table style="width: 100%; margin-top: 5mm;">
<col style="width: 100%;" />
<tbody>
<tr>
<th>::Zone de correspondance::</th>
</tr>
<tr>
<td style="height: 20mm;">
<THELIA_messagecmd type="messagecmd" commande="#ID">
#MESSAGE
</THELIA_messagecmd>
</td>
</tr>
</tbody>
</table>
</THELIA_facture>
</page>