on item, warehouse and batch triggers, fetch serial nos based on batch

This commit is contained in:
Shreya
2018-04-13 12:03:42 +05:30
parent 7461d28ae0
commit a20157af17
4 changed files with 187 additions and 70 deletions

View File

@@ -296,7 +296,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({
var me = this;
var item = frappe.get_doc(cdt, cdn);
var update_stock = 0, show_batch_dialog = 0;
if(['Sales Invoice'].includes(this.frm.doc.doctype)) {
update_stock = cint(me.frm.doc.update_stock);
show_batch_dialog = update_stock;