mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 02:44:52 +00:00
[patch] [minor] fix sle against cancelled stock entry for production
This commit is contained in:
@@ -103,12 +103,8 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
|
||||
},
|
||||
callback: function(r) {
|
||||
if (!r.exc) me.frm.set_value("expense_adjustment_account", r.message);
|
||||
|
||||
me.get_items_onload();
|
||||
}
|
||||
});
|
||||
} else {
|
||||
me.get_items_onload();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -121,13 +117,6 @@ erpnext.stock.StockEntry = erpnext.stock.StockController.extend({
|
||||
}
|
||||
},
|
||||
|
||||
get_items_onload: function() {
|
||||
if (this.frm.doc.__islocal && !getchildren('Stock Entry Detail', this.frm.doc.name,
|
||||
'mtn_details').length) {
|
||||
this.get_items()
|
||||
}
|
||||
},
|
||||
|
||||
get_items: function() {
|
||||
if(this.frm.doc.production_order || this.frm.doc.bom_no) {
|
||||
// if production order / bom is mentioned, get items
|
||||
|
||||
Reference in New Issue
Block a user