From 8a710f85e2f90465cc3f1d2d353bddb81ebb80ca Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 10 Dec 2024 11:14:48 +0530 Subject: [PATCH] refactor: replcate deprecated `cur_frm` --- erpnext/public/js/controllers/transaction.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index b3238c41153..ea9aa95b144 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -509,8 +509,7 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe }, callback: function(r) { if(!r.exc) { - cur_frm.refresh_fields(); - refresh_field("items"); + me.frm.refresh_fields(); } } });