This commit is contained in:
Laurent Destailleur 2012-01-23 18:43:30 +01:00
parent 1f46bbdae6
commit d596920898
17 changed files with 451 additions and 345 deletions

View File

@ -232,12 +232,12 @@ class CommActionRapport
} }
/** /**
* Show page head * Show top header of page.
* *
* @param PDF &$pdf Object PDF * @param PDF &$pdf Object PDF
* @param Translate $outputlangs Object langs * @param Translate $outputlangs Object lang for output
* @param int $pagenb Page nb * @param int $pagenb Page nb
* @return int Pos y * @return void
*/ */
function _pagehead(&$pdf, $outputlangs, $pagenb) function _pagehead(&$pdf, $outputlangs, $pagenb)
{ {

View File

@ -333,11 +333,12 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf Object PDF *
* \param object Object cheque receipt * @param PDF &$pdf PDF
* \param outputlangs Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -182,7 +182,7 @@ class pdf_edison extends ModelePDFCommandes
$pdf->SetTextColor(0,0,0); $pdf->SetTextColor(0,0,0);
$pdf->SetFont('','', $default_font_size - 1); $pdf->SetFont('','', $default_font_size - 1);
$pdf->SetXY(10, $tab_top + 10 ); $pdf->SetXY(10, $tab_top + 10);
$iniY = $pdf->GetY(); $iniY = $pdf->GetY();
$curY = $pdf->GetY(); $curY = $pdf->GetY();
@ -307,12 +307,13 @@ class pdf_edison extends ModelePDFCommandes
} }
/** /**
* \brief Affiche infos divers * Show miscellaneous information (payment mode, payment term, ...)
* \param pdf Objet PDF *
* \param object Objet commande * @param PDF &$pdf Object PDF
* \param posy Position depart * @param Object $object Object to show
* \param outputlangs Objet langs * @param int $posy Y
* \return y Position pour suite * @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -441,13 +442,14 @@ class pdf_edison extends ModelePDFCommandes
} }
/** /**
* Enter description here... * Show table for lines
* *
* @param $pdf * @param PDF &$pdf Object PDF
* @param $tab_top * @param string $tab_top Top position of table
* @param $tab_height * @param string $tab_height Height of table (rectangle)
* @param $nexY * @param int $nexY Y
* @param $outputlangs * @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -494,14 +496,15 @@ class pdf_edison extends ModelePDFCommandes
/** /**
* Show header of page * Show top header of page.
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet commande * @param Object $object Object to show
* @param showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs,$mysoc; global $conf,$langs,$mysoc;
$langs->load("orders"); $langs->load("orders");
@ -624,12 +627,12 @@ class pdf_edison extends ModelePDFCommandes
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* Need this->emetteur object
* *
* @param pdf PDF factory * @param PDF &$pdf PDF
* @param object Object invoice * @param Object $object Object to show
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -433,13 +433,13 @@ class pdf_einstein extends ModelePDFCommandes
/** /**
* Affiche infos divers * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param pdf Object PDF * @param PDF &$pdf Object PDF
* @param object Object order * @param Object $object Object to show
* @param posy Position depart * @param int $posy Y
* @param outputlangs Objet langs * @param Translate $outputlangs Langs object
* @return y Position pour suite * @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -567,14 +567,14 @@ class pdf_einstein extends ModelePDFCommandes
/** /**
* Affiche le total a payer * Show total to pay
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet commande * @param Facture $object Object invoice
* @param deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param posy Position depart * @param int $posy Position depart
* @param outputlangs Objet langs * @param Translate $outputlangs Objet langs
* @return y Position pour suite * @return int Position pour suite
*/ */
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{ {
@ -763,8 +763,14 @@ class pdf_einstein extends ModelePDFCommandes
} }
/** /**
* \brief Affiche la grille des lignes de commandes * Show table for lines
* \param pdf objet PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -822,14 +828,15 @@ class pdf_einstein extends ModelePDFCommandes
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object order * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs; global $conf,$langs;
@ -981,12 +988,12 @@ class pdf_einstein extends ModelePDFCommandes
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* Need this->emetteur object
* *
* @param pdf PDF factory * @param PDF &$pdf PDF
* @param object Object invoice * @param Object $object Object to show
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -270,9 +270,16 @@ Class pdf_expedition_merou extends ModelePdfExpedition
} }
//******************************** /**
// Generation du tableau * Show table for lines
//******************************** *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
global $langs; global $langs;
@ -300,11 +307,12 @@ Class pdf_expedition_merou extends ModelePdfExpedition
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* *
* @param pdf PDF factory * @param PDF &$pdf PDF
* @param object Object invoice * @param Object $object Object to show
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf, $object, $outputlangs) function _pagefoot(&$pdf, $object, $outputlangs)
{ {
@ -327,14 +335,15 @@ Class pdf_expedition_merou extends ModelePdfExpedition
/** /**
* Show header of page * Show top header of page.
* *
* @param pdf Object PDF * @param PDF &$pdf Object PDF
* @param object Object invoice * @param Object $object Object to show
* @param showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param outputlang Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf, $langs; global $conf, $langs;

View File

@ -39,8 +39,9 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
/** /**
* \brief Constructeur * Constructor
* \param db Database handler *
* @param db Database handler
*/ */
function pdf_expedition_rouget($db=0) function pdf_expedition_rouget($db=0)
{ {
@ -260,8 +261,14 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
} }
/** /**
* Build table * Show table for lines
* @param pdf objet PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -292,14 +299,15 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
} }
/** /**
* Show header of document * Show top header of page.
* *
* @param pdf Object PDF * @param PDF &$pdf Object PDF
* @param object Object commercial proposal * @param Object $object Object to show
* @param showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs,$mysoc; global $conf,$langs,$mysoc;
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
@ -526,11 +534,12 @@ Class pdf_expedition_rouget extends ModelePdfExpedition
} }
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf PDF factory *
* \param object Object invoice * @param PDF &$pdf PDF
* \param outputlangs Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -559,13 +559,13 @@ class pdf_crabe extends ModelePDFFactures
/** /**
* Show other information * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param PDF &$pdf Object PDF * @param PDF &$pdf Object PDF
* @param Facture $object Object invoice * @param Object $object Object to show
* @param int $posy Position start * @param int $posy Y
* @param Translate $outputlangs Object langs * @param Translate $outputlangs Langs object
* @return int Position pour suite * @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -918,9 +918,14 @@ class pdf_crabe extends ModelePDFFactures
} }
/** /**
* Show the lines of invoice * Show table for lines
* *
* @param PDF $pdf object PDF * @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -979,14 +984,15 @@ class pdf_crabe extends ModelePDFFactures
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param pdf Object PDF * @param PDF &$pdf Object PDF
* @param object Object invoice * @param Object $object Object to show
* @param showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs; global $conf,$langs;
@ -1231,12 +1237,12 @@ class pdf_crabe extends ModelePDFFactures
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* *
* \param pdf PDF factory * @param PDF &$pdf PDF
* \param object Object invoice * @param Object $object Object to show
* \param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* \remarks Need this->emetteur object * @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -442,12 +442,13 @@ class pdf_oursin extends ModelePDFFactures
} }
/** /**
* \brief Affiche infos divers * Show miscellaneous information (payment mode, payment term, ...)
* \param pdf Objet PDF *
* \param object Objet facture * @param PDF &$pdf Object PDF
* \param posy Position depart * @param Object $object Object to show
* \param outputlangs Objet langs * @param int $posy Y
* \return y Position pour suite * @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -578,14 +579,14 @@ class pdf_oursin extends ModelePDFFactures
/** /**
* Affiche le total a payer * Show total to pay
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet facture * @param Facture $object Object invoice
* @param deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param posy Position depart * @param int $posy Position depart
* @param outputlangs Objet langs * @param Translate $outputlangs Objet langs
* @return y Position pour suite * @return int Position pour suite
*/ */
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{ {
@ -726,9 +727,15 @@ class pdf_oursin extends ModelePDFFactures
return ($tab2_top + ($tab2_hl * $index)); return ($tab2_top + ($tab2_hl * $index));
} }
/* /**
* Affiche la grille des lignes de factures * Show table for lines
* @param pdf objet PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $object, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $object, $outputlangs)
{ {
@ -777,13 +784,16 @@ class pdf_oursin extends ModelePDFFactures
return $pdf->GetY(); return $pdf->GetY();
} }
/* /**
* Affiche en-tete facture * Show top header of page.
* *
* @param pdf objet PDF * @param PDF &$pdf Object PDF
* @param fac objet facture * @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=0, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $langs,$conf; global $langs,$conf;
$langs->load("main"); $langs->load("main");
@ -1028,11 +1038,12 @@ class pdf_oursin extends ModelePDFFactures
} }
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf PDF factory *
* \param object Object invoice * @param PDF &$pdf PDF
* \param outputlang Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf, $object, $outputlangs) function _pagefoot(&$pdf, $object, $outputlangs)
{ {

View File

@ -41,7 +41,7 @@ class pdf_soleil extends ModelePDFFicheinter
/** /**
* Constructor * Constructor
* *
* @param DoliDB $DB Database handler * @param DoliDB $db Database handler
*/ */
function pdf_soleil($db) function pdf_soleil($db)
{ {
@ -331,9 +331,14 @@ class pdf_soleil extends ModelePDFFicheinter
} }
/** /**
* Affiche la grille des lignes d'intervention * Show table for lines
* *
* @param object $pdf Object PDF * @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -342,12 +347,12 @@ class pdf_soleil extends ModelePDFFicheinter
$pdf->SetXY($this->marge_gauche, $tab_top); $pdf->SetXY($this->marge_gauche, $tab_top);
$pdf->MultiCell(190,8,$outputlangs->transnoentities("Description"),0,'L',0); $pdf->MultiCell(190,8,$outputlangs->transnoentities("Description"),0,'L',0);
$pdf->line($this->marge_gauche, $tab_top + 8, $this->page_largeur-$this->marge_droite, $tab_top + 8 ); $pdf->line($this->marge_gauche, $tab_top + 8, $this->page_largeur-$this->marge_droite, $tab_top + 8);
$pdf->SetFont('','', $default_font_size - 1); $pdf->SetFont('','', $default_font_size - 1);
$pdf->MultiCell(0, 3, ''); // Set interline to 3 $pdf->MultiCell(0, 3, ''); // Set interline to 3
$pdf->SetXY($this->marge_gauche, $tab_top + 8 ); $pdf->SetXY($this->marge_gauche, $tab_top + 8);
$text=$object->description; $text=$object->description;
if ($object->duree > 0) if ($object->duree > 0)
{ {
@ -382,14 +387,15 @@ class pdf_soleil extends ModelePDFFicheinter
} }
/** /**
* Show header of document * Show top header of page.
* *
* @param object $pdf Object PDF * @param PDF &$pdf Object PDF
* @param object $object Object fichinter * @param Object $object Object to show
* @param int $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param object $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs; global $conf,$langs;
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
@ -556,12 +562,12 @@ class pdf_soleil extends ModelePDFFicheinter
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* *
* @param object $pdf Object PDF * @param PDF &$pdf PDF
* @param object $object Object fichinter * @param Object $object Object to show
* @param object $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* \remarks Need this->emetteur object * @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -294,8 +294,14 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
} }
/** /**
* \brief Affiche la grille des lignes * Show table for lines
* \param pdf objet PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -313,14 +319,15 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object delivery * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $langs,$conf,$mysoc; global $langs,$conf,$mysoc;
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
@ -444,11 +451,12 @@ class pdf_sirocco extends ModelePDFDeliveryOrder
} }
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf PDF factory *
* \param object Object invoice * @param PDF &$pdf PDF
* \param outputlangs Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -422,9 +422,15 @@ class pdf_typhon extends ModelePDFDeliveryOrder
} }
/* /**
* \brief Affiche la grille des lignes * Show table for lines
* \param pdf objet PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -468,14 +474,15 @@ class pdf_typhon extends ModelePDFDeliveryOrder
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object order * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $langs,$conf,$mysoc; global $langs,$conf,$mysoc;
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
@ -649,12 +656,12 @@ class pdf_typhon extends ModelePDFDeliveryOrder
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* Need this->emetteur object *
* * @param PDF &$pdf PDF
* @param pdf PDF factory * @param Object $object Object to show
* @param object Object invoice * @param Translate $outputlangs Object lang for output
* @param outputlangs Object lang for output * @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -289,9 +289,15 @@ class pdf_baleine extends ModelePDFProjects
} }
/* /**
* \brief Affiche la grille des lignes * Show table for lines
* \param pdf objet PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -315,14 +321,15 @@ class pdf_baleine extends ModelePDFProjects
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object project * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $langs,$conf,$mysoc; global $langs,$conf,$mysoc;
@ -399,12 +406,12 @@ class pdf_baleine extends ModelePDFProjects
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* Need this->emetteur object *
* * @param PDF &$pdf PDF
* @param pdf PDF factory * @param Object $object Object to show
* @param object Object invoice * @param Translate $outputlangs Object lang for output
* @param outputlangs Object lang for output * @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -427,13 +427,13 @@ class pdf_azur extends ModelePDFPropales
/** /**
* Affiche infos divers * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet facture * @param Object $object Object to show
* @param posy Position depart * @param int $posy Y
* @param outputlangs Objet langs * @param Translate $outputlangs Langs object
* @return y Position pour suite * @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -581,12 +581,12 @@ class pdf_azur extends ModelePDFPropales
/** /**
* Show total to pay * Show total to pay
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet propale * @param Facture $object Object invoice
* @param deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param posy Position depart * @param int $posy Position depart
* @param outputlangs Objet langs * @param Translate $outputlangs Objet langs
* @return y Position pour suite * @return int Position pour suite
*/ */
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{ {
@ -792,9 +792,14 @@ class pdf_azur extends ModelePDFPropales
} }
/** /**
* Affiche la grille des lignes de propales * Show table for lines
* *
* @param pdf objet PDF * @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -852,14 +857,15 @@ class pdf_azur extends ModelePDFPropales
} }
/** /**
* Show header of document * Show top header of page.
* *
* @param pdf Object PDF * @param PDF &$pdf Object PDF
* @param object Object commercial proposal * @param Object $object Object to show
* @param showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs; global $conf,$langs;
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
@ -1041,11 +1047,12 @@ class pdf_azur extends ModelePDFPropales
} }
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf PDF factory *
* \param object Object invoice * @param PDF &$pdf PDF
* \param outputlangs Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -427,13 +427,13 @@ class pdf_jaune extends ModelePDFPropales
/** /**
* Affiche infos divers * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet facture * @param Object $object Object to show
* @param posy Position depart * @param int $posy Y
* @param outputlangs Objet langs * @param Translate $outputlangs Langs object
* @return y Position pour suite * @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -581,12 +581,12 @@ class pdf_jaune extends ModelePDFPropales
/** /**
* Show total to pay * Show total to pay
* *
* @param pdf Objet PDF * @param PDF &$pdf Object PDF
* @param object Objet propale * @param Facture $object Object invoice
* @param deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param posy Position depart * @param int $posy Position depart
* @param outputlangs Objet langs * @param Translate $outputlangs Objet langs
* @return y Position pour suite * @return int Position pour suite
*/ */
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{ {
@ -792,9 +792,14 @@ class pdf_jaune extends ModelePDFPropales
} }
/** /**
* Affiche la grille des lignes de propales * Show table for lines
* *
* @param pdf objet PDF * @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -852,14 +857,15 @@ class pdf_jaune extends ModelePDFPropales
} }
/** /**
* Show header of document * Show top header of page.
* *
* @param pdf Object PDF * @param PDF &$pdf Object PDF
* @param object Object commercial proposal * @param Object $object Object to show
* @param showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $conf,$langs; global $conf,$langs;
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
@ -1041,11 +1047,12 @@ class pdf_jaune extends ModelePDFPropales
} }
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf PDF factory *
* \param object Object invoice * @param PDF &$pdf PDF
* \param outputlangs Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf,$object,$outputlangs) function _pagefoot(&$pdf,$object,$outputlangs)
{ {

View File

@ -205,14 +205,15 @@ class pdf_paiement
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $page, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $page, $showaddress, $outputlangs)
{ {
global $langs; global $langs;

View File

@ -391,11 +391,14 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
} }
/** /**
* \brief Show total to pay * Show total to pay
* \param pdf Object PDF *
* \param object Object invoice * @param PDF &$pdf Object PDF
* \param deja_regle Amount payed * @param Facture $object Object invoice
* \return y Next position * @param int $deja_regle Montant deja regle
* @param int $posy Position depart
* @param Translate $outputlangs Objet langs
* @return int Position pour suite
*/ */
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{ {
@ -579,8 +582,14 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
} }
/** /**
* Show the lines of invoice * Show table for lines
* @param pdf object PDF *
* @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -718,14 +727,15 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object order * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $langs,$conf,$mysoc; global $langs,$conf,$mysoc;
@ -871,11 +881,12 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
} }
/** /**
* \brief Show footer of page * Show footer of page. Need this->emetteur object
* \param pdf PDF factory *
* \param object Object invoice * @param PDF &$pdf PDF
* \param outputlang Object lang for output * @param Object $object Object to show
* \remarks Need this->emetteur object * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagefoot(&$pdf, $object, $outputlangs) function _pagefoot(&$pdf, $object, $outputlangs)
{ {

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr> * Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be> * Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
@ -427,13 +427,13 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* Show other information * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param PDF &$pdf Object PDF * @param PDF &$pdf Object PDF
* @param Facture $object Object invoice * @param Object $object Object to show
* @param int $posy Position start * @param int $posy Y
* @param Translate $outputlangs Object langs * @param Translate $outputlangs Langs object
* @return int Position pour suite * @return void
*/ */
function _tableau_info(&$pdf, $object, $posy, $outputlangs) function _tableau_info(&$pdf, $object, $posy, $outputlangs)
{ {
@ -571,7 +571,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
* @param int $deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param int $posy Position depart * @param int $posy Position depart
* @param Translate $outputlangs Objet langs * @param Translate $outputlangs Objet langs
* @return int Position pour suite * @return int Position pour suite
*/ */
function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs) function _tableau_tot(&$pdf, $object, $deja_regle, $posy, $outputlangs)
{ {
@ -761,9 +761,14 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
} }
/** /**
* Show the lines of order * Show table for lines
*
* @param PDF $pdf object PDF * @param PDF &$pdf Object PDF
* @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle)
* @param int $nexY Y
* @param Translate $outputlangs Langs object
* @return void
*/ */
function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs) function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs)
{ {
@ -822,14 +827,15 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
} }
/** /**
* Show header of page * Show top header of page.
* *
* @param $pdf Object PDF * @param PDF &$pdf Object PDF
* @param $object Object order * @param Object $object Object to show
* @param $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @return void
*/ */
function _pagehead(&$pdf, $object, $showaddress=1, $outputlangs) function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
{ {
global $langs,$conf,$mysoc; global $langs,$conf,$mysoc;
@ -984,12 +990,12 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
} }
/** /**
* Show footer of page * Show footer of page. Need this->emetteur object
* *
* \param pdf PDF factory * @param PDF &$pdf PDF
* \param object Object invoice * @param Object $object Object to show
* \param outputlang Object lang for output * @param Translate $outputlangs Object lang for output
* \remarks Need this->emetteur object * @return void
*/ */
function _pagefoot(&$pdf, $object, $outputlangs) function _pagefoot(&$pdf, $object, $outputlangs)
{ {