[FIX] Mind the payslip.date_to when searching for gainful dates

Merged Gabriel Davini requested to merge 8.0-log_improvements into 8.0-stage

Merge request reports