From e71d312acde2809b3b94e6ad6bc74ac9f68a1695 Mon Sep 17 00:00:00 2001 From: "jove@bisquerra.com" Date: Sun, 8 Mar 2020 22:33:56 +0100 Subject: [PATCH 1/2] Customer name on TakePOS headbar --- htdocs/takepos/invoice.php | 10 ++++++++-- htdocs/takepos/takepos.php | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index 4660032cc15..abc1992573c 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -664,6 +664,14 @@ function DolibarrTakeposPrinting(id) { url: "" + id, }); } + +$( document ).ready(function() { + $("a#customer").text("socid != $conf->global->$constforcompanyid) print $soc->name; + else print $langs->trans("Customer"); + ?>"); +}); + '; if ($invoice->socid != $conf->global->$constforcompanyid) { - print ''; print '

'; - print $langs->trans("Customer").': '.$soc->name; $constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"]; if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1") diff --git a/htdocs/takepos/takepos.php b/htdocs/takepos/takepos.php index 8d4f8f929c8..13689eed6ff 100644 --- a/htdocs/takepos/takepos.php +++ b/htdocs/takepos/takepos.php @@ -672,7 +672,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) { echo ' - '.dol_print_date(dol_now(), "day").''; ?> - trans("Customer"); ?> + trans("Customer"); ?>