QuickBooks Commerce allows you to assign sales orders that are synced to your accounting integration via a Default Sales Account. This can be done individually or in bulk (CSV).
While for Xero integration, you can assign a Default Sales Account by Company/Relationships, Variants and Sales Channel.
Individually
To assign a Default Sales Account ledger by variant go to Inventory > Variants. Select the Variant you wish to assign a Default Sales Account to.
In the Details tab, scroll down to Default Sales Account and choose the desired Sales ledger. Save the change.
Bulk
Go to Inventory > Products > Bulk Manage > Update Existing Products > choose "No I need to download a list of my products."
Choose Default Sales Ledger then click Build Product Sheet.
Download the Product Sheet > edit the CSV file and input the Sales Ledger account (e.g. Sales).
Once you have edited in the required data in the downloaded CSV file, you'll need to upload the product sheet. Refer to this article to guide you through the steps in Updating Existing Products via CSV .
Now, your selected variant will be linked to the Default Sales Account and all sales invoices will go through to the selected ledger.
If you are unsure how to set up your sales account or other ledgers, check out this article Quickbooks Accounting Integration.