Fix: borken feature, add PROPALE_PDF_PAIEMENT_ENABLED for view paiement

mode and paiement method in pdf
This commit is contained in:
Regis Houssin 2012-10-25 09:24:05 +02:00
parent 1cbd2a1b1c
commit f8f1d3a0df

View File

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