Fix: customer ref is very important for a best traceability
This commit is contained in:
parent
62f170d3d7
commit
10bd942328
@ -959,7 +959,15 @@ class pdf_einstein extends ModelePDFCommandes
|
|||||||
$posy+=1;
|
$posy+=1;
|
||||||
$pdf->SetFont('','', $default_font_size - 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->SetXY($posx,$posy);
|
||||||
$pdf->SetTextColor(0,0,60);
|
$pdf->SetTextColor(0,0,60);
|
||||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("OrderDate")." : " . dol_print_date($object->date,"%d %b %Y",false,$outputlangs,true), '', 'R');
|
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("OrderDate")." : " . dol_print_date($object->date,"%d %b %Y",false,$outputlangs,true), '', 'R');
|
||||||
|
|||||||
@ -1099,6 +1099,14 @@ class pdf_crabe extends ModelePDFFactures
|
|||||||
$posy+=1;
|
$posy+=1;
|
||||||
$pdf->SetFont('','', $default_font_size - 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');
|
$objectidnext=$object->getIdReplacingInvoice('validated');
|
||||||
if ($object->type == 0 && $objectidnext)
|
if ($object->type == 0 && $objectidnext)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user