One transaction can allocate to a single account in the program. If you mean that you want to assign an invoice to multiple accounts, we can only choose one account to track a single transaction. Here's a sample screenshot:
Also, tracking the income account depends on the item you've used in QuickBooks Online. With that, you can allocate different income account per item on the invoice. First, make sure to assign your inventory or service item to a specific income account you want. Here's how:
Go to Sales on the left panel.
Within the Product and Services, click Edit under the Action column.
Click the Income account drop-down arrow. Then, choose the correct account for this item.
Hit Save and Close.
To learn more about changing account for an item, you can check here to gather more details on how to do it. Then, here are some articles that will you emailing, printing invoice, and adding more items in QuickBooks Online: