How to replace an Erpnext javascript function in V14. There is a function located at erpnext/erpnext/stock/doctype/item_price/item_price.js i want to replace it with my code, the function i want to replace in below. I know it can be done in hooks but i don’t know how to do it. I know how to replace a python script using hooks but with js i have failed please help.
Hey @NCP, thank you, but i have done this and nothing happed. I did bench clear-cache, bench build and bench migrate but nothing happened. But i will try (Ctrl + Shift + R)
but when i refresh the page the first and the second console.log exeute but when i click the button the third console.log does not execute and the report too