Is it possible to transfer customer invoices and payments from a company branch to the parent company or another company in an easy way without returning the same restrictions?
You need to be clearer about what you are asking. What do you mean by both “transfer customer invoices and payments” and "without returning the same restrictions? Describe your scenario.
The first was to open a company account for each branch.
Now the parent company wants to follow the cost centers system, and I want to transfer clients and branches accounts and merge them into one company without repeating every work for almost a full year
I don’t want to prepare accounting entries, invoices, receipts and exchange vouchers, and so on
The best way to set up the situation the parent company now desires is to use divisions. See these Guides:
Divisions: Create and manage divisions | Use divisions for the Balance Sheet | Use divisions for the Profit and Loss Statement
The only way to transfer transactions, customers, and so forth from your old businesses into the new business with divisions is a combination of Batch Update (to copy information from the old companies) and Batch Create (to add to the new company. You will still have to do some manual editing and batching updating in the new business.