From 418dbc69e8e05249b762b4168b5c0d4cf96e1497 Mon Sep 17 00:00:00 2001 From: Ollama Date: Wed, 15 Apr 2026 13:02:22 +0000 Subject: [PATCH] fix: Replace remaining var declarations in Views - Changed var to const in sales/register.php - Changed var to const in configs/receipt_config.php These were missed in the initial pass. --- app/Views/configs/receipt_config.php | 2 +- app/Views/sales/register.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Views/configs/receipt_config.php b/app/Views/configs/receipt_config.php index 3e12bbd66..2b916b767 100644 --- a/app/Views/configs/receipt_config.php +++ b/app/Views/configs/receipt_config.php @@ -340,7 +340,7 @@ if (window.localStorage && window.jsPrintSetup) { const printers = (jsPrintSetup.getPrintersList() && jsPrintSetup.getPrintersList().split(',')) || []; $('#receipt_printer, #invoice_printer, #takings_printer').each(function() { - var $this = $(this) + const $this = $(this) $(printers).each(function(key, value) { $this.append($('