Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UK Payroll API returning EarningsRateID as EarningsLineID in GetPaySlipsAsync #481

Open
benedict-odonovan opened this issue Jun 23, 2023 · 3 comments

Comments

@benedict-odonovan
Copy link

SDK you're using (please complete the following information):

  • Xero.NetStandard.OAuth2 Version 3.32.0

Describe the bug
When viewing the EarningsLines Property of a UK Payslip the EarningsLineID is incorrect and is set to be the EarningsRateID instead.

e.g.

{
  EarningsLineID: 74a6a571-884c-4c7e-aa94-824c0770053b
  EarningsRateID: 74a6a571-884c-4c7e-aa94-824c0770053b
  DisplayName: Regular Hours
  RatePerUnit: 111
  NumberOfUnits: 1
  FixedAmount: null
  Amount: 111
  IsLinkedToTimesheet: False
  IsAverageDailyPayRate: null
}

To Reproduce
Steps to reproduce the behavior:

  1. Call xeroApi.PayrollApi.GetPaySlipsAsync(xeroApi.AccessToken, xeroApi.XeroTenantId, payRunID, page: 1)
  2. View any earnings line underneath the payslip's EarningsLines collection

Expected behavior
The EarningsLineID should be unique and specific to the earnings line.

@github-actions
Copy link

PETOSS-308

@github-actions
Copy link

Thanks for raising an issue, a ticket has been created to track your request

@benedict-odonovan
Copy link
Author

Just noticed the OpenAPI documentation is incorrect in their example of the PaySlips API too, showing the same GUID for the rate and line ID.

Let me know if I need to open an issue there instead.

https://github.com/XeroAPI/Xero-OpenAPI/blob/master/xero-payroll-uk.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant