From e72e472fd31284085695601e8f1b5ea63f798cb0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Jul 2023 19:33:25 +0200 Subject: [PATCH] small perf fix --- htdocs/takepos/receipt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index 99579eeaf97..77d00f9b31f 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -256,14 +256,14 @@ if ($conf->global->TAKEPOS_SHOW_CUSTOMER) { // Now show local taxes if company uses them -if ($mysoc->useLocalTax(1) || price2num($object->total_localtax1, 'MU')) { ?> +if (price2num($object->total_localtax1, 'MU') || $mysoc->useLocalTax(1)) { ?> trans("TotalLT1").''.price($object->total_localtax1, 1, '', 1, - 1, - 1, $conf->currency)."\n"; } ?> -useLocalTax(2) || price2num($object->total_localtax2, 'MU')) { ?> +total_localtax2, 'MU') || $mysoc->useLocalTax(2)) { ?> trans("TotalLT2").''.price($object->total_localtax2, 1, '', 1, - 1, - 1, $conf->currency)."\n";