Merge pull request #7868 from RobertSchouten/patch-34

[fix] typo on get product bundle
This commit is contained in:
Nabin Hait 2017-02-27 12:27:03 +05:30 committed by GitHub
commit 7e15afbf45

View File

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