Customer name on TakePOS headbar
This commit is contained in:
parent
067759bf04
commit
e71d312acd
@ -664,6 +664,14 @@ function DolibarrTakeposPrinting(id) {
|
|||||||
url: "<?php print dol_buildpath('/takepos/ajax/ajax.php', 1).'?action=printinvoiceticket&term='.$_SESSION["takeposterminal"].'&id='; ?>" + 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>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
@ -881,9 +889,7 @@ print '</table>';
|
|||||||
|
|
||||||
if ($invoice->socid != $conf->global->$constforcompanyid)
|
if ($invoice->socid != $conf->global->$constforcompanyid)
|
||||||
{
|
{
|
||||||
print '<!-- Show customer -->';
|
|
||||||
print '<p class="right">';
|
print '<p class="right">';
|
||||||
print $langs->trans("Customer").': '.$soc->name;
|
|
||||||
|
|
||||||
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
|
$constantforkey = 'CASHDESK_NO_DECREASE_STOCK'.$_SESSION["takeposterminal"];
|
||||||
if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1")
|
if (!empty($conf->stock->enabled) && $conf->global->$constantforkey != "1")
|
||||||
|
|||||||
@ -672,7 +672,7 @@ if (empty($conf->global->TAKEPOS_HIDE_HEAD_BAR)) {
|
|||||||
echo '<span class="hideonsmartphone"> - '.dol_print_date(dol_now(), "day").'</span>';
|
echo '<span class="hideonsmartphone"> - '.dol_print_date(dol_now(), "day").'</span>';
|
||||||
?>
|
?>
|
||||||
</a>
|
</a>
|
||||||
<a onclick="Customer();"><?php echo $langs->trans("Customer"); ?></a>
|
<a id="customer" onclick="Customer();"><?php echo $langs->trans("Customer"); ?></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="topnav-right">
|
<div class="topnav-right">
|
||||||
<div class="login_block_other">
|
<div class="login_block_other">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user