fix: Issue with Barcode Scanning in Stock Entry

(cherry picked from commit 13e3db3730)
This commit is contained in:
Rohit Waghchaure
2025-08-29 22:50:31 +05:30
committed by Mergify
parent dcb3e01df1
commit 45cdb39edd
2 changed files with 3 additions and 7 deletions

View File

@@ -459,12 +459,8 @@ erpnext.utils.BarcodeScanner = class BarcodeScanner {
const item_scanned = row.has_item_scanned;
let warehouse_match = true;
if (has_warehouse_field) {
if (warehouse) {
warehouse_match = row[warehouse_field] === warehouse;
} else {
warehouse_match = !row[warehouse_field];
}
if (has_warehouse_field && warehouse && row[warehouse_field]) {
warehouse_match = row[warehouse_field] === warehouse;
}
return (