From c508ef5b82bd2b38db0a09128ec007ee913ccc13 Mon Sep 17 00:00:00 2001 From: Pandiyan5273 Date: Fri, 16 Jan 2026 15:12:28 +0530 Subject: [PATCH] fix(stock): resolve quantity issue when adding items via barcode scan (cherry picked from commit f959b2c59ab5682f73e673d0e088b351c0de8415) --- erpnext/public/js/controllers/transaction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 898e8347292..0ae1828ee0d 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -479,7 +479,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe barcode(doc, cdt, cdn) { let row = locals[cdt][cdn]; - if (row.barcode) { + if (row.barcode && !frappe.flags.trigger_from_barcode_scanner) { erpnext.stock.utils.set_item_details_using_barcode(this.frm, row, (r) => { frappe.model.set_value(cdt, cdn, { "item_code": r.message.item_code,