Fix: customer ref is very important for a best traceability

This commit is contained in:
Regis Houssin 2012-10-10 11:59:11 +02:00
parent 62f170d3d7
commit 10bd942328
2 changed files with 17 additions and 1 deletions

View File

@ -959,7 +959,15 @@ class pdf_einstein extends ModelePDFCommandes
$posy+=1;
$pdf->SetFont('','', $default_font_size - 1);
$posy+=5;
if ($object->ref_client)
{
$posy+=5;
$pdf->SetXY($posx,$posy);
$pdf->SetTextColor(0,0,60);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("RefCustomer")." : " . $outputlangs->convToOutputCharset($object->ref_client), '', 'R');
}
$posy+=4;
$pdf->SetXY($posx,$posy);
$pdf->SetTextColor(0,0,60);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("OrderDate")." : " . dol_print_date($object->date,"%d %b %Y",false,$outputlangs,true), '', 'R');

View File

@ -1099,6 +1099,14 @@ class pdf_crabe extends ModelePDFFactures
$posy+=1;
$pdf->SetFont('','', $default_font_size - 1);
if ($object->ref_client)
{
$posy+=5;
$pdf->SetXY($posx,$posy);
$pdf->SetTextColor(0,0,60);
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("RefCustomer")." : " . $outputlangs->convToOutputCharset($object->ref_client), '', 'R');
}
$objectidnext=$object->getIdReplacingInvoice('validated');
if ($object->type == 0 && $objectidnext)
{