Linking invoices with sub accounts/chart of accounts

Linking invoices with sub accounts/chart of accounts

Hi,
How can we link invoices to sub accounts or chart of accounts created?
We would like to track our sales under different accounts like ecommerce, online, offline.

I have created the chart of accounts but see no way to link when invoices are created.