forked from Wavyzz/dolibarr
Add Project Title in header of pdf
Add project Title if Global Constant PDF_SHOW_PROJECT_TITLE is active.
This commit is contained in:
@@ -1635,6 +1635,18 @@ class pdf_crabe extends ModelePDFFactures
|
||||
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("RefCustomer")." : " . $outputlangs->convToOutputCharset($object->ref_client), '', 'R');
|
||||
}
|
||||
|
||||
if (! empty($conf->global->PDF_SHOW_PROJECT_TITLE))
|
||||
{
|
||||
$object->fetch_projet();
|
||||
if (! empty($object->project->ref))
|
||||
{
|
||||
$posy+=3;
|
||||
$pdf->SetXY($posx,$posy);
|
||||
$pdf->SetTextColor(0,0,60);
|
||||
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("Project")." : " . (empty($object->project->title)?'':$object->projet->title), '', 'R');
|
||||
}
|
||||
}
|
||||
|
||||
$objectidnext=$object->getIdReplacingInvoice('validated');
|
||||
if ($object->type == 0 && $objectidnext)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user