Add project ref and title
This commit is contained in:
parent
573d86c725
commit
f9b03596f6
@ -1522,6 +1522,30 @@ class pdf_azur extends ModelePDFPropales
|
|||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("RefCustomer")." : " . $outputlangs->convToOutputCharset($object->ref_client), '', 'R');
|
$pdf->MultiCell(100, 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');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (! empty($conf->global->PDF_SHOW_PROJECT))
|
||||||
|
{
|
||||||
|
$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("RefProject")." : " . (empty($object->project->ref)?'':$object->projet->ref), '', 'R');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$posy+=4;
|
$posy+=4;
|
||||||
$pdf->SetXY($posx, $posy);
|
$pdf->SetXY($posx, $posy);
|
||||||
$pdf->SetTextColor(0, 0, 60);
|
$pdf->SetTextColor(0, 0, 60);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user