Initial commit
This commit is contained in:
84
www/client/pdf/facture.php
Normal file
84
www/client/pdf/facture.php
Normal file
@@ -0,0 +1,84 @@
|
||||
<?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");
|
||||
|
||||
Pdf::instance()->generer($res, $_GET['ref'] . ".pdf");
|
||||
?>
|
||||
0
www/client/pdf/index.html
Normal file
0
www/client/pdf/index.html
Normal file
244
www/client/pdf/template/facture.html
Normal file
244
www/client/pdf/template/facture.html
Normal file
@@ -0,0 +1,244 @@
|
||||
<!--
|
||||
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: #D83C46;
|
||||
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>
|
||||
|
||||
<table style="padding-bottom: 5mm;">
|
||||
<tr>
|
||||
<td style="width:50%; padding: 0; border: none;" valign="bottom">
|
||||
|
||||
<div style="text-align: center; padding-bottom: 10mm;">
|
||||
<h1>#VARIABLE(nomsite)<!-- Vous pouvez remplacer #VARIABLE(nomsite) par le nom de votre entreprise --></h1>
|
||||
<p><!-- Insérer ici l'adresse de votre entreprise --></p>
|
||||
<h2>::Facture n°:: #FACTURE</h2>
|
||||
</div>
|
||||
|
||||
<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>
|
||||
</THELIA_adrfact>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
|
||||
<col style="width: 20%;" />
|
||||
<col style="width: 38%;" />
|
||||
<col style="width: 15%; text-align: right" />
|
||||
<col style="width: 5%; text-align: right" />
|
||||
<col style="width: 7%; text-align: right" />
|
||||
<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;">::Prix HT::</th>
|
||||
<th style="text-align: center;">::Qté::</th>
|
||||
<th style="text-align: center;">::TVA::</th>
|
||||
<th style="text-align: center;">::Montant HT::</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<THELIA_articles type="venteprod" commande="#ID">
|
||||
<tr>
|
||||
<td>#REF</td>
|
||||
<td>#TITRE</td>
|
||||
<td>#PRIXUHT #GET{devise}</td>
|
||||
<td>#QUANTITE</td>
|
||||
<td>#TVA%</td>
|
||||
<td>#TOTALPRODHT #GET{devise}</td>
|
||||
</tr>
|
||||
</THELIA_articles>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!-- Pied du tableau -->
|
||||
|
||||
<table>
|
||||
<col style="width: 65%;" />
|
||||
<col style="width: 35%;" />
|
||||
|
||||
<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;"></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>
|
||||
|
||||
<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>
|
||||
52
www/client/pdf/template/lang/en.php
Normal file
52
www/client/pdf/template/lang/en.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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',
|
||||
|
||||
// Bon de livraison
|
||||
'Bon de livraison<br />N°' => 'Shipping note<br />no.',
|
||||
'N° Facture' => 'Invoice no.'
|
||||
);
|
||||
?>
|
||||
52
www/client/pdf/template/lang/es.php
Normal file
52
www/client/pdf/template/lang/es.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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',
|
||||
|
||||
// Bon de livraison
|
||||
'Bon de livraison<br />N°' => 'N° de entrega.',
|
||||
'N° Facture' => 'Nº factura'
|
||||
);
|
||||
?>
|
||||
52
www/client/pdf/template/lang/fr.php
Normal file
52
www/client/pdf/template/lang/fr.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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 HT' => 'Prix HT',
|
||||
'Qté' => 'Qté',
|
||||
'TVA' => 'TVA',
|
||||
'Montant HT' => 'Montant HT',
|
||||
'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û',
|
||||
|
||||
// Bon de livraison
|
||||
'Bon de livraison<br />N°' => 'Bon de livraison<br />N°',
|
||||
'N° Facture' => 'N° Facture'
|
||||
);
|
||||
?>
|
||||
52
www/client/pdf/template/lang/it.php
Normal file
52
www/client/pdf/template/lang/it.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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',
|
||||
|
||||
// Bon de livraison
|
||||
'Bon de livraison<br />N°' => 'Consegna ordinanza<br />N.',
|
||||
'N° Facture' => 'No. fattura'
|
||||
);
|
||||
?>
|
||||
207
www/client/pdf/template/livraison.html
Normal file
207
www/client/pdf/template/livraison.html
Normal file
@@ -0,0 +1,207 @@
|
||||
<!--
|
||||
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: #D83C46;
|
||||
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">
|
||||
|
||||
<div style="text-align: center; padding-bottom: 5mm;">
|
||||
<h1 style="font-size: 5mm;">
|
||||
#VARIABLE(nomsite)
|
||||
<!-- Vous pouvez remplacer #VARIABLE(nomsite) par le nom de votre entreprise -->
|
||||
</h1>
|
||||
|
||||
<!--
|
||||
<p> Vous pouvez insérer ici l'adresse de votre entreprise</p>
|
||||
-->
|
||||
|
||||
<h2 style="font-size: 5mm;">::Bon de livraison<br />N°:: #LIVRAISON</h2>
|
||||
</div>
|
||||
|
||||
<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;"></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</THELIA_facture>
|
||||
</page>
|
||||
Reference in New Issue
Block a user