Trial Balance and P/L Statement based on Cost Centers

I am trying to create the trial balance and P/L statement with “Cost Center” as a filter. However, the current script doesn’t support cost center filter. Any way to achieve this?

You can create a new customized report copy the code from trial balance and P/L then add the “Cost Center” as a filter.

Thanks @ccfiel for your reply. I am not very clear about your suggestion. Looking at the get_data method in “”, we dont see the cost center as an argument. Should I create a different get_data method altogether?

you have to create a new report first and copy and modify the code that you need like the get_data method as you said.