diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index e6811319199..17837354702 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -670,6 +670,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 da1a7f1cd1f..ff330973e57 100644 --- a/htdocs/takepos/takepos.php +++ b/htdocs/takepos/takepos.php @@ -678,7 +678,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) { echo ' - '.dol_print_date(dol_now(), "day").''; ?> - trans("Customer"); ?> +