Include custom js file inside custom app

Hi;
I have a custom app includes js file which will run on Sales Invoice doctype
so this file starting with
frappe.ui.form.on('Sales Invoice', { refresh(frm,cdt,cdn) {

then I have added the next line in the custon app hooks.py file:
app_include_js = "apps/appname/modulename/public/js/etax_integration.js"
also tried
doctype_js={'Sales Invoice' ,'public/js/etax_integration.js}
but not working so how to include this js file proberly?

1 Like