Add option DOC_SHOW_CUSTOMER_CODE
Because we have a lot of information and the REF is better to retrieve/search an order and know the customer code, i added a hidden option to show this field.
This commit is contained in:
parent
a7a8eb3648
commit
7ffcd3603b
@ -1320,7 +1320,7 @@ class pdf_einstein extends ModelePDFCommandes
|
||||
$pdf->SetTextColor(0, 0, 60);
|
||||
$pdf->MultiCell(100, 3, $outputlangs->transnoentities("OrderDate")." : " . dol_print_date($object->date, "%d %b %Y", false, $outputlangs, true), '', 'R');
|
||||
|
||||
if ($object->thirdparty->code_client)
|
||||
if (!empty($conf->global->DOC_SHOW_CUSTOMER_CODE) && ! empty($object->thirdparty->code_client))
|
||||
{
|
||||
$posy+=4;
|
||||
$pdf->SetXY($posx, $posy);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user