As I wrote on the other post, sales invoices have not cost center, each line can be assigned to different cost center.
Accounting processes consider this behavior, so General Ledger, Trial Balances, etc … shows information properly.
In this example you can see how General Ledger separates one sales invoice containing 2 different cost centers and departments (custom accounting dimension).