# Cost_typeSearchLedgerAccount Retrieves a ledger_account list. - Catalog: `Minox` - Schema: `MasterDataLedger` 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 `Cost_typeSearchLedgerAccount`. 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 | |---|:---:|:---:|:---:|---| | `administration_code` | `` | ☐ | | Partition to retrieve data from. | | `number_of_fiscal_years` | `` | ☐ | | If number of fiscal years is 1: only retrieve the ledger accounts of the last fiscal year. If number of fiscal years is 2 - 5: Receive additional ledger accounts from earlier fiscal years that do not exist anymore in the last fiscal year, indicated with a 'deleted'-tag. On default, three fiscal years will be checked. | | `rgs_based_on` | `` | ☐ | | Enum: minox_balance or account_total (Values: minox_balance, account_total) | | `rgs_mapping_level` | `` | ☐ | | | Value | Description | |--------|----------------------------------| | saved | Saved mappings on administration | | best | 100% Mappings on tenant or crowd | | guess | Partly matched mappings | | report | Full mappings (for reporting) | If rgs_mapping_level is set to 'report', then rgs_based_on also needs to be set. (Values: saved, best, guess, report) | ## Columns of Table Function The columns of the table function `Cost_typeSearchLedgerAccount` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `aggregate_transactions` | `char` | Aggregate Transactions | ☐ | Whether the ledgeraccount needs to be compressed, also known as 'verdichten'. | | `aggregation_aggregation_level` | `int64` | Aggregation Level | ☐ | Between 1 and 5. | | `aggregation_description` | `varchar2` | Aggregation Description | ☐ | | | `allow_free_vat_input` | `char` | Allow Free VAT Input | ☐ | | | `balance_description` | `varchar2` | Balance Description | ☐ | | | `balance_id` | `int64` | Balance ID | ☐ | | | `balance_isGroup` | `char` | Balance Is Group | ☐ | | | `balance_type` | `varchar2` | Balance Type | ☐ | | | `blocked_active` | `char` | Blocked Active | ☐ | Indicates if the account is blocked | | `blocked_reason` | `varchar2` | Blocked Reason | ☐ | The reason the account is blocked | | `budget_division_description` | `varchar2` | Budget Division Description | ☐ | | | `budget_division_id` | `int64` | Budget Division ID | ☐ | | | `debit_credit_suggestion` | `varchar2` | Debit/Credit Suggestion | ☐ | | | `description_2` | `varchar2` | | ☐ | | | `description` | `varchar2` | Description | ☐ | | | `id` | `int64` | ID | ☐ | | | `isBalance` | `char` | Is Balance | ☐ | | | `memo_active` | `char` | Memo Active | ☐ | Whether the memo is shown in the UI when this account is used. | | `memo_text` | `varchar2` | Memo Text | ☐ | The content of the memo. | | `quantity_applicable` | `char` | Quantity Applicable | ☐ | | | `referral_ledger_account_description` | `varchar2` | Referral Ledger Account Description | ☐ | | | `referral_ledger_account_id` | `int64` | Referral Ledger Account ID | ☐ | | | `vat_account_id` | `varchar2` | VAT Account ID | ☐ | | | `vat_amount` | `decimal` | VAT Amount | ☐ | | | `vat_description` | `varchar2` | VAT Description | ☐ | | | `vat_id` | `int64` | VAT ID | ☐ | | | `vat_percentage` | `decimal` | VAT Percentage | ☐ | | | `vat_type` | `varchar2` | VAT Type | ☐ | | | `year_budget` | `decimal` | Year Budget | ☐ | |