Client Script: Calling super method

In the given script I want to make sure before my custom code ERP’s payment_terms_template should be triggered and finished first. How can this be done since we do not have super function in client scripts.

frappe.ui.form.on("Purchase Invoice", {
	payment_terms_template(frm) {
		// Custom Code
	},
});

hello @Sandeep_Kakde

please check it :

I hope this helps in your case