# PayrollTransactionsByPayrollYear: Exact Online Payroll Transactions by Payroll Year
- Catalog: `ExactOnlineREST`
- Schema: `Payroll`
- Primary Keys: `ID`
- Label: Payroll Transactions by Payroll Year
The data in this table is partitioned per value of the `Division` column.
This is a read-only table function. The Exact Online API may not support changing the data or the Invantive UniversalSQL driver for Exact Online does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Exact Online API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `PayrollTransactionsByPayrollYear`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `division` | `int32` | ☐ | | ID of the division to retrieve data for. |
| `payrollYear` | `int32` | ☑ | | |
## Columns of Table Function
The columns of the table function `PayrollTransactionsByPayrollYear` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `CalculatedAmount` | `double` | Calculated Amount | ☑ | Calculated amount. |
| `CalculatedBaseValue` | `double` | Calculated Base Value | ☑ | Calculated base value. |
| `CalculatedFranchise` | `double` | Calculated Franchise | ☑ | Calculated franchise. |
| `CalculatedMaximum` | `double` | Calculated Maximum | ☑ | Calculated maximum. |
| `CalculatedNumber` | `double` | Calculated Number | ☑ | Calculated number. |
| `CostCenter` | `varchar2` | Cost Centre | ☐ | Cost center. |
| `CostCenterCode` | `varchar2` | Cost Centre Code | ☐ | Cost center code. |
| `CostCenterDescription` | `varchar2` | Cost Centre Description | ☐ | Cost center description. |
| `CostUnit` | `varchar2` | Cost Unit | ☐ | Cost unit. |
| `CostUnitCode` | `varchar2` | Cost Unit Code | ☐ | Cost unit code. |
| `CostUnitDescription` | `varchar2` | Cost Unit Description | ☐ | Cost unit description. |
| `Created` | `datetime` | Created | ☑ | Creation date. |
| `CreatedUtc` | `datetime` | Created (UTC) | ☐ | Creation date in UTC. |
| `Creator` | `guid` | Creator | ☐ | Creator. |
| `CreatorFullName` | `varchar2` | Creator Full Name | ☐ | Creator full name. |
| `Date` | `datetime` | Date | ☑ | Date. |
| `Department` | `guid` | Department | ☐ | Department. |
| `DepartmentCode` | `varchar2` | Department Code | ☐ | Department code. |
| `DepartmentDescription` | `varchar2` | Department Description | ☐ | Department description. |
| `Division` | `int32` | Division | ☑ | Division code. |
| `DivisionCompanyCoCNumber` | `varchar2`(60) | Division Chamber of Commerce Number | ☐ | Chamber of commerce number of the Exact Online division. |
| `DivisionCompanyIBANNumber` | `varchar2`(50) | Division IBAN Number | ☐ | IBAN number of the Exact Online division. |
| `DivisionCompanyName` | `varchar2`(50) | Division Company Name | ☑ | Company name of the Exact Online division. |
| `DivisionCompanyRSINNumber` | `varchar2`(9) | Division RSIN Number | ☐ | RSIN number of the Exact Online division. |
| `DivisionCompanyVATNumber` | `varchar2`(35) | Division VAT Number | ☐ | VAT number of the Exact Online division. |
| `DivisionCompanyWageTaxNumber` | `varchar2`(60) | Division Wage Tax Number | ☐ | Wage tax number of the Exact Online division. |
| `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. |
| `DivisionName` | `varchar2`(50) | Administration Name | ☑ | Name of the Exact Online division. |
| `DivisionOwnerCompanyName` | `varchar2`(50) | Subscription Holder Name | ☑ | Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs. |
| `DivisionOwnerCompanyNumber` | `varchar2`(18) | Subscription Holder Number | ☑ | Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs. |
| `DivisionShortName` | `int64` | Division Short Name | ☑ | Short name of the Exact Online division. |
| `Employee` | `guid` | Employee | ☑ | Employee. |
| `EmployeeHID` | `int32` | Employee HID | ☑ | Employee number. |
| `Employment` | `guid` | Employment | ☑ | Employment. |
| `EmploymentConditionGroup` | `guid` | Employment Condition Group | ☑ | Employment condition group. |
| `EmploymentConditionGroupCode` | `varchar2` | Employment Condition Group Code | ☐ | Employment condition group code. |
| `EmploymentConditionGroupDescription` | `varchar2` | Employment Condition Group Description | ☐ | Employment condition group description. |
| `EntryAmount` | `double` | Entry Amount | ☑ | Entry amount. |
| `EntryBase` | `double` | Entry Base | ☑ | Entry base. |
| `EntryNumber` | `double` | Entry Number | ☑ | Entry number. |
| `EntryPercentage` | `double` | Entry Percentage | ☑ | Entry percentage. |
| `EntryPercentage2` | `double` | Entry Percentage 2 | ☑ | Second entry percentage. |
| `EntryType` | `int16` | Entry Type | ☑ | Entry type. |
| `EntryTypeDescription` | `varchar2` | Entry Type Description | ☐ | Entry type description. |
| `Frequency` | `int32` | Frequency | ☑ | Frequency: 1 - Yearly, 2 - Quarterly, 3 - Monthly, 4 - 4-weekly, 5 - Weekly, 11 - Yearly (Pro forma), 12 - Quarterly (Pro forma), 13 - Monthly (Pro forma), 14 - 4-Weekly (Pro forma), 15 - Weekly (Pro forma). |
| `FullName` | `varchar2` | Full Name | ☐ | Name of employee. |
| `ID` | `guid` | ID | ☑ | Transaction. |
| `ModifiedDate` | `datetime` | Modified | ☑ | Last modified date. |
| `Modifier` | `guid` | Modifier | ☐ | Modifier. |
| `ModifierFullName` | `varchar2` | Modified Full Name | ☐ | Modifier full name. |
| `PayrollComponent` | `guid` | Payroll Component | ☑ | Payroll component. |
| `PayrollComponentCode` | `varchar2` | Payroll Component Code | ☐ | Payroll component code. |
| `PayrollComponentDescription` | `varchar2` | Payroll Component Description | ☐ | Payroll component description. |
| `PayrollComponentType` | `int32` | Payroll Component Type | ☐ | Payroll component type. |
| `PayrollComponentTypeDescription` | `varchar2` | Payroll Component Type Description | ☐ | Payroll component type description. |
| `PayrollRun` | `guid` | Payroll Run | ☐ | Payroll run. |
| `PayrollRunCode` | `varchar2` | Payroll Run Code | ☐ | Payroll run code. |
| `PayrollYear` | `int16` | Payroll Year | ☑ | Payroll year. |
| `Period` | `int16` | Period | ☑ | Payroll period. |
| `Status` | `int16` | Status | ☑ | Transaction status: 1 - Not entered, 2 - Entered, 3 - Open, 4 - Calculated, 5 - Approved, 6 - Finalized, 7 - Deleted. |
| `Type` | `int16` | Type | ☑ | Transaction type. |
| `TypeDescription` | `varchar2` | Type Description | ☐ | Transaction type description. |