Adding Employee Details and Allocating Timesheets with UK Payroll API
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 15/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- nodejs, typescript
- Área
- api
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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!
- Lenguaje dominante
- TypeScript
- Estrellas
- 264
- Forks
- 177
- Merge medio
- 10 h 5 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de XeroAPI/xero-node
-
`getClientCredentialsToken()` sends `scopes` (comma-joined) instead of the OAuth `scope` parameterAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
Dificultad 3/5 Medio día Aptitud para principiantes 55/100
-
TrackingOptionId value missing from accountingApi.getInvoices()Posiblemente ocupada @miachillgood la tomó hace 152 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 18/100
-
BankTransaction type is missing the batchPayment object.Posiblemente ocupada @miachillgood la tomó hace 171 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 22/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
Todos los issues de XeroAPI/xero-node
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
super-productivity/super-productivity#12128 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
A docs change can fail pnpm check, because outreach lint and gen:types both write .astro/ at oncePosiblemente ocupada @2389400626lh-ops la tomó hoy. AbiertoArea: Infrastructure Area: Outreach Bug Difficulty: Low Good First Issue Priority: Low
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DouglasNeuroInformatics/OpenDataCapture#1956 ·
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
justyns/silverbullet-ai#199 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
spartan-ng/spartan#1931 ·
Los mantenedores suelen responder en 2 días