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:
Laurent Destailleur 2019-06-21 13:33:24 +02:00 committed by GitHub
parent a7a8eb3648
commit 7ffcd3603b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);