Merge pull request #1110 from GPCsolutions/noerrorsondocuments

Avoid printing errors on documents that are fine without
This commit is contained in:
Laurent Destailleur 2013-07-19 07:41:51 -07:00
commit 7aa5daaeaf

View File

@ -695,13 +695,7 @@ class pdf_crabe extends ModelePDFFactures
&& ! $conf->global->FACTURE_CHQ_NUMBER
&& ! $conf->global->FACTURE_RIB_NUMBER)
{
$pdf->SetXY($this->marge_gauche, $posy);
$pdf->SetTextColor(200,0,0);
$pdf->SetFont('','B', $default_font_size - 2);
$pdf->MultiCell(80, 3, $outputlangs->transnoentities("ErrorNoPaiementModeConfigured"),0,'L',0);
$pdf->SetTextColor(0,0,0);
$posy=$pdf->GetY()+1;
$this->error = $outputlangs->transnoentities("ErrorNoPaiementModeConfigured");
}
// Show payment mode