From 8aa8c143233e13292501c8c632ff711d3e8ba9fb Mon Sep 17 00:00:00 2001 From: andreubisquerra Date: Sun, 9 May 2021 22:53:05 +0200 Subject: [PATCH] Fix --- htdocs/core/class/dolreceiptprinter.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/htdocs/core/class/dolreceiptprinter.class.php b/htdocs/core/class/dolreceiptprinter.class.php index 112f6f324d4..aaf9e60aec5 100644 --- a/htdocs/core/class/dolreceiptprinter.class.php +++ b/htdocs/core/class/dolreceiptprinter.class.php @@ -829,13 +829,13 @@ class dolReceiptPrinter extends Printer } break; case 'DOL_VALUE_PLACE': -+ $sql = "SELECT floor, label FROM ".MAIN_DB_PREFIX."takepos_floor_tables where rowid=".((int) str_replace(")", "", str_replace("(PROV-POS".$_SESSION["takeposterminal"]."-", "", $object->ref))); -+ $resql = $db->query($sql); -+ $obj = $db->fetch_object($resql); -+ if ($obj) { -+ $this->printer->text($obj->label); -+ } -+ break; + $sql = "SELECT floor, label FROM ".MAIN_DB_PREFIX."takepos_floor_tables where rowid=".((int) str_replace(")", "", str_replace("(PROV-POS".$_SESSION["takeposterminal"]."-", "", $object->ref))); + $resql = $db->query($sql); + $obj = $db->fetch_object($resql); + if ($obj) { + $this->printer->text($obj->label); + } + break; default: $this->printer->text($vals[$tplline]['tag']); $this->printer->text($vals[$tplline]['value']);