update code for a better php8 compliance
This commit is contained in:
parent
ee04c5a0fc
commit
95558914a9
@ -1032,12 +1032,12 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
// Show payment mode CHQ
|
// Show payment mode CHQ
|
||||||
if (empty($object->mode_reglement_code) || $object->mode_reglement_code == 'CHQ') {
|
if (empty($object->mode_reglement_code) || $object->mode_reglement_code == 'CHQ') {
|
||||||
// Si mode reglement non force ou si force a CHQ
|
// Si mode reglement non force ou si force a CHQ
|
||||||
if (!empty($conf->global->FACTURE_CHQ_NUMBER)) {
|
if (getDolGlobalInt('FACTURE_CHQ_NUMBER')) {
|
||||||
$diffsizetitle = (empty($conf->global->PDF_DIFFSIZE_TITLE) ? 3 : $conf->global->PDF_DIFFSIZE_TITLE);
|
$diffsizetitle = (empty($conf->global->PDF_DIFFSIZE_TITLE) ? 3 : $conf->global->PDF_DIFFSIZE_TITLE);
|
||||||
|
|
||||||
if ($conf->global->FACTURE_CHQ_NUMBER > 0) {
|
if ($conf->global->FACTURE_CHQ_NUMBER > 0) {
|
||||||
$account = new Account($this->db);
|
$account = new Account($this->db);
|
||||||
$account->fetch($conf->global->FACTURE_CHQ_NUMBER);
|
$account->fetch(getDolGlobalInt('FACTURE_CHQ_NUMBER'));
|
||||||
|
|
||||||
$pdf->SetXY($this->marge_gauche, $posy);
|
$pdf->SetXY($this->marge_gauche, $posy);
|
||||||
$pdf->SetFont('', 'B', $default_font_size - $diffsizetitle);
|
$pdf->SetFont('', 'B', $default_font_size - $diffsizetitle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user