-
Notifications
You must be signed in to change notification settings - Fork 58
Closed
Labels
Status: CompletedDescribe solution, include code snippets, indicate version #Describe solution, include code snippets, indicate version #Type: Bug - Confirmed
Description
Hi
With version 1.0.5 when we retrieving a payslip using the get_payslip function for a Demo company
https://api.xero.com:443 "GET /payroll.xro/1.0/Payslip/{a valid payslip id}
we get the exception
File "/home/ubuntu/..... /lib/python3.7/site-packages/xero_python/payrollau/models/earnings_line.py", line 146, in calculation_type
"Invalid value for calculation_type, must not be None"
ValueError: Invalid value for calculation_type, must not be `None
This error comes for a valid payrun id with valid payslips that have been posted in the Xero APP.
Can you tell us why ? Is there a specific configuration that is needed in Xero-->Settings--> Payroll settings ?
Regards
Cee
Metadata
Metadata
Assignees
Labels
Status: CompletedDescribe solution, include code snippets, indicate version #Describe solution, include code snippets, indicate version #Type: Bug - Confirmed