From 1904873206ba92ccc0ff3b14b0c51afde5b838db Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 4 Sep 2023 12:40:26 +0530 Subject: [PATCH] fix: auto refresh serial and batch bundle field --- 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 ac5735b70727..80d7b79c1ecb 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) {