Skip to content

Get Payslip returns same EarningsRateID for all LeaveEarningsLines (AU Payroll) #575

@humphrey

Description

@humphrey

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions