fix: Set barcode in Item row after scanning barcode (#16591)

This commit is contained in:
Faris Ansari 2019-02-07 07:09:49 +05:30 committed by Rushabh Mehta
parent 088886e082
commit 8ae5dbcac8

View File

@ -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{