fix: display serial no selection on adding items to cart

This commit is contained in:
thefalconx33 2019-12-16 14:49:59 +05:30
parent 797481f9d5
commit e9c9cbd2fe

View File

@ -286,14 +286,14 @@ erpnext.pos.PointOfSale = class PointOfSale {
if (in_list(['serial_no', 'batch_no'], field)) {
args[field] = value;
}
// add to cur_frm
const item = this.frm.add_child('items', args);
frappe.flags.hide_serial_batch_dialog = true;
frappe.run_serially([
() => {
this.frm.script_manager.trigger('item_code', item.doctype, item.name)
return this.frm.script_manager.trigger('item_code', item.doctype, item.name)
.then(() => {
this.frm.script_manager.trigger('qty', item.doctype, item.name)
.then(() => {