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.
This commit is contained in:
Ollama
2026-04-15 13:02:22 +00:00
parent e177099be1
commit 418dbc69e8
2 changed files with 2 additions and 2 deletions

View File

@@ -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($('<option>', {
value: value

View File

@@ -787,7 +787,7 @@ helper('url');
$('#customer').val(response.id);
$('#select_customer_form').submit();
} else {
var $stock_location = $("select[name='stock_location']").val();
const $stock_location = $("select[name='stock_location']").val();
$('#item_location').val($stock_location);
$('#item').val(response.id);
if (stay_open) {