Customizing ERPNext by adding additional script

Hi, I am new to Frappe and ERPNext.

I would like to ask if it’s possible to connect additional scripts into ERPNext in the middle of a process without making big changes on the module itself.

For example, I would like to make changes in the Payroll module and I want to calculate the deductions in a separate page.

Thanks

You can user custom scripts or server side scripts.
Please refer to documentations.

Custom Scripts for processing on client (browser side):

https://docs.erpnext.com/docs/user/manual/en/customize-erpnext/custom-scripts

Server scripts for, you know, the server side:

https://docs.erpnext.com/docs/user/manual/en/customize-erpnext/server-script

Before jumping head first into these, also best to understand the framework and how these are executed:

https://frappeframework.com/docs/user/en/basics

Thanks for the reply.

I will be studying the documentation.