fix: ui freeze on item selection in sales invoice
This commit is contained in:
parent
a0eb5e5535
commit
6412583e98
@ -418,8 +418,6 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
|
|||||||
callback: function(r) {
|
callback: function(r) {
|
||||||
if(r.message) {
|
if(r.message) {
|
||||||
frappe.model.set_value(doc.doctype, doc.name, 'batch_no', r.message);
|
frappe.model.set_value(doc.doctype, doc.name, 'batch_no', r.message);
|
||||||
} else {
|
|
||||||
frappe.model.set_value(doc.doctype, doc.name, 'batch_no', r.message);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user