Fixing style errors.

This commit is contained in:
stickler-ci 2021-11-30 15:07:59 +00:00
parent e43b95f05a
commit 7c3b2f1e9b
2 changed files with 3 additions and 3 deletions

View File

@ -589,7 +589,7 @@ function Search2(keyCodeForEnter) {
?>
var titlestring = <?php echo $titlestring; ?>;
<?php
if ($conf->global->TAKEPOS_SHOW_PRODUCT_REFERENCE == 1) { ?>
if ($conf->global->TAKEPOS_SHOW_PRODUCT_REFERENCE == 1) { ?>
$("#prodesc" + i).html(data[i]['ref'].bold() + ' - ' + data[i]['label']);
<?php } else { ?>
$("#prodesc" + i).text(data[i]['label']);

View File

@ -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 ? '<b>' . $line->product_ref . '</b> - ' . $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 {