From 4a1fd59f4ae9a2eecfdcf1344d4e767d6f7f375f Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 5 May 2006 18:49:56 +0000 Subject: [PATCH] =?UTF-8?q?Si=20module=20banque=20non=20actif=20on=20impos?= =?UTF-8?q?e=20pas=20d=E9finition=20d'un=20compte=20pour=20le=20paiement?= =?UTF-8?q?=20des=20factures=20crabes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../includes/modules/facture/pdf_crabe.modules.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/includes/modules/facture/pdf_crabe.modules.php b/htdocs/includes/modules/facture/pdf_crabe.modules.php index ace21e36ac3..798cd7a674c 100644 --- a/htdocs/includes/modules/facture/pdf_crabe.modules.php +++ b/htdocs/includes/modules/facture/pdf_crabe.modules.php @@ -329,7 +329,7 @@ class pdf_crabe extends ModelePDFFactures /* * Mode de règlement */ - if ((! defined("FACTURE_CHQ_NUMBER") || ! FACTURE_CHQ_NUMBER) && (! defined("FACTURE_RIB_NUMBER") || ! FACTURE_RIB_NUMBER)) + if ($conf->banque->enable && (! $conf->global->FACTURE_CHQ_NUMBER && ! $conf->global->FACTURE_RIB_NUMBER)) { $pdf->SetXY($this->marge_gauche, 228); $pdf->SetTextColor(200,0,0); @@ -342,12 +342,12 @@ class pdf_crabe extends ModelePDFFactures /* * Propose mode règlement par CHQ */ - if (defined("FACTURE_CHQ_NUMBER")) + if ($conf->global->FACTURE_CHQ_NUMBER) { - if (FACTURE_CHQ_NUMBER > 0) + if ($conf->global->FACTURE_CHQ_NUMBER > 0) { $account = new Account($this->db); - $account->fetch(FACTURE_CHQ_NUMBER); + $account->fetch($conf->global->FACTURE_CHQ_NUMBER); $pdf->SetXY($this->marge_gauche, 227); $pdf->SetFont('Arial','B',8); @@ -361,12 +361,12 @@ class pdf_crabe extends ModelePDFFactures /* * Propose mode règlement par RIB */ - if (defined("FACTURE_RIB_NUMBER")) + if ($conf->global->FACTURE_RIB_NUMBER) { - if (FACTURE_RIB_NUMBER > 0) + if ($conf->global->FACTURE_RIB_NUMBER) { $account = new Account($this->db); - $account->fetch(FACTURE_RIB_NUMBER); + $account->fetch($conf->global->FACTURE_RIB_NUMBER); $this->marges['g']=$this->marge_gauche;