[Fix] Auto batch creation not working for purchase invoice is update stock is enabled (#10348)

This commit is contained in:
rohitwaghchaure
2017-08-09 17:24:13 +05:30
committed by Makarand Bauskar
parent 353956a864
commit 5999ade43a
3 changed files with 25 additions and 1 deletions

View File

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