fix: ui freeze on item selection in sales invoice

This commit is contained in:
ruthra kumar 2023-02-23 09:36:21 +05:30
parent a0eb5e5535
commit 6412583e98

View File

@ -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);
} }
} }
}); });