Skip to content

Commit

Permalink
fix: After a 'Go Back' in browser : Item Not Showing in Quick Entry o…
Browse files Browse the repository at this point in the history
…f Batch Creation from Batch No. Field in Stock Entry Detail frappe#35841
  • Loading branch information
FHenry committed Sep 14, 2023
1 parent f2395a9 commit b560020
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions erpnext/stock/doctype/stock_entry/stock_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ frappe.ui.form.on('Stock Entry', {
}
});

let batch_field = frm.get_docfield('items', 'batch_no');
if (batch_field) {
batch_field.get_route_options_for_new_doc = (row) => {
return {
'item': row.doc.item_code
}
};
}

frm.add_fetch("bom_no", "inspection_required", "inspection_required");
erpnext.accounts.dimensions.setup_dimension_filters(frm, frm.doctype);

Expand Down Expand Up @@ -345,6 +336,15 @@ frappe.ui.form.on('Stock Entry', {
if(!check_should_not_attach_bom_items(frm.doc.bom_no)) {
erpnext.accounts.dimensions.update_dimension(frm, frm.doctype);
}

let batch_field = frm.get_docfield('items', 'batch_no');
if (batch_field) {
batch_field.get_route_options_for_new_doc = (row) => {
return {
'item': row.doc.item_code
}
};
}
},

get_items_from_transit_entry: function(frm) {
Expand Down

0 comments on commit b560020

Please sign in to comment.