From 1b0dea93de7975e2bfc280d5e43ee59e7bcaff68 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Tue, 9 Jul 2024 12:09:26 +0200 Subject: [PATCH] Now rounding price total in Invoice QR code --- application/Invoice/InvoiceController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Invoice/InvoiceController.php b/application/Invoice/InvoiceController.php index 5cb1b79bf..05086abba 100644 --- a/application/Invoice/InvoiceController.php +++ b/application/Invoice/InvoiceController.php @@ -128,7 +128,7 @@ class InvoiceController extends mfBaseController { $headerHtml = str_replace("{{ invoiceNumber }}", $invoice->invoice_number, $headerHtml); $headerHtml = str_replace("{{ invoiceDate }}", date("d.m.Y", $invoice->invoice_date), $headerHtml); $headerHtml = str_replace("{{ vatHtml }}", $invoice->uid ? "Ihre UID:" . $invoice->uid . "" : "", $headerHtml); - $headerHtml = str_replace("{{ qrCodeSrc }}", $this->getBankQRCode($invoice->invoice_number, $invoice->total_gross), $headerHtml); + $headerHtml = str_replace("{{ qrCodeSrc }}", $this->getBankQRCode($invoice->invoice_number, round($invoice->total_gross, 2)), $headerHtml); $headerFile = BASEDIR . "/var/temp/invoice_header-" . date("U") . "-" . rand(1000, 9999) . ".html"; file_put_contents($headerFile, $headerHtml);