I am just starting with ERPNext and I am very happy with it so far. I am a developer, so naturally I want to know how I can start tweaking things. I have been able to add a custom button to the Sales Invoice form by following the samples on the custom script page. However, I would really like to customize the POS form (which I think is also a Sales Invoice?). I can’t figure out what I need to do to customize that page.
However, I am not sure how to write a custom script to interact with this page. I could just add my code to the bottom of the file, but customizing a file that will be replaced by an update doesn’t seem like the best way to apply my customizations. Is there a better way?
You need to create your custom page and used the same code from the pos.js file and make changes according to your requirement.
To make custom page Goto Setup > Developer > Page > New Page > select custom app’s module