From 4766562ff00f374a7fcd53319492249e8eac005b Mon Sep 17 00:00:00 2001 From: robert schouten Date: Mon, 27 Feb 2017 13:30:18 +0800 Subject: [PATCH] fix typo on get product bundle --- erpnext/buying/doctype/purchase_common/purchase_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/buying/doctype/purchase_common/purchase_common.js b/erpnext/buying/doctype/purchase_common/purchase_common.js index c03ccc80da..bc53efcd9d 100644 --- a/erpnext/buying/doctype/purchase_common/purchase_common.js +++ b/erpnext/buying/doctype/purchase_common/purchase_common.js @@ -72,7 +72,7 @@ erpnext.buying.BuyingController = erpnext.TransactionController.extend({ this.frm.toggle_display("supplier_name", (this.frm.doc.supplier_name && this.frm.doc.supplier_name!==this.frm.doc.supplier)); - if(this.frm.docstatus==0 && + if(this.frm.doc.docstatus==0 && (this.frm.doctype==="Purchase Order" || this.frm.doctype==="Material Request")) { this.set_from_product_bundle(); }