# LeavePolicyAccrualByLeavePolicyIdAndEmploymentId_ContentLeavePolicyAccrual
Leave accrual for an employment
__Activity name :__ GetLeavePolicyAccrualByLeavePolicyIdAndEmploymentId
Returns the accrual for each leave type, given a leavepolicy and year
This is a read-only table function. The Loket.nl REST API may not support changing the data, or the Invantive UniversalSQL driver for Loket.nl REST does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Loket.nl REST API.
- Catalog: `LoketNlRest`
- Schema: `LeavePolicyAccrual`
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `employmentId` | `guid` | ☑ | | The unique identifier of the employment |
| `leavePolicyId` | `guid` | ☑ | | The unique identifier of the leave policy |
| `month` | `int32` | ☐ | | The month |
| `year` | `int32` | ☐ | | The year |
## Columns
The columns of the table `LeavePolicyAccrualByLeavePolicyIdAndEmploymentId_ContentLeavePolicyAccrual` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `accrual` | `double` | | ☐ | The amount of leave units accrued for the leave type in the year |
| `accrualAgeBasedLeave` | `double` | | ☐ | The amount of leave units accrued for the leave type in the year |
| `accrualWageBasedLeave` | `double` | | ☐ | The amount of leave units accrued for the leave type in the year |
| `accrualYearsOfServiceBasedLeave` | `double` | | ☐ | The amount of leave units accrued for the leave type in the year |
| `id` | `guid` | ID | ☐ | The unique identifier of an object (GUID/UUID) |
| `leaveType_key` | `int32` | Leave Type Key | ☐ | The key for the leave type. |
| `leaveType_value` | `string` | Leave Type Value | ☐ | The description for the leave type. Note that leave types can be overridden at the employer level. In these cases the description at the employer level takes precedence over the default description of the leave type. |