Customize report

Hi Guys,
I want to customise a report, can someone please direct me where to the location of the menu and refresh buttons html/py/js files on the top right of each report template.Thanks

Please check this link
https://frappe.io/help/how-to/query-report
https://frappe.io/help/how-to/script-report
https://kb.erpnext.com/kb/report

1 Like

@kolate_sambhaji what i want to do is add two extra buttons next to the MENU and REFRESH buttons my reports pages…does anyone have an idea how to go about this.

regards

@EdwardOkech what you want, can you please explain.
You can see existing report code to get what you can.

For adding field, button and check-box in report see General Ledger report

1 Like

Hi @EdwardOkech,

Depending upon your report, you can look for the .js files under

/home/(username)/frappe-bench/apps/erpnext/erpnext/(module name{buying,selling,etc.})/page/(name of report)

Hope this helps!

1 Like

@Tanuj Thanks you have solved my dilemma.

1 Like

Where can I find reports page for leads ? I have to add group by feature in lead details.

Hi Neha,

Since Lead details is a Query Report, AFAIK, you cannot group the results. Although you can make a filter to show only based on your selection (Example: Show data only for a certain period, or customer, etc.)

The filter can be added through a js file under selling>report>lead_details.

If you really require grouping the list, you’ll have to rebuild the report through python file.

Good luck!

Okay. Thanks.