From 6a7bdeffdf92e0ba3d3b74c6d1c0e43aafffdace Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 4 Sep 2023 14:11:42 +0530 Subject: [PATCH] fix: auto refresh serial and batch bundle field (#36943) --- erpnext/public/js/controllers/transaction.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index ac5735b707..80d7b79c1e 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -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) {