How to customize existing default report script in development mode

How to customize existing default report script in development mode ?

Is there anyway I can modify existing python script to fix bugs

yes. check it’s .js and .py file. fix the bug and send PR. So, it will beneficial for others also.

I reported one issue regarding # 12992
and I got reply with corrected script.And it will be merged soon .So will it take time ?

It is merged. You can take the latest pull and check.

Thank you for your reply !!! I am the beginner in ERPNEXT Can you guide me how to update/pull this code in my ERPNEXT portal

Do you have local machine setup? If yes open terminal, go to frappe-bench directory and run bench update

for more help – you can check bench --help

Thank you for your reply …I did that already and getting this

frappe@ip-172-31-25-75:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Updating 9c834bc…b77434b
error: Your local changes to the following files would be overwritten by merge:
bench/package.json
bench/patches/patches.txt
Please, commit your changes or stash them before you can merge.
Aborting
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 722, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 697, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 535, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/update.py”, line 34, in update
update_bench()
File “/home/frappe/.bench/bench/utils.py”, line 272, in update_bench
exec_cmd(“git pull”, cwd=cwd)
File “/home/frappe/.bench/bench/utils.py”, line 142, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git pull

and I checked the same issue still exit .

Seems like you have modified something in erpnext or frappe app. So you need to remove that changes before taking the latest update.

Ok for new instance(new erpnext portal )will it update automatically