Fix php8
This commit is contained in:
parent
43ed9b8c5c
commit
6d18dd6ef9
1 changed files with 5 additions and 5 deletions
|
|
@ -111,14 +111,14 @@ if (!empty($hookmanager->resPrint)) {
|
|||
<p class="left">
|
||||
<?php
|
||||
$constFreeText = 'TAKEPOS_HEADER'.$_SESSION['takeposterminal'];
|
||||
if (!empty($conf->global->TAKEPOS_HEADER) || !empty($conf->global->{$constFreeText})) {
|
||||
if (!empty($conf->global->TAKEPOS_HEADER) || getDolGlobalString($constFreeText)) {
|
||||
$newfreetext = '';
|
||||
$substitutionarray = getCommonSubstitutionArray($langs);
|
||||
if (!empty($conf->global->TAKEPOS_HEADER)) {
|
||||
$newfreetext .= make_substitutions($conf->global->TAKEPOS_HEADER, $substitutionarray);
|
||||
}
|
||||
if (!empty($conf->global->{$constFreeText})) {
|
||||
$newfreetext .= make_substitutions($conf->global->{$constFreeText}, $substitutionarray);
|
||||
if (getDolGlobalString($constFreeText)) {
|
||||
$newfreetext .= make_substitutions(getDolGlobalString($constFreeText), $substitutionarray);
|
||||
}
|
||||
print nl2br($newfreetext);
|
||||
}
|
||||
|
|
@ -136,12 +136,12 @@ if ($object->statut == Facture::STATUS_DRAFT) {
|
|||
print $object->ref;
|
||||
}
|
||||
if ($conf->global->TAKEPOS_SHOW_CUSTOMER) {
|
||||
if ($object->socid != $conf->global->{'CASHDESK_ID_THIRDPARTY'.$_SESSION["takeposterminal"]}) {
|
||||
if ($object->socid != getDolGlobalInt('CASHDESK_ID_THIRDPARTY'.$_SESSION["takeposterminal"])) {
|
||||
$soc = new Societe($db);
|
||||
if ($object->socid > 0) {
|
||||
$soc->fetch($object->socid);
|
||||
} else {
|
||||
$soc->fetch($conf->global->{'CASHDESK_ID_THIRDPARTY'.$_SESSION["takeposterminal"]});
|
||||
$soc->fetch(getDolGlobalInt('CASHDESK_ID_THIRDPARTY'.$_SESSION["takeposterminal"]));
|
||||
}
|
||||
print "<br>".$langs->trans("Customer").': '.$soc->name;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue