Change comment to fixe a lot of undefined method

This commit is contained in:
Philippe GRAND 2020-08-03 10:13:18 +02:00
parent 0d6274c8fe
commit 85b2adaaec
2 changed files with 10 additions and 8 deletions

View File

@ -424,7 +424,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
/** /**
* Show table for lines * Show table for lines
* *
* @param PDF $pdf Object PDF * @param TCPDF &$pdf Object PDF
* @param string $tab_top Top position of table * @param string $tab_top Top position of table
* @param string $tab_height Height of table (rectangle) * @param string $tab_height Height of table (rectangle)
* @param int $nexY Y * @param int $nexY Y
@ -447,7 +447,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
/** /**
* Show miscellaneous information (payment mode, payment term, ...) * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param PDF $pdf Object PDF * @param TCPDF &$pdf Object PDF
* @param Object $object Object to show * @param Object $object Object to show
* @param int $posy Y * @param int $posy Y
* @param Translate $outputlangs Langs object * @param Translate $outputlangs Langs object
@ -485,7 +485,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
/** /**
* Show area for the customer to sign * Show area for the customer to sign
* *
* @param PDF $pdf Object PDF * @param TCPDF &$pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $posy Position depart * @param int $posy Position depart
* @param Translate $outputlangs Objet langs * @param Translate $outputlangs Objet langs
@ -527,7 +527,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF &$pdf Object PDF
* @param Project $object Object to show * @param Project $object Object to show
* @param int $showaddress 0=no, 1=yes * @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
@ -617,7 +617,7 @@ class pdf_sepamandate extends ModeleBankAccountDoc
/** /**
* Show footer of page. Need this->emetteur object * Show footer of page. Need this->emetteur object
* *
* @param PDF $pdf PDF * @param TCPDF &$pdf PDF
* @param Project $object Object to show * @param Project $object Object to show
* @param Translate $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text * @param int $hidefreetext 1=Hide free text

View File

@ -213,7 +213,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
/** /**
* Generate Header * Generate Header
* *
* @param PDF $pdf Pdf object * @param TCPDF &$pdf Pdf object
* @param int $page Current page number * @param int $page Current page number
* @param int $pages Total number of pages * @param int $pages Total number of pages
* @param Translate $outputlangs Object language for output * @param Translate $outputlangs Object language for output
@ -321,7 +321,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
/** /**
* Output array * Output array
* *
* @param PDF $pdf PDF object * @param TCPDF &$pdf PDF object
* @param int $pagenb Page nb * @param int $pagenb Page nb
* @param int $pages Pages * @param int $pages Pages
* @param Translate $outputlangs Object lang * @param Translate $outputlangs Object lang
@ -390,7 +390,7 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
/** /**
* Show footer of page. Need this->emetteur object * Show footer of page. Need this->emetteur object
* *
* @param PDF $pdf PDF * @param TCPDF &$pdf PDF
* @param Object $object Object to show * @param Object $object Object to show
* @param Translate $outputlangs Object lang for output * @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text * @param int $hidefreetext 1=Hide free text
@ -404,6 +404,8 @@ class BordereauChequeBlochet extends ModeleChequeReceipts
$showdetails = $conf->global->MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS; $showdetails = $conf->global->MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS;
// Line of free text // Line of free text
$substitutionarray = pdf_getSubstitutionArray($outputlangs, null, $object);
complete_substitutions_array($substitutionarray, $outputlangs, $object);
$newfreetext = ''; $newfreetext = '';
$paramfreetext = 'BANK_CHEQUERECEIPT_FREE_TEXT'; $paramfreetext = 'BANK_CHEQUERECEIPT_FREE_TEXT';
if (!empty($conf->global->$paramfreetext)) if (!empty($conf->global->$paramfreetext))