[Minor] Stock Entry Fix (#7715)

This commit is contained in:
KanchanChauhan 2017-02-10 17:47:49 +05:30 committed by Rushabh Mehta
parent 29dfb9479b
commit cc2c7649a8

View File

@ -510,7 +510,7 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
doc.supplier_name = doc.supplier_address = doc.purchase_receipt_no = null;
}
if(doc.purpose == "Material Receipt") {
frm.set_value("from_bom", 0);
this.frm.set_value("from_bom", 0);
}
// Addition costs based on purpose