Link Employee To Cost Center

How can we link an employee to a Cost Center to track expenses. Say for example, ideally in a company there would be multiple employees linked to a cost center and when we process the salary the journal entry should have multiple entries for debits and multiple entries for credit based on all the cost centers involved.

How do you achieve this in ERPNext?

As of now there is only one journal entry created with link to one cost center.