fix: auto refresh serial and batch bundle field (#36943)

This commit is contained in:
rohitwaghchaure 2023-09-04 14:11:42 +05:30 committed by GitHub
parent 04bc353e7f
commit 6a7bdeffdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {