Salary processing for EMP worked in 2 separate clients in the same month

Hello,
We have a unique situation where an employee works at 2 different clients who have separate salary structures. We want to generate 2 salary slips based on the number of days worked at a client.
For e.g., EMP A works with CLIENT P for 25 days and CLIENT Q for 5 days CLIENT P has SALARY STRUCTURE X and CLIENT Q has SALARY STRUCTURE Y.
We want to process the payroll/salary slip to be generated in 2 separate salary slips based on 25 days P and 5 days Q respectively.
Can you please provide a solution or workaround?
Thanks in advance.
Deva

@rmehta can you please look into this and guide, or TAG someone who can help.

@linet.1194