From 88d9bb856395211aa8da962c8b3d090d466010c5 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Thu, 25 May 2006 16:31:03 +0000
Subject: [PATCH] Fix: Plantage generation PDF modele bulot

---
 .../modules/facture/pdf_bulot.modules.php     | 73 ++++++++++---------
 1 file changed, 38 insertions(+), 35 deletions(-)

diff --git a/htdocs/includes/modules/facture/pdf_bulot.modules.php b/htdocs/includes/modules/facture/pdf_bulot.modules.php
index f70980332f2..3bddf269a19 100644
--- a/htdocs/includes/modules/facture/pdf_bulot.modules.php
+++ b/htdocs/includes/modules/facture/pdf_bulot.modules.php
@@ -209,42 +209,45 @@ class pdf_bulot extends ModelePDFFactures {
         $this->error=$langs->trans("ErrorUnknown");
         return 0;   // Erreur par defaut
     }
-  /*
-    *   \brief      Affiche tableau des versement
-    *   \param      pdf     objet PDF
-    *   \param      fac     objet facture
-   */
-  function _tableau_compl(&$pdf, $fac)
-    {
-      $tab3_top = 240;
-      $tab3_height = 18;
-      $tab3_width = 60;
-      
-      $pdf->Rect(10, $tab3_top, $tab3_width, $tab3_height);
-      
-      $pdf->line(10, $tab3_top + 6, $tab3_width+10, $tab3_top + 6 );
-      $pdf->line(10, $tab3_top + 12, $tab3_width+10, $tab3_top + 12 );
-      
-      $pdf->line(30, $tab3_top, 30, $tab3_top + $tab3_height );
-      
-      $pdf->SetFont('Arial','',8);
-      $pdf->SetXY (10, $tab3_top - 6);
-      $pdf->MultiCell(60, 6, $langs->trans("ExtraInfos"), 0, 'L', 0);
-      $pdf->SetXY (10, $tab3_top );
-      $pdf->MultiCell(20, 6, $langs->trans("RegulatedOn"), 0, 'L', 0);
-      $pdf->SetXY (10, $tab3_top + 6);
-      $pdf->MultiCell(20, 6, $langs->trans("ChequeNumber"), 0, 'L', 0);
-      $pdf->SetXY (10, $tab3_top + 12);
-      $pdf->MultiCell(20, 6, $langs->trans("Bank"), 0, 'L', 0);
-    }
 
-    /*
-    *   \brief      Affiche le total � payer
-    *   \param      pdf         objet PDF
-    *   \param      fac         objet facture
-    *   \param      deja_regle  montant deja regle
-    */
-  function _tableau_tot(&$pdf, $fac)
+	/**
+	 *   \brief      Affiche tableau des versement
+	 *   \param      pdf     objet PDF
+	 *   \param      fac     objet facture
+	 */
+	function _tableau_compl(&$pdf, $fac)
+	{
+		global $langs;
+	
+		$tab3_top = 240;
+		$tab3_height = 18;
+		$tab3_width = 60;
+	
+		$pdf->Rect(10, $tab3_top, $tab3_width, $tab3_height);
+	
+		$pdf->line(10, $tab3_top + 6, $tab3_width+10, $tab3_top + 6 );
+		$pdf->line(10, $tab3_top + 12, $tab3_width+10, $tab3_top + 12 );
+	
+		$pdf->line(30, $tab3_top, 30, $tab3_top + $tab3_height );
+	
+		$pdf->SetFont('Arial','',8);
+		$pdf->SetXY (10, $tab3_top - 6);
+		$pdf->MultiCell(60, 6, $langs->trans("ExtraInfos"), 0, 'L', 0);
+		$pdf->SetXY (10, $tab3_top );
+		$pdf->MultiCell(20, 6, $langs->trans("RegulatedOn"), 0, 'L', 0);
+		$pdf->SetXY (10, $tab3_top + 6);
+		$pdf->MultiCell(20, 6, $langs->trans("ChequeNumber"), 0, 'L', 0);
+		$pdf->SetXY (10, $tab3_top + 12);
+		$pdf->MultiCell(20, 6, $langs->trans("Bank"), 0, 'L', 0);
+	}
+
+    /**
+     *   \brief      Affiche le total � payer
+     *   \param      pdf         objet PDF
+     *   \param      fac         objet facture
+     *   \param      deja_regle  montant deja regle
+     */
+	function _tableau_tot(&$pdf, $fac)
     {
         global $langs;
         $langs->load("main");
-- 
GitLab