[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-bugtrack] [bug #31308] Issue with intervention generation
From: |
Mario |
Subject: |
[Dolibarr-bugtrack] [bug #31308] Issue with intervention generation |
Date: |
Mon, 11 Oct 2010 21:02:41 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.3 (KHTML, like Gecko) Chrome/6.0.472.63 Safari/534.3 |
URL:
<http://savannah.nongnu.org/bugs/?31308>
Summary: Issue with intervention generation
Project: Dolibarr
Submitted by: le_top
Submitted on: Mon 11 Oct 2010 09:02:40 PM GMT
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Release: CVS-DEV
Operating System: None
_______________________________________________________
Details:
Demonstration of the issue on
http://demo.dolibarr.fr/fichinter/fiche.php?id=1
The page layout of the generated PDF is not ok.
I managed to partially work around issues by changing a section of the pdf
generation code like this:
$curY = $nexY+3;
$datetext =
dol_htmlentitiesbr($outputlangs->transnoentities("Date")." :
".dol_print_date($fichinterligne->datei,'dayhour',false,$outputlangs,true)." -
".$outputlangs->transnoentities("Duration")." :
".ConvertSecondToTime($fichinterligne->duration),1,$outputlangs->charset_output);
$desc =
dol_htmlentitiesbr($fichinterligne->desc,1);
$pdf->SetXY (10, $curY);
//$pdf->writeHTMLCell(0, 3,
$this->marge_gauche, $curY, $datetext."<br />".$desc, 0 /* no border */, 1 /*
Beginning of next line */, 0 /* No background */, true);
$pdf->writeHTML($datetext."<br /><br />".$desc);
$nexY = $pdf->GetY();
// $pdf->SetXY (10, $curY + 3);
// $pdf->writeHTMLCell(0, 3,
$this->marge_gauche, $curY + 3, $desc, 0, 1, 0);
//
$nexY+=dol_nboflines_bis($fichinterligne->desc,52,$outputlangs->charset_output)*3;
This modification solves an issue with writeHTMLCell that seems to make the
vertical size of a cell bigger and bigger for a reason I tried to dig into but
which seems to require some experience about FPDF to fix it while still using
writeHTMLCellr.
Further, actual multipage logic is missing.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?31308>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [Dolibarr-bugtrack] [bug #31308] Issue with intervention generation,
Mario <=