diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index 20e10988065..3751d7b9f35 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -314,8 +314,9 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ show_description(child.idx, r.message.item_code, child.item_code); frappe.model.set_value(child.doctype, child.name, { - "item_code": r.message.item_code, - "qty": (child.qty || 0) + 1 + item_code: r.message.item_code, + qty: (child.qty || 0) + 1, + barcode: r.message.barcode }); } else{