All Components in YTD Salary Slip

Hi,
The YTD salary slip only shows the components that are part of the salary slip on which it is created. Is there a way to get all the component of the payroll period in the YTD salary slip ?