fix: display serial no selection on adding items to cart
This commit is contained in:
parent
797481f9d5
commit
e9c9cbd2fe
@ -286,14 +286,14 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
if (in_list(['serial_no', 'batch_no'], field)) {
|
if (in_list(['serial_no', 'batch_no'], field)) {
|
||||||
args[field] = value;
|
args[field] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// add to cur_frm
|
// add to cur_frm
|
||||||
const item = this.frm.add_child('items', args);
|
const item = this.frm.add_child('items', args);
|
||||||
frappe.flags.hide_serial_batch_dialog = true;
|
frappe.flags.hide_serial_batch_dialog = true;
|
||||||
|
|
||||||
frappe.run_serially([
|
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(() => {
|
.then(() => {
|
||||||
this.frm.script_manager.trigger('qty', item.doctype, item.name)
|
this.frm.script_manager.trigger('qty', item.doctype, item.name)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user