Skip to content

Commit

Permalink
Add option DOC_SHOW_CUSTOMER_CODE
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eldy committed Jun 21, 2019
1 parent a7a8eb3 commit 7ffcd36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/commande/doc/pdf_einstein.modules.php
Expand Up @@ -1320,7 +1320,7 @@ private function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $titlekey
$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);
Expand Down

0 comments on commit 7ffcd36

Please sign in to comment.