diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index ad123ccd5e7..bf5428f81d0 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -589,7 +589,7 @@ function Search2(keyCodeForEnter) { ?> var titlestring = ; global->TAKEPOS_SHOW_PRODUCT_REFERENCE == 1) { ?> + if ($conf->global->TAKEPOS_SHOW_PRODUCT_REFERENCE == 1) { ?> $("#prodesc" + i).html(data[i]['ref'].bold() + ' - ' + data[i]['label']); $("#prodesc" + i).text(data[i]['label']); diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 01599cae4b6..2f857e7a3ce 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -1447,9 +1447,9 @@ if ($placeid > 0) { $tooltiptext .= $line->desc; } } - if ($conf->global->TAKEPOS_SHOW_PRODUCT_REFERENCE == 1) { + if ($conf->global->TAKEPOS_SHOW_PRODUCT_REFERENCE == 1) { $htmlforlines .= $form->textwithpicto($line->product_label ? '' . $line->product_ref . ' - ' . $line->product_label : dolGetFirstLineOfText($line->desc, 1), $tooltiptext); - } else { + } else { $htmlforlines .= $form->textwithpicto($line->product_label ? $line->product_label : ($line->product_ref ? $line->product_ref : dolGetFirstLineOfText($line->desc, 1)), $tooltiptext); } } else {