Merge pull request #14429 from grandoc/new_branch_08_08_2020

New branch 08 08 2020
This commit is contained in:
Laurent Destailleur 2020-08-17 00:04:08 +02:00 committed by GitHub
commit 4043e4ed3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
21 changed files with 119 additions and 124 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

@ -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))

View File

@ -4,7 +4,7 @@
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr> * Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
* Copyright (C) 2011 Fabrice CHERRIER * Copyright (C) 2011 Fabrice CHERRIER
* Copyright (C) 2013-2019 Philippe Grand <philippe.grand@atoo-net.com> * Copyright (C) 2013-2020 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com> * Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr> * Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* *
@ -500,7 +500,7 @@ class pdf_strato extends ModelePDFContract
/** /**
* 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
@ -550,7 +550,7 @@ class pdf_strato extends ModelePDFContract
/** /**
* Show footer signature of page * Show footer signature of page
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param int $tab_top tab height position * @param int $tab_top tab height position
* @param int $tab_height tab height * @param int $tab_height tab height
* @param Translate $outputlangs Object language for output * @param Translate $outputlangs Object language for output
@ -579,7 +579,7 @@ class pdf_strato extends ModelePDFContract
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param CommonObject $object Object to show * @param CommonObject $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

View File

@ -671,7 +671,7 @@ class pdf_espadon extends ModelePdfExpedition
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $deja_regle Amount already paid * @param int $deja_regle Amount already paid
* @param int $posy Start Position * @param int $posy Start Position
@ -772,7 +772,7 @@ class pdf_espadon extends ModelePdfExpedition
/** /**
* 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
@ -822,7 +822,7 @@ class pdf_espadon extends ModelePdfExpedition
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -1065,7 +1065,7 @@ class pdf_espadon extends ModelePdfExpedition
/** /**
* 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

View File

@ -642,7 +642,7 @@ class pdf_standard extends ModeleExpenseReport
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -866,7 +866,7 @@ class pdf_standard extends ModeleExpenseReport
/** /**
* Show table for lines * Show table for lines
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param int $tab_top Tab top * @param int $tab_top Tab top
* @param int $tab_height Tab height * @param int $tab_height Tab height
* @param int $nexY next y * @param int $nexY next y
@ -980,7 +980,7 @@ class pdf_standard extends ModeleExpenseReport
/** /**
* Show payments table * Show payments table
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object invoice * @param Object $object Object invoice
* @param int $posy Position y in PDF * @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output * @param Translate $outputlangs Object langs for output
@ -1092,7 +1092,7 @@ class pdf_standard extends ModeleExpenseReport
/** /**
* 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

View File

@ -917,7 +917,7 @@ class pdf_sponge extends ModelePDFFactures
/** /**
* Show payments table * Show payments table
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object invoice * @param Object $object Object invoice
* @param int $posy Position y in PDF * @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output * @param Translate $outputlangs Object langs for output
@ -1055,7 +1055,7 @@ class pdf_sponge extends ModelePDFFactures
/** /**
* Show miscellaneous information (payment mode, payment term, ...) * Show miscellaneous information (payment mode, payment term, ...)
* *
* @param tcpdf $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
@ -1760,7 +1760,7 @@ class pdf_sponge extends ModelePDFFactures
/** /**
* Show table for lines * Show table for lines
* *
* @param tcpdf $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 (not used) * @param int $nexY Y (not used)
@ -1820,7 +1820,7 @@ class pdf_sponge extends ModelePDFFactures
/** /**
* Show top header of page. * Show top header of page.
* *
* @param Tcpdf $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -2141,7 +2141,7 @@ class pdf_sponge extends ModelePDFFactures
/** /**
* 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

View File

@ -472,7 +472,7 @@ class pdf_soleil extends ModelePDFFicheinter
/** /**
* 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
@ -536,7 +536,7 @@ class pdf_soleil extends ModelePDFFicheinter
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -709,7 +709,7 @@ class pdf_soleil extends ModelePDFFicheinter
/** /**
* 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

View File

@ -3,7 +3,7 @@
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2005-2014 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be> * Copyright (C) 2007 Franky Van Liedekerke <franky.van.liedekerke@telenet.be>
* Copyright (C) 2008 Chiptronik * Copyright (C) 2008 Chiptronik
* Copyright (C) 2011-2019 Philippe Grand <philippe.grand@atoo-net.com> * Copyright (C) 2011-2020 Philippe Grand <philippe.grand@atoo-net.com>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com> * Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
@ -627,7 +627,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
/** /**
* 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
@ -656,7 +656,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -722,7 +722,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -896,7 +896,7 @@ class pdf_typhon extends ModelePDFDeliveryOrder
/** /**
* 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

View File

@ -37,7 +37,7 @@ class pdf_standard extends CommonStickerGenerator
/** /**
* Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0) * Output a sticker on page at position _COUNTX, _COUNTY (_COUNTX and _COUNTY start from 0)
* *
* @param PDF $pdf PDF reference * @param TCPDF $pdf PDF reference
* @param Translate $outputlangs Output langs * @param Translate $outputlangs Output langs
* @param array $param Associative array containing label content and optional parameters * @param array $param Associative array containing label content and optional parameters
* @return void * @return void
@ -53,7 +53,7 @@ class pdf_standard extends CommonStickerGenerator
* - __LOGO__ is replace with company logo * - __LOGO__ is replace with company logo
* - __PHOTO__ is replace with photo provided as parameter * - __PHOTO__ is replace with photo provided as parameter
* *
* @param PDF $pdf PDF * @param TCPDF $pdf PDF
* @param string $textleft Text left * @param string $textleft Text left
* @param string $header Header * @param string $header Header
* @param string $footer Footer * @param string $footer Footer

View File

@ -516,7 +516,7 @@ class pdf_baleine extends ModelePDFProjects
/** /**
* 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
@ -567,7 +567,7 @@ class pdf_baleine extends ModelePDFProjects
/** /**
* 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
@ -658,7 +658,7 @@ class pdf_baleine extends ModelePDFProjects
/** /**
* 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

@ -691,7 +691,7 @@ class pdf_beluga extends ModelePDFProjects
/** /**
* 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
@ -742,7 +742,7 @@ class pdf_beluga extends ModelePDFProjects
/** /**
* 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
@ -809,7 +809,7 @@ class pdf_beluga extends ModelePDFProjects
/** /**
* 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

@ -447,7 +447,7 @@ class pdf_timespent extends ModelePDFProjects
/** /**
* 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
@ -498,7 +498,7 @@ class pdf_timespent extends ModelePDFProjects
/** /**
* 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
@ -589,7 +589,7 @@ class pdf_timespent extends ModelePDFProjects
/** /**
* 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

@ -1023,7 +1023,7 @@ class pdf_azur extends ModelePDFPropales
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Propal $object Object propal * @param Propal $object Object propal
* @param int $deja_regle Amount already paid * @param int $deja_regle Amount already paid
* @param int $posy Start position * @param int $posy Start position
@ -1297,7 +1297,7 @@ class pdf_azur extends ModelePDFPropales
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -1414,7 +1414,7 @@ class pdf_azur extends ModelePDFPropales
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -1665,7 +1665,7 @@ class pdf_azur extends ModelePDFPropales
/** /**
* 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
@ -1683,7 +1683,7 @@ class pdf_azur extends ModelePDFPropales
/** /**
* 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

View File

@ -1145,7 +1145,7 @@ class pdf_cyan extends ModelePDFPropales
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param int $posy Position depart * @param int $posy Position depart
@ -1432,7 +1432,7 @@ class pdf_cyan extends ModelePDFPropales
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -1486,7 +1486,7 @@ class pdf_cyan extends ModelePDFPropales
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -1737,7 +1737,7 @@ class pdf_cyan extends ModelePDFPropales
/** /**
* 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
@ -1753,7 +1753,7 @@ class pdf_cyan extends ModelePDFPropales
/** /**
* 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

View File

@ -573,7 +573,7 @@ class pdf_squille extends ModelePdfReception
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param int $posy Position depart * @param int $posy Position depart
@ -675,7 +675,7 @@ class pdf_squille extends ModelePdfReception
/** /**
* 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
@ -757,7 +757,7 @@ class pdf_squille extends ModelePdfReception
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -1003,7 +1003,7 @@ class pdf_squille extends ModelePdfReception
/** /**
* 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

View File

@ -617,7 +617,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object invoice * @param Object $object Object invoice
* @param int $deja_regle Amount already paid (in the currency of invoice) * @param int $deja_regle Amount already paid (in the currency of invoice)
* @param int $posy Position depart * @param int $posy Position depart
@ -843,7 +843,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -949,7 +949,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
/** /**
* Show payments table * Show payments table
* *
* @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 Position y in PDF * @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output * @param Translate $outputlangs Object langs for output
@ -1040,7 +1040,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param FactureFournisseur $object Object to show * @param FactureFournisseur $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
@ -1252,7 +1252,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
/** /**
* 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 FactureFournisseur $object Object to show * @param FactureFournisseur $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

@ -808,7 +808,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
/** /**
* Show payments table * Show payments table
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param CommandeFournisseur $object Object order * @param CommandeFournisseur $object Object order
* @param int $posy Position y in PDF * @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output * @param Translate $outputlangs Object langs for output
@ -824,7 +824,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
/** /**
* 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 CommandeFournisseur $object Object to show * @param CommandeFournisseur $object Object to show
* @param int $posy Y * @param int $posy Y
* @param Translate $outputlangs Langs object * @param Translate $outputlangs Langs object
@ -890,7 +890,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param int $posy Position depart * @param int $posy Position depart
@ -1103,7 +1103,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -1176,7 +1176,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param CommandeFournisseur $object Object to show * @param CommandeFournisseur $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
@ -1416,7 +1416,7 @@ class pdf_cornas extends ModelePDFSuppliersOrders
/** /**
* 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 CommandeFournisseur $object Object to show * @param CommandeFournisseur $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

@ -693,7 +693,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* Show payments table * Show payments table
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param CommandeFournisseur $object Object order * @param CommandeFournisseur $object Object order
* @param int $posy Position y in PDF * @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output * @param Translate $outputlangs Object langs for output
@ -709,7 +709,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* 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 CommandeFournisseur $object Object to show * @param CommandeFournisseur $object Object to show
* @param int $posy Y * @param int $posy Y
* @param Translate $outputlangs Langs object * @param Translate $outputlangs Langs object
@ -722,8 +722,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$default_font_size = pdf_getPDFFontSize($outputlangs); $default_font_size = pdf_getPDFFontSize($outputlangs);
// If France, show VAT mention if not applicable // If France, show VAT mention if not applicable
if ($this->emetteur->country_code == 'FR' && empty($mysoc->tva_assuj)) if ($this->emetteur->country_code == 'FR' && empty($mysoc->tva_assuj)) {
{
$pdf->SetFont('', 'B', $default_font_size - 2); $pdf->SetFont('', 'B', $default_font_size - 2);
$pdf->SetXY($this->marge_gauche, $posy); $pdf->SetXY($this->marge_gauche, $posy);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("VATIsNotUsedForInvoice"), 0, 'L', 0); $pdf->MultiCell(100, 3, $outputlangs->transnoentities("VATIsNotUsedForInvoice"), 0, 'L', 0);
@ -734,16 +733,15 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$posxval = 52; $posxval = 52;
// Show payments conditions // Show payments conditions
if (!empty($object->cond_reglement_code) || $object->cond_reglement) if (!empty($object->cond_reglement_code) || $object->cond_reglement_id) {
{
$pdf->SetFont('', 'B', $default_font_size - 2); $pdf->SetFont('', 'B', $default_font_size - 2);
$pdf->SetXY($this->marge_gauche, $posy); $pdf->SetXY($this->marge_gauche, $posy);
$titre = $outputlangs->transnoentities("PaymentConditions").':'; $titre = $outputlangs->transnoentities("PaymentConditions") . ':';
$pdf->MultiCell(80, 4, $titre, 0, 'L'); $pdf->MultiCell(80, 4, $titre, 0, 'L');
$pdf->SetFont('', '', $default_font_size - 2); $pdf->SetFont('', '', $default_font_size - 2);
$pdf->SetXY($posxval, $posy); $pdf->SetXY($posxval, $posy);
$lib_condition_paiement = $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) != ('PaymentCondition'.$object->cond_reglement_code) ? $outputlangs->transnoentities("PaymentCondition".$object->cond_reglement_code) : $outputlangs->convToOutputCharset($object->cond_reglement); $lib_condition_paiement = $outputlangs->transnoentities("PaymentCondition" . $object->cond_reglement_code) != ('PaymentCondition' . $object->cond_reglement_code) ? $outputlangs->transnoentities("PaymentCondition" . $object->cond_reglement_code) : $outputlangs->convToOutputCharset($object->cond_reglement_id);
$lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement); $lib_condition_paiement = str_replace('\n', "\n", $lib_condition_paiement);
$pdf->MultiCell(80, 4, $lib_condition_paiement, 0, 'L'); $pdf->MultiCell(80, 4, $lib_condition_paiement, 0, 'L');
@ -751,22 +749,20 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
} }
// Show payment mode // Show payment mode
if (!empty($object->mode_reglement_code)) if (!empty($object->mode_reglement_code)) {
{
$pdf->SetFont('', 'B', $default_font_size - 2); $pdf->SetFont('', 'B', $default_font_size - 2);
$pdf->SetXY($this->marge_gauche, $posy); $pdf->SetXY($this->marge_gauche, $posy);
$titre = $outputlangs->transnoentities("PaymentMode").':'; $titre = $outputlangs->transnoentities("PaymentMode") . ':';
$pdf->MultiCell(80, 5, $titre, 0, 'L'); $pdf->MultiCell(80, 5, $titre, 0, 'L');
$pdf->SetFont('', '', $default_font_size - 2); $pdf->SetFont('', '', $default_font_size - 2);
$pdf->SetXY($posxval, $posy); $pdf->SetXY($posxval, $posy);
$lib_mode_reg = $outputlangs->transnoentities("PaymentType".$object->mode_reglement_code) != ('PaymentType'.$object->mode_reglement_code) ? $outputlangs->transnoentities("PaymentType".$object->mode_reglement_code) : $outputlangs->convToOutputCharset($object->mode_reglement); $lib_mode_reg = $outputlangs->transnoentities("PaymentType" . $object->mode_reglement_code) != ('PaymentType' . $object->mode_reglement_code) ? $outputlangs->transnoentities("PaymentType" . $object->mode_reglement_code) : $outputlangs->convToOutputCharset($object->mode_reglement);
$pdf->MultiCell(80, 5, $lib_mode_reg, 0, 'L'); $pdf->MultiCell(80, 5, $lib_mode_reg, 0, 'L');
$posy = $pdf->GetY() + 2; $posy = $pdf->GetY() + 2;
} }
return $posy; return $posy;
} }
@ -775,7 +771,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param int $posy Position depart * @param int $posy Position depart
@ -988,7 +984,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -1094,7 +1090,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param CommandeFournisseur $object Object to show * @param CommandeFournisseur $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
@ -1174,7 +1170,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
$pdf->SetXY($posx, $posy); $pdf->SetXY($posx, $posy);
$langs->load("projects"); $langs->load("projects");
$pdf->SetTextColor(0, 0, 60); $pdf->SetTextColor(0, 0, 60);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("Project")." : ".(empty($object->project->ref) ? '' : $object->projet->ref), '', 'R'); $pdf->MultiCell(100, 3, $outputlangs->transnoentities("Project")." : ".(empty($object->project->ref) ? '' : $object->project->ref), '', 'R');
} }
} }
@ -1333,7 +1329,7 @@ class pdf_muscadet extends ModelePDFSuppliersOrders
/** /**
* 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 CommandeFournisseur $object Object to show * @param CommandeFournisseur $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

@ -508,7 +508,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param PaiementFourn $object Object PaiementFourn * @param PaiementFourn $object Object PaiementFourn
* @param int $posy Position depart * @param int $posy Position depart
* @param Translate $outputlangs Objet langs * @param Translate $outputlangs Objet langs
@ -566,7 +566,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
/** /**
* Show table for lines * Show table for lines
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param integer $tab_top Top position of table * @param integer $tab_top Top position of table
* @param integer $tab_height Height of table (rectangle) * @param integer $tab_height Height of table (rectangle)
* @param int $nexY Y (not used) * @param int $nexY Y (not used)
@ -611,7 +611,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param FactureFournisseur $object Object to show * @param FactureFournisseur $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
@ -789,7 +789,7 @@ class pdf_standard extends ModelePDFSuppliersPayments
/** /**
* 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 FactureFournisseur $object Object to show * @param FactureFournisseur $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

@ -691,7 +691,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
/** /**
* Show payments table * Show payments table
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object proposal * @param Object $object Object proposal
* @param int $posy Position y in PDF * @param int $posy Position y in PDF
* @param Translate $outputlangs Object langs for output * @param Translate $outputlangs Object langs for output
@ -707,7 +707,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
/** /**
* 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
@ -746,7 +746,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
$pdf->SetFont('', '', $default_font_size - 2); $pdf->SetFont('', '', $default_font_size - 2);
$pdf->SetXY($posxval, $posy); $pdf->SetXY($posxval, $posy);
//$dlp=dol_print_date($object->date_livraison,"daytext",false,$outputlangs,true); //$dlp=dol_print_date($object->date_livraison,"daytext",false,$outputlangs,true);
$pdf->MultiCell(80, 4, $dlp, 0, 'L'); $pdf->MultiCell(80, 4, '', 0, 'L');
$posy = $pdf->GetY() + 1; $posy = $pdf->GetY() + 1;
} }
@ -874,7 +874,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
/** /**
* Show total to pay * Show total to pay
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Facture $object Object invoice * @param Facture $object Object invoice
* @param int $deja_regle Montant deja regle * @param int $deja_regle Montant deja regle
* @param int $posy Position depart * @param int $posy Position depart
@ -1093,13 +1093,10 @@ class pdf_aurore extends ModelePDFSupplierProposal
$pdf->SetTextColor(0, 0, 0); $pdf->SetTextColor(0, 0, 0);
/*
$resteapayer = $object->total_ttc - $deja_regle; $resteapayer = $object->total_ttc - $deja_regle;
if (! empty($object->paye)) $resteapayer=0; if (!empty($object->paye)) $resteapayer = 0;
*/
if ($deja_regle > 0) if ($deja_regle > 0) {
{
$index++; $index++;
$pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index); $pdf->SetXY($col1x, $tab2_top + $tab2_hl * $index);
@ -1145,7 +1142,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
/** /**
* 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 (not used) * @param int $nexY Y (not used)
@ -1251,7 +1248,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
/** /**
* Show top header of page. * Show top header of page.
* *
* @param PDF $pdf Object PDF * @param TCPDF $pdf Object PDF
* @param Object $object Object to show * @param Object $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
@ -1463,7 +1460,7 @@ class pdf_aurore extends ModelePDFSupplierProposal
/** /**
* 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