Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1115 Vistas

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).

Avatar
Descartar
Mejor respuesta

Hi,
Try this
​result = payslip.sum('GROSS', '2021-07-01', '2022-06-30')
You need to enter the dates as string

Avatar
Descartar