I have searched and tried many options to try and get the YTD Earnings on my payslips.
Can someone please tell me why this doesn't work...
result = payslip.sum('GROSS', 2021-07-01, 2022-06-30)
I have also tried many different date variations but I keep getting this error...
User Error: Wrong python code defined for salary rule YTD Earnings (YTD).