Fixed implementation for #18373
This commit is contained in:
parent
fc42c37e87
commit
c188ef0438
@ -1702,10 +1702,17 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$title .= $outputlangsbis->transnoentities("InvoiceProForma");
|
$title .= $outputlangsbis->transnoentities("InvoiceProForma");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$title .= ' '.$outputlangs->convToOutputCharset($object->ref);
|
||||||
|
if ($object->statut == $object::STATUS_DRAFT) {
|
||||||
|
$pdf->SetTextColor(128, 0, 0);
|
||||||
|
$title .= ' - '.$outputlangs->transnoentities("NotValidated");
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->MultiCell($w, 3, $title, '', 'R');
|
$pdf->MultiCell($w, 3, $title, '', 'R');
|
||||||
|
|
||||||
$pdf->SetFont('', 'B', $default_font_size);
|
$pdf->SetFont('', 'B', $default_font_size);
|
||||||
|
|
||||||
|
/*
|
||||||
$posy += 5;
|
$posy += 5;
|
||||||
$pdf->SetXY($posx, $posy);
|
$pdf->SetXY($posx, $posy);
|
||||||
$pdf->SetTextColor(0, 0, 60);
|
$pdf->SetTextColor(0, 0, 60);
|
||||||
@ -1714,9 +1721,9 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetTextColor(128, 0, 0);
|
$pdf->SetTextColor(128, 0, 0);
|
||||||
$textref .= ' - '.$outputlangs->transnoentities("NotValidated");
|
$textref .= ' - '.$outputlangs->transnoentities("NotValidated");
|
||||||
}
|
}
|
||||||
$pdf->MultiCell($w, 4, $textref, '', 'R');
|
$pdf->MultiCell($w, 4, $textref, '', 'R');*/
|
||||||
|
|
||||||
$posy += 1;
|
$posy += 3;
|
||||||
$pdf->SetFont('', '', $default_font_size - 2);
|
$pdf->SetFont('', '', $default_font_size - 2);
|
||||||
|
|
||||||
if ($object->ref_client) {
|
if ($object->ref_client) {
|
||||||
|
|||||||
@ -1939,10 +1939,17 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
$title .= $outputlangsbis->transnoentities("InvoiceProForma");
|
$title .= $outputlangsbis->transnoentities("InvoiceProForma");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$title .= ' '.$outputlangs->convToOutputCharset($object->ref);
|
||||||
|
if ($object->statut == $object::STATUS_DRAFT) {
|
||||||
|
$pdf->SetTextColor(128, 0, 0);
|
||||||
|
$title .= ' - '.$outputlangs->transnoentities("NotValidated");
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->MultiCell($w, 3, $title, '', 'R');
|
$pdf->MultiCell($w, 3, $title, '', 'R');
|
||||||
|
|
||||||
$pdf->SetFont('', 'B', $default_font_size);
|
$pdf->SetFont('', 'B', $default_font_size);
|
||||||
|
|
||||||
|
/*
|
||||||
$posy += 5;
|
$posy += 5;
|
||||||
$pdf->SetXY($posx, $posy);
|
$pdf->SetXY($posx, $posy);
|
||||||
$pdf->SetTextColor(0, 0, 60);
|
$pdf->SetTextColor(0, 0, 60);
|
||||||
@ -1951,9 +1958,9 @@ class pdf_sponge extends ModelePDFFactures
|
|||||||
$pdf->SetTextColor(128, 0, 0);
|
$pdf->SetTextColor(128, 0, 0);
|
||||||
$textref .= ' - '.$outputlangs->transnoentities("NotValidated");
|
$textref .= ' - '.$outputlangs->transnoentities("NotValidated");
|
||||||
}
|
}
|
||||||
$pdf->MultiCell($w, 4, $textref, '', 'R');
|
$pdf->MultiCell($w, 4, $textref, '', 'R');*/
|
||||||
|
|
||||||
$posy += 1;
|
$posy += 3;
|
||||||
$pdf->SetFont('', '', $default_font_size - 2);
|
$pdf->SetFont('', '', $default_font_size - 2);
|
||||||
|
|
||||||
if ($object->ref_client) {
|
if ($object->ref_client) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user