Report Registration with branch

how to make Report view registration branch wise.

You’ll need to make a query or script report depending on the complexity.

@root13F, thanks. But sometime we have to give other branch report access and sometime we have to remove some branch report. at that time we can’t change code again and again.

You mean to say that you want Branch A to see only Branch A data and not branch B data ? Well then user permissions will help. Also, reports have Apply User Permissions option. Please try that and login from a Branch A user’s ID to confirm the exclusion.

@root13F, my scenario is that, we have three regional office(region A, region B, region C). under region there are four branch each. So, Regional Manager want to see salary report of his under that is four branch, but sometime Regional Manager A want to see others branch salary report which is not under his regional for few month not all branch. And sometime we have to remove that other branch report. And some employee like Director want to see all employee salary report. So, if there is same like branch access.

No problem. A certain Regional Manager who supervises Branch A and C - should be allotted User Permissions accordingly - i.e. allow both B and C and similarly.

@root13F, i have to add one by one employee to user permission?.

You don’t add employee to User Permission. You create one permission rule for that user. Like this:

@root13F, i think this is for only transaction, not for Report? if i am not mistaken. i want for report registration in branch wise.

Yes the same will be reflected in report too. You can test the same using the IDs of the concerned users.

To create a branch-wise Report View for Registrations in ERPNext, you need to ensure that your data is properly tagged with branch information and then use filters or scripting to generate the desired report.

Steps to create a branch-wise Registration report in ERPNext

  1. Ensure Branch Field Exists
  • In the Doctype (e.g., Registration or Customer), check that there’s a field for Branch. If not, you can add it via Customize Form.
  1. Create a Custom Report or Script Report
  • Go to Report > New Report.

  • Choose the appropriate Doctype (like Registration).

  • Select Report Type: Choose Query Report (for SQL) or Script Report (for Python-based logic).

  1. Add Filters (Optional)
  • Add a Branch filter to allow users to select branch-wise data dynamically.
  1. Apply Filtering Logic

In a Query Report, use SQL:

SELECT name, customer_name, branch, registration_date

FROM tabRegistration

WHERE branch = %(branch)s

  • In a Script Report, use the filters.get(‘branch’) logic inside your Python script to fetch and display filtered data.
  1. Permissions (if needed):
  • You can restrict data visibility using User Permissions based on branch.

Conclusion:

Branch-wise registration reporting is very much possible in ERPNext using custom reports. Just ensure branch data is being captured correctly and then filter it accordingly in your report logic. Reach out to professional help from leading experts like Setindiabiz.