About report types
ERPNext has three main types of report. The type decides who can create the report and how much logic it can hold.
| Type | Written in | Who can create it | Example |
|---|---|---|---|
| Report Builder | No code: pick columns, filters, and sorting | Any user with access to the DocType | A list of open Sales Orders with selected columns |
| Query Report | SQL | System managers on a self-hosted site | Purchase Order Items To Be Received |
| Script Report | Python, stored in an app | Developers | Financial Analytics |
Report Builder
The Report Builder is the report view of any list. You choose the columns, filters, sorting, and group-by, and save the result under a name. It needs no code.
To add columns from child tables or linked documents, use Pick Columns in the menu.
Query Report
A query report runs an SQL query on the database and shows the result. It can join many tables. Because it reads the database directly, it can show data that the user has no permission to see. For this reason, Frappe Cloud sites do not allow new query reports.
Learn how to write one in the Frappe Framework documentation on query reports.
Script Report
A script report runs Python code on the server. Use it for reports that need calculations or logic, such as financial statements. Script reports live in an app, so you cannot create one from the browser on a hosted site.
Learn how to write one in the Frappe Framework documentation on script reports.
Query reports and script reports can have dynamic filters. Report Builder reports cannot.