From d9fd46caed3fb41b8415b5e4ed01428d527779b3 Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Sun, 21 May 2023 19:03:00 +0200 Subject: [PATCH] fix --- htdocs/takepos/invoice.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index d97eb5e6f0d..577205621bb 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -1347,7 +1347,7 @@ if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'e print $hookmanager->resPrint; if (empty($_SESSION["basiclayout"]) || $_SESSION["basiclayout"] != 1) { - if (getDolGlobalString("TAKEPOS_SHOW_SUBPRICE")) { + if (getDolGlobalInt("TAKEPOS_SHOW_SUBPRICE")) { print ''.$langs->trans('PriceUHT').''; } print ''.$langs->trans('ReductionShort').''; @@ -1605,7 +1605,7 @@ if ($placeid > 0) { if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors'); $htmlforlines .= $hookmanager->resPrint; - if (getDolGlobalString("TAKEPOS_SHOW_SUBPRICE")) { + if (getDolGlobalInt("TAKEPOS_SHOW_SUBPRICE")) { $htmlforlines .= ''.price($line->subprice).''; } $htmlforlines .= ''.vatrate($line->remise_percent, true).'';