From 81f2b3f7aeafd39314a4881560a04cbbc2afadfb Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 10 Jul 2023 18:19:59 +0200 Subject: [PATCH] FIX Missing localtaxes on receipt in TakePOS --- htdocs/takepos/receipt.php | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/receipt.php b/htdocs/takepos/receipt.php index 2240632b1ef..9d43c2f46a6 100644 --- a/htdocs/takepos/receipt.php +++ b/htdocs/takepos/receipt.php @@ -1,10 +1,10 @@ - * Copyright (C) 2011 Laurent Destailleur + * Copyright (C) 2011-2023 Laurent Destailleur * Copyright (C) 2012 Marcos García * Copyright (C) 2018 Andreu Bisquerra * Copyright (C) 2019 Josep Lluís Amador - * Copyright (C) 2021 Nicolas ZABOURI + * Copyright (C) 2021 Nicolas ZABOURI * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -232,6 +232,7 @@ if ($conf->global->TAKEPOS_SHOW_CUSTOMER) { } $vat_groups[$line->tva_tx] += $line->total_tva; } + // Loop on each VAT group foreach ($vat_groups as $key => $val) { ?> @@ -250,6 +251,23 @@ if ($conf->global->TAKEPOS_SHOW_CUSTOMER) { echo $langs->trans("TotalVAT").''.price($object->total_tva, 1, '', 1, - 1, - 1, $conf->currency)."\n"; } ?> +useLocalTax(1) || price2num($object->total_localtax1, 'MU')) { ?> + + trans("TotalLT1").''.price($object->total_localtax1, 1, '', 1, - 1, - 1, $conf->currency)."\n"; + } ?> + + +useLocalTax(2) || price2num($object->total_localtax2, 'MU')) { ?> + + trans("TotalLT2").''.price($object->total_localtax2, 1, '', 1, - 1, - 1, $conf->currency)."\n"; + } ?> +