mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Add Project Title in header of pdf
Add project Title if Global Constant PDF_SHOW_PROJECT_TITLE is active.
This commit is contained in:
@@ -1634,6 +1634,18 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$pdf->SetTextColor(0, 0, 60);
|
$pdf->SetTextColor(0, 0, 60);
|
||||||
$pdf->MultiCell($w, 3, $outputlangs->transnoentities("RefCustomer")." : " . $outputlangs->convToOutputCharset($object->ref_client), '', 'R');
|
$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');
|
$objectidnext=$object->getIdReplacingInvoice('validated');
|
||||||
if ($object->type == 0 && $objectidnext)
|
if ($object->type == 0 && $objectidnext)
|
||||||
|
|||||||
Reference in New Issue
Block a user