Customer name on TakePOS headbar

This commit is contained in:
jove@bisquerra.com 2020-03-08 22:33:56 +01:00
parent 067759bf04
commit e71d312acd
2 changed files with 9 additions and 3 deletions

View File

@ -664,6 +664,14 @@ function DolibarrTakeposPrinting(id) {
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=printinvoiceticket&term='.$_SESSION["takeposterminal"].'&id='; ?>" + id,
});
}
$( document ).ready(function() {
$("a#customer").text("<?php
if ($invoice->socid != $conf->global->$constforcompanyid) print $soc->name;
else print $langs->trans("Customer");
?>");
});
</script>
<?php
@ -881,9 +889,7 @@ print '</table>';
if ($invoice->socid != $conf->global->$constforcompanyid)
{
print '<!-- Show customer -->';
print '<p class="right">';
print $langs->trans("Customer").': '.$soc->name;
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1")

View File

@ -672,7 +672,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {
echo '<span class="hideonsmartphone"> - '.dol_print_date(dol_now(), "day").'</span>';
?>
</a>
<a onclick="Customer();"><?php echo $langs->trans("Customer"); ?></a>
<a id="customer" onclick="Customer();"><?php echo $langs->trans("Customer"); ?></a>
</div>
<div class="topnav-right">
<div class="login_block_other">