Skip to content

Commit

Permalink
fix: auto refresh serial and batch bundle field (#36943)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored Sep 4, 2023
1 parent 04bc353 commit 6a7bdef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion erpnext/public/js/controllers/transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,13 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
}

on_submit() {
refresh_field("items");
this.refresh_serial_batch_bundle_field();
}

refresh_serial_batch_bundle_field() {
frappe.route_hooks.after_submit = (frm_obj) => {
frm_obj.reload_doc();
}
}

update_qty(cdt, cdn) {
Expand Down

0 comments on commit 6a7bdef

Please sign in to comment.