diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php index 265504cf3f3..14c69259b98 100644 --- a/htdocs/core/js/lib_foot.js.php +++ b/htdocs/core/js/lib_foot.js.php @@ -53,6 +53,7 @@ if (empty($conf->dol_no_mouse_hover)) hide: { delay: 50 }, tooltipClass: "mytooltip", content: function () { + console.log("Return title for popup"); return $(this).prop(\'title\'); /* To force to get title as is */ } });'."\n"; diff --git a/htdocs/takepos/css/pos.css b/htdocs/takepos/css/pos.css index 4b90f712f1d..e6d134019b4 100644 --- a/htdocs/takepos/css/pos.css +++ b/htdocs/takepos/css/pos.css @@ -208,6 +208,13 @@ div.catwatermark{ padding-left: 5px; } +.selected { + font-weight: bold; +} +.order { + color: limegreen; +} + .colorwhite { color: white; } diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index e4dde53e9e7..09582063bbc 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -131,8 +131,8 @@ if (($action=="addline" || $action=="freezone") && $placeid == 0) $db->query($sql); } -if ($action == "addline") { - +if ($action == "addline") +{ $prod = new Product($db); $prod->fetch($idproduct); @@ -269,20 +269,14 @@ if ($action == "order" and $placeid != 0) { * View */ +$form = new Form($db); + ?> - + use_javascript_ajax)) +{ + print "\n".''."\n"; + print ''."\n"; +} + print '
| ' . $line->product_label . $line->desc; + print '" id="' . $line->id . '">'; + print ' | ';
+ print $line->product_label;
+ if ($line->product_label && $line->desc) print ' '; + if ($line->product_label != $line->desc) + { + $firstline = dolGetFirstLineOfText($line->desc); + if ($firstline != $line->desc) + { + print $form->textwithpicto(dolGetFirstLineOfText($line->desc), $line->desc); + } + else + { + print $line->desc; + } + } if (!empty($line->array_options['options_order_notes'])) echo " (".$line->array_options['options_order_notes'].")"; print ' | ';
print '' . $line->qty . ' | '; diff --git a/htdocs/takepos/js/takepos.js b/htdocs/takepos/js/takepos.js deleted file mode 100644 index 062a3bb4e4a..00000000000 --- a/htdocs/takepos/js/takepos.js +++ /dev/null @@ -1,15 +0,0 @@ -/* Copyright (C) 2018 Charles-FR BENKE