Represents approximate vacation balances (spr) in Business Central.
Methods
Method | Return Type | Description |
---|---|---|
GET sprVacationBalancesApprox | sprVacationBalancesApprox | Gets an approximate vacation balance object. |
DELETE sprVacationBalancesApprox | none | Deletes an approximate vacation balance object. |
POST sprVacationBalancesApprox | sprVacationBalancesApprox | Creates an approximate vacation balance object. |
PATCH sprVacationBalancesApprox | sprVacationBalancesApprox | Updates an approximate vacation balance object. |
Navigation
Navigation | Return Type | Description |
---|---|---|
sprEmployee | sprEmployee | Gets the employee associated with the approximate vacation balance. |
Properties
Property | Type | Length | Description |
---|---|---|---|
id | Guid | The unique ID of the approximate vacation balance. Non-editable. | |
employeeNumber | String | 20 | Specifies the employee's number. |
firstName | String | 30 | Specifies the employee's first name. |
middleName | String | 30 | Specifies the employee's middle name. |
surname | String | 30 | Specifies the employee's surname. |
employmentDate | Date | Specifies the employment date. | |
terminationDate | Date | Specifies the termination date. | |
balanceByDays | NAV.sprVacationDayType | Specifies the balance by days. It can be: 0- " " 1- Calendar 2- Working |
|
totalBalance | Decimal | Specifies the total balance. | |
vacationSchema | Decimal | Specifies the vacation schema. | |
additionalDays | Decimal | Specifies the additional days. | |
dateFilter | String | Specifies the date filter. |
Examples
GET sprVacationBalancesApprox with filtering
URI: /companies({{companyId}})/sprVacationBalancesApprox?$filter=id eq {{employeeId}} and dateFilter eq '{{dateRange}}''