mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-25 00:44:03 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user