fix: removed validate_item_code function in sales_invoice

This commit is contained in:
Ritvik Sardana 2023-07-21 17:18:35 +05:30
parent de189c5f18
commit 7069e2a5a0
2 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ frappe.ui.form.on('Sales Invoice', {
update_stock: function(frm, dt, dn) {
frm.events.hide_fields(frm);
frm.fields_dict.items.grid.toggle_reqd("item_code", frm.doc.update_stock);
// frm.fields_dict.items.grid.toggle_reqd("item_code", frm.doc.update_stock);
frm.trigger('reset_posting_time');
},

View File

@ -113,7 +113,7 @@ class SalesInvoice(SellingController):
if cint(self.update_stock):
self.validate_dropship_item()
self.validate_item_code()
# self.validate_item_code()
self.validate_warehouse()
self.update_current_stock()
self.validate_delivery_note()