Skip to content

Payslip - Invalid value for calculation_type, must not be `None #13

@commit4ever

Description

@commit4ever

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions