Include custom js file inside custom app

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 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