From ca769a3c6298c0e6338220dcd874c40d785dea00 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 2 Jul 2020 03:37:01 +0200 Subject: [PATCH] Fix scrutinizer errors --- htdocs/core/class/dolreceiptprinter.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/dolreceiptprinter.class.php b/htdocs/core/class/dolreceiptprinter.class.php index 8d9c449b972..352a660d72a 100644 --- a/htdocs/core/class/dolreceiptprinter.class.php +++ b/htdocs/core/class/dolreceiptprinter.class.php @@ -552,7 +552,7 @@ class dolReceiptPrinter extends Printer // tags a remplacer par leur valeur avant de parser (dol_value_xxx) $this->template = str_replace('', $object->id, $this->template); $this->template = str_replace('', $object->ref, $this->template); - $this->template = str_replace('', $object->points, $this->template); + //$this->template = str_replace('', $object->points, $this->template); $this->template = str_replace('', dol_print_date($object->date, 'day'), $this->template); $this->template = str_replace('', dol_print_date($object->date, 'dayhour'), $this->template); $this->template = str_replace('', dol_print_date($object->date, '%Y'), $this->template); @@ -563,7 +563,7 @@ class dolReceiptPrinter extends Printer $this->template = str_replace('', $object->thirdparty->firstname, $this->template); $this->template = str_replace('', $object->thirdparty->lastname, $this->template); - $this->template = str_replace('', $object->thirdparty->mail, $this->template); + $this->template = str_replace('', $object->thirdparty->email, $this->template); $this->template = str_replace('', $object->thirdparty->phone, $this->template); $this->template = str_replace('', $object->thirdparty->mobile, $this->template); $this->template = str_replace('', $object->thirdparty->vatintra, $this->template);