From 48128911bed66ac94c17de580424226509b33470 Mon Sep 17 00:00:00 2001 From: Devin Slauenwhite Date: Fri, 29 Apr 2022 16:27:15 -0400 Subject: [PATCH] fix: syntax --- erpnext/public/js/utils/barcode_scanner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/utils/barcode_scanner.js b/erpnext/public/js/utils/barcode_scanner.js index 24d49a45fb7..5a73fea17ae 100644 --- a/erpnext/public/js/utils/barcode_scanner.js +++ b/erpnext/public/js/utils/barcode_scanner.js @@ -197,7 +197,7 @@ erpnext.utils.BarcodeScanner = class BarcodeScanner { get_row_to_modify_on_scan(item_code) { // get an existing item row to increment or blank row to modify const existing_item_row = this.items_table.filter((d) => { - const [qty, max_qty] = [d[this.qty_field], d[this.max_qty_field] || null] + const [qty, max_qty] = [d[this.qty_field], d[this.max_qty_field] || null]; return d.item_code === item_code && ((max_qty === null) || (qty < max_qty)); }).splice(0, 1).pop();