[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-cvs] dolibarr/htdocs/includes/modules commandepdf_ei...
From: |
Regis Houssin |
Subject: |
[Dolibarr-cvs] dolibarr/htdocs/includes/modules commandepdf_ei... |
Date: |
Tue, 20 Jun 2006 14:18:53 +0000 |
CVSROOT: /cvsroot/dolibarr
Module name: dolibarr
Changes by: Regis Houssin <hregis> 06/06/20 14:18:53
Modified files:
htdocs/includes/modules/commande: pdf_einstein.modules.php
htdocs/includes/modules/facture: pdf_crabe.modules.php
Log message:
Fix: le tableau était décalé sur les pages du milieu si pdf de plus de
2 pages
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/includes/modules/commande/pdf_einstein.modules.php?cvsroot=dolibarr&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/includes/modules/facture/pdf_crabe.modules.php?cvsroot=dolibarr&r1=1.97&r2=1.98
Patches:
Index: commande/pdf_einstein.modules.php
===================================================================
RCS file:
/cvsroot/dolibarr/dolibarr/htdocs/includes/modules/commande/pdf_einstein.modules.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- commande/pdf_einstein.modules.php 19 Jun 2006 20:37:55 -0000 1.7
+++ commande/pdf_einstein.modules.php 20 Jun 2006 14:18:52 -0000 1.8
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/
*
-* $Id: pdf_einstein.modules.php,v 1.7 2006/06/19 20:37:55 eldy Exp $
+* $Id: pdf_einstein.modules.php,v 1.8 2006/06/20 14:18:52 hregis Exp $
* $Source:
/cvsroot/dolibarr/dolibarr/htdocs/includes/modules/commande/pdf_einstein.modules.php,v
$
*/
@@ -25,8 +25,8 @@
\ingroup commande
\brief Fichier de la classe permettant de générer les
commandes au modèle Einstein
\author Laurent Destailleur
- \version $Revision: 1.7 $
- \version $Revision: 1.7 $
+ \version $Revision: 1.8 $
+ \version $Revision: 1.8 $
*/
require_once(DOL_DOCUMENT_ROOT
."/includes/modules/commande/modules_commande.php");
@@ -187,6 +187,7 @@
$tab_top = 90;
$tab_top_newpage = 50;
$tab_height = 110;
+ $tab_height_newpage = 170;
$iniY = $tab_top + 8;
$curY = $tab_top + 8;
@@ -272,7 +273,15 @@
if ($nexY > 200 && $i < ($nblignes - 1))
{
+ if ($pagenb == 1)
+ {
$this->_tableau($pdf, $tab_top, $tab_height + 20,
$nexY);
+ }
+ else
+ {
+ $this->_tableau($pdf, $tab_top_newpage,
$tab_height_newpage, $nexY);
+ }
+
$this->_pagefoot($pdf);
// Nouvelle page
@@ -281,6 +290,7 @@
$this->_pagehead($pdf, $com, 0);
$nexY = $tab_top_newpage + 8;
+
$pdf->SetTextColor(0,0,0);
$pdf->SetFont('Arial','', 10);
}
Index: facture/pdf_crabe.modules.php
===================================================================
RCS file:
/cvsroot/dolibarr/dolibarr/htdocs/includes/modules/facture/pdf_crabe.modules.php,v
retrieving revision 1.97
retrieving revision 1.98
diff -u -b -r1.97 -r1.98
--- facture/pdf_crabe.modules.php 18 Jun 2006 15:48:28 -0000 1.97
+++ facture/pdf_crabe.modules.php 20 Jun 2006 14:18:53 -0000 1.98
@@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* or see http://www.gnu.org/
*
-* $Id: pdf_crabe.modules.php,v 1.97 2006/06/18 15:48:28 eldy Exp $
+* $Id: pdf_crabe.modules.php,v 1.98 2006/06/20 14:18:53 hregis Exp $
* $Source:
/cvsroot/dolibarr/dolibarr/htdocs/includes/modules/facture/pdf_crabe.modules.php,v
$
*/
@@ -25,7 +25,7 @@
\ingroup facture
\brief Fichier de la classe permettant de générer les
factures au modèle Crabe
\author Laurent Destailleur
- \version $Revision: 1.97 $
+ \version $Revision: 1.98 $
*/
require_once(DOL_DOCUMENT_ROOT
."/includes/modules/facture/modules_facture.php");
@@ -193,6 +193,7 @@
$tab_top = 90;
$tab_top_newpage = 50;
$tab_height = 110;
+ $tab_height_newpage = 180;
// Affiche notes
if ($fac->note_public)
@@ -306,7 +307,15 @@
if ($nexY > ($tab_top+$tab_height) && $i < ($nblignes - 1))
{
+ if ($pagenb == 1)
+ {
$this->_tableau($pdf, $tab_top, $tab_height + 20,
$nexY, $outputlangs);
+ }
+ else
+ {
+ $this->_tableau($pdf, $tab_top_newpage,
$tab_height_newpage, $nexY, $outputlangs);
+ }
+
$this->_pagefoot($pdf,$outputlangs);
// Nouvelle page
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-cvs] dolibarr/htdocs/includes/modules commandepdf_ei...,
Regis Houssin <=