commit
fe9b6c0799
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2015-2019 Frédéric France <frederic.france@netlogic.fr>
|
/* Copyright (C) 2015-2021 Frédéric France <frederic.france@netlogic.fr>
|
||||||
* Copyright (C) 2020 Andreu Bisquerra <jove@bisquerra.com>
|
* Copyright (C) 2020 Andreu Bisquerra <jove@bisquerra.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -565,7 +565,7 @@ class dolReceiptPrinter extends Printer
|
|||||||
*/
|
*/
|
||||||
public function sendToPrinter($object, $templateid, $printerid)
|
public function sendToPrinter($object, $templateid, $printerid)
|
||||||
{
|
{
|
||||||
global $conf, $mysoc, $langs, $user, $db;
|
global $conf, $mysoc, $langs, $user;
|
||||||
$error = 0;
|
$error = 0;
|
||||||
$ret = $this->loadTemplate($templateid);
|
$ret = $this->loadTemplate($templateid);
|
||||||
|
|
||||||
@ -830,8 +830,8 @@ class dolReceiptPrinter extends Printer
|
|||||||
break;
|
break;
|
||||||
case 'DOL_VALUE_PLACE':
|
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)));
|
$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);
|
$resql = $this->db->query($sql);
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
if ($obj) {
|
if ($obj) {
|
||||||
$this->printer->text($obj->label);
|
$this->printer->text($obj->label);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -99,7 +99,6 @@ $help_url = 'EN:Module_Suppliers_Orders|FR:CommandeFournisseur|ES:Módulo_Pedido
|
|||||||
llxHeader('', $title, $help_url);
|
llxHeader('', $title, $help_url);
|
||||||
|
|
||||||
if ($object->id > 0) {
|
if ($object->id > 0) {
|
||||||
|
|
||||||
$object->fetch_thirdparty();
|
$object->fetch_thirdparty();
|
||||||
|
|
||||||
$author = new User($db);
|
$author = new User($db);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user