Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Rushabh Mehta 2012-12-21 18:28:10 +05:30
commit db94cf16b2
2 changed files with 5 additions and 3 deletions

View File

@ -217,7 +217,7 @@ class DocType:
elif m.bom_no:
msgprint("""As Item %s is not a manufactured / sub-contracted item, \
you can enter BOM against it (Row No: %s).""" %
you can not enter BOM against it (Row No: %s).""" %
(m.item_code, m.idx), raise_exception = 1)
if flt(m.qty) <= 0:

View File

@ -44,8 +44,10 @@ erpnext.stock.StockEntry = erpnext.utils.Controller.extend({
clean_up: function() {
// Clear Production Order record from locals, because it is updated via Stock Entry
if(this.frm.doc.production_order && this.frm.doc.purpose == "Manufacture/Repack") {
wn.model.clear_doclist("Production Order", this.frm.doc.production_order);
if(this.frm.doc.production_order &&
this.frm.doc.purpose == "Manufacture/Repack") {
wn.model.remove_from_locals("Production Order",
this.frm.doc.production_order);
}
},