fix: syntax

This commit is contained in:
Devin Slauenwhite 2022-04-29 16:27:15 -04:00
parent 2554cdceeb
commit 48128911be

View File

@ -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();