Q - How Track each employee commission expense for a certain period

Q - How Track each employee commission expense for a certain period

Is there a good way or best practices so I could track each employee commission expenses.
(could check the list and total of commission expense for a particular employee in a certain period of time) and also which invoices and clients that earn him/her such amount