Financial Reports, accounts to show and not

I have a custom Chart of Accounts and there are too many accounts/lines on my Profit & Loss and Balance Sheet report.

Does the “Report Type” on the account determine if the account is shown on a report like P&L? How can I select which accounts are shown?

Is there a way to adjust the order of appearance on the report?

That for, you have to develop the server script report according to the scenario so you have to check the P&L report code and how it works.

Where can I find documentation and examples on how to do this?