Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
db94cf16b2
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user