# LedgerAccountById: Minox Ledger Account by ID Retrieves a single ledger_account. - Catalog: `Minox` - Schema: `MasterDataLedger` - Label: Ledger Account by 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 `LedgerAccountById`. 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 | |---|:---:|:---:|:---:|---| | `account_id` | `` | ☑ | | The identity of an account | | `administration_code` | `` | ☐ | | Partition to retrieve data from. | | `max_ledger_id_length` | `` | ☐ | | pass the ledger id length for the accountNrRule | | `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) | (Values: saved, best, guess, report) | ## Columns of Table Function The columns of the table function `LedgerAccountById` 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 | ☐ | | | `cost_type_description` | `varchar2` | Cost Type Description | ☐ | | | `debit_credit_suggestion` | `varchar2` | Debit/Credit Suggestion | ☐ | | | `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 | ☐ | |