Adding Employee Details and Allocating Timesheets with UK Payroll API
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 15/100
- Tipo de issue
- Bug
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Estagnada
- Stack de tecnologia
- nodejs, typescript
- Domínio
- api
Direção de pesquisa
The report involves xero.payrollUKApi.createEmployeeSalaryAndWage in the xero-node SDK (generated from Xero-OpenAPI) and the employee creation call that sets payrollCalendarID. Start by reproducing both calls against the UK payroll endpoints with the request bodies shown, using SDK 4.33.0. Done means the salary and wage is saved without the _default validation error, and the employee keeps the payrollCalendarID you sent. The thread has no maintainer reply, so confirm the expected request shape with Xero first.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I'm trying to add employee details through an API and allocate timesheets for employees using UK payroll. However, I encountered a couple of issues that I need assistance with.
Case 1: Issue with Payroll Calendar ID
While creating an employee, I set the payrollCalendarID, but it seems that the employee is being created with a null value for the payrollCalendarID. I'm not sure why this is happening and would appreciate any guidance on how to resolve it.
Case 2: Error when Adding Salary and Wage
I attempted to add salary and wage details for an employee using the following code snippet:
const response = await xero.payrollUKApi.createEmployeeSalaryAndWage(
xeroTenantId,
employeeId,
{
earningsRateID: earningsRateID, // I obtained the earnings Rate ID from the server
numberOfUnitsPerWeek: 0,
ratePerUnit: 14,
numberOfUnitsPerDay: 12,
effectiveFrom: "2023-01-01",
annualSalary: 10000,
status: "Active",
paymentType: "Hourly",
}
);
However, I received the following error:
"invalidFields":[{"name":"_default","reason":"Please add a salary & wage."}]}, "salaryAndWages":null
I'm using version 4.33.0 of the Xero API.
I would greatly appreciate any help or insights on how to resolve these issues. Thank you in advance!
- Linguagem predominante
- TypeScript
- Estrelas
- 264
- Forks
- 177
- Merge médio
- 10h 5min
- PRs com merge (30d)
- 5
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de XeroAPI/xero-node
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
-
Dificuldade 3/5 Meio dia Facilidade para iniciantes 55/100
-
TrackingOptionId value missing from accountingApi.getInvoices()Talvez já em andamento @miachillgood assumiu há 152 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 18/100
-
BankTransaction type is missing the batchPayment object.Talvez já em andamento @miachillgood assumiu há 171 dias. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 22/100
-
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 25/100
Todas as issues de XeroAPI/xero-node
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
super-productivity/super-productivity#12128 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at onceTalvez já em andamento @2389400626lh-ops assumiu hoje. AbertaArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 77/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 72/100
justyns/silverbullet-ai#199 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 83/100
spartan-ng/spartan#1931 ·
Mantenedores costumam responder em até 2 dias