From f8f1d3a0df1410566cfcab2faf2961deded823d7 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 25 Oct 2012 09:24:05 +0200 Subject: [PATCH] Fix: borken feature, add PROPALE_PDF_PAIEMENT_ENABLED for view paiement mode and paiement method in pdf --- htdocs/core/modules/propale/doc/pdf_azur.modules.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/modules/propale/doc/pdf_azur.modules.php b/htdocs/core/modules/propale/doc/pdf_azur.modules.php index 9691c04e307..3fd320a1991 100644 --- a/htdocs/core/modules/propale/doc/pdf_azur.modules.php +++ b/htdocs/core/modules/propale/doc/pdf_azur.modules.php @@ -525,7 +525,7 @@ class pdf_azur extends ModelePDFPropales } // Show payments conditions - if (isset($object->type) && $object->type != 2 && ($object->cond_reglement_code || $object->cond_reglement)) + if (! empty($conf->global->PROPALE_PDF_PAIEMENT_ENABLED) && ($object->cond_reglement_code || $object->cond_reglement)) { $pdf->SetFont('','B', $default_font_size - 2); $pdf->SetXY($this->marge_gauche, $posy); @@ -542,7 +542,7 @@ class pdf_azur extends ModelePDFPropales } - if (isset($object->type) && $object->type != 2) + if (! empty($conf->global->PROPALE_PDF_PAIEMENT_ENABLED)) { // Check a payment mode is defined if (empty($object->mode_reglement_code)