# AccrualByAccrualId: Minox Accrual by Accrual ID Retrieve the accrual. Retrieve the accrual. ## Documentation Retrieve the accrual. - Catalog: `Minox` - Schema: `FinancialAccruals` - Label: Accrual by Accrual ID The data in this table is partitioned per value of the `administration_code` column. This is a read-only table function. The Minox API may not support changing the data or the Invantive UniversalSQL driver for Minox does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Minox API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `AccrualByAccrualId`. 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 | |---|:---:|:---:|:---:|---| | `accrual_id` | `` | ☑ | | (uuid) The identity of the accrual. | | `administration_code` | `` | ☐ | | Partition to retrieve data from. | ## Columns of Table Function The columns of the table function `AccrualByAccrualId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `belongs_to` | `varchar2` | Belongs to | ☐ | the tablename of the proposal line the accrual belongs to | | `booking_date` | `varchar2` | Booking Date | ☐ | An ISO date string of the date of the booking | | `cost_center_id` | `decimal` | Cost Centre ID | ☐ | The number of the cost center (required if ledger/transitoria account has cost type) | | `currency_id` | `varchar2` | Currency ID | ☐ | the currency of the accrual | | `debet_credit` | `varchar2` | Debet/Credit | ☐ | A string containing 'debet' or 'credit' | | `description` | `varchar2` | Description | ☐ | The main description of the accrual | | `entry_number` | `decimal` | Entry Number | ☐ | The entry number for the bookings | | `explanation` | `varchar2` | Explanation | ☐ | Extra space for an explanation of the accrual | | `id` | `varchar2` | ID | ☐ | The identifier of the accrual (uuid) | | `ledger_account_id` | `decimal` | Ledger Account ID | ☐ | The number of the expenses/sales account | | `periods` | `decimal` | Periods | ☐ | In how many periods the total amount will be divided and booked | | `start_period` | `decimal` | Start Period | ☐ | The number of the starting period (has to be in the range of the number of periods of the administration) | | `start_year` | `decimal` | Start Year | ☐ | The starting year (has to be a fiscal year the administration has) | | `transaction_line_id` | `varchar2` | Transaction Line ID | ☐ | Optional field to specify which transaction_line the accrual belongs to (uuid) | | `transitoria_account_id` | `decimal` | Transitoria Account ID | ☐ | The number of the accrual account | | `value` | `decimal` | Value | ☐ | The total amount of the accrual |