From e036e7baf4d989deda0cd3fd6e8a8104a00e3455 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 12 Apr 2015 19:37:49 +0200 Subject: [PATCH] Restore correct filling of page --- htdocs/core/modules/rapport/pdf_paiement.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/core/modules/rapport/pdf_paiement.class.php b/htdocs/core/modules/rapport/pdf_paiement.class.php index c0b7b098eda..83bbb0a59b4 100644 --- a/htdocs/core/modules/rapport/pdf_paiement.class.php +++ b/htdocs/core/modules/rapport/pdf_paiement.class.php @@ -60,8 +60,8 @@ class pdf_paiement $this->tab_top = 30; $this->line_height = 5; - $this->line_per_page = 46; - $this->tab_height = 250; //$this->line_height * $this->line_per_page; + $this->line_per_page = 40; + $this->tab_height = $this->page_hauteur - $this->marge_haute - $this->marge_basse - $this->tab_top - 5; // must be > $this->line_height * $this->line_per_page and < $this->page_hauteur - $this->marge_haute - $this->marge_basse - $this->tab_top - 5; $this->posxdate=$this->marge_gauche+2; $this->posxpaymenttype=42; @@ -71,6 +71,7 @@ class pdf_paiement $this->posxpaymentamount=162; if ($this->page_largeur < 210) // To work with US executive format { + $this->line_per_page = 35; $this->posxpaymenttype-=10; $this->posxinvoice-=0; $this->posxinvoiceamount-=10; @@ -399,7 +400,7 @@ class pdf_paiement // BankAccount $pdf->SetXY($this->posxbankaccount, $this->tab_top + 10 + $yp); $pdf->MultiCell($this->posxbankaccount - $this->posxdate, $this->line_height, $lines[$j][8], 0, 'L', 0); - + // Invoice amount $pdf->SetXY($this->posxinvoiceamount, $this->tab_top + 10 + $yp); $pdf->MultiCell($this->posxpaymentamount- $this->posxinvoiceamount - 1, $this->line_height, $lines[$j][5], 0, 'R', 0);