-
Notifications
You must be signed in to change notification settings - Fork 129
Closed
Description
SDK you're using (please complete the following information):
- Version 9.2.0
Describe the bug
API returns the same EarningsRateID (Id in the SDK) for all LeaveEarningsLines. This is not an issue with the SDK as the API Explorer returns these same Id's also. This means that it is impossible to determine the leave type from a PaySlip.
Example output from API explorer:
{
// ...
"Payslip": {
// ...
"LeaveEarningsLines": [
{
"EarningsRateID": "12345678-1234-1234-1234-123456789012",
"RatePerUnit": 30.72,
"NumberOfUnits": 30.4,
"PayOutType": "DEFAULT"
},
{
"EarningsRateID": "12345678-1234-1234-1234-123456789012",
"RatePerUnit": 5.376,
"NumberOfUnits": 30.4,
"PayOutType": "DEFAULT"
},
{
"EarningsRateID": "12345678-1234-1234-1234-123456789012",
"RatePerUnit": 30.72,
"NumberOfUnits": 7.6,
"PayOutType": "DEFAULT"
}
],
// ...
}
}To Reproduce
Create a payslip with mulitple leave earnings lines items or different leave types and call the API. They will all have the same EarningsRateId
Expected behavior
EarningsRateId's that correlate to the leave type
Metadata
Metadata
Assignees
Labels
No labels