# ApprovalTemplateCriteriaSuppliersByCriteriaId: Bouw7 Approval Template Criteria Suppliers by Criteria ID
Returns a single approval template criteria based on the given ID.
Returns a single approval template criteria based on the given ID.
- Catalog: `Bouw7`
- Schema: `Approval`
- Label: Approval Template Criteria Suppliers by Criteria ID
This is a read-only table function. The Bouw7 API may not support changing the data or the Invantive UniversalSQL driver for Bouw7 does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Bouw7 API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `ApprovalTemplateCriteriaSuppliersByCriteriaId`. 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 |
|---|:---:|:---:|:---:|---|
| `id` | `` | ☑ | | |
## Columns of Table Function
The columns of the table function `ApprovalTemplateCriteriaSuppliersByCriteriaId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `branch_code` | `varchar2` | Branch Code | ☐ | The code for this branch |
| `branch_division_description` | `varchar2` | | ☐ | The description of the division. |
| `branch_division_exactDivisionId` | `varchar2` | | ☐ | The division ID of an Exact Online environment. |
| `branch_division_glAccountCode` | `varchar2` | | ☐ | A default general ledger account code to use for sales related items. |
| `branch_division_glAccountCodePurchase` | `varchar2` | | ☐ | A default general ledger account code to use for purchase related items. |
| `branch_division_id` | `int64` | | ☐ | The ID of the division. |
| `branch_division_journalCode` | `varchar2` | | ☐ | A default journal code to use for sales related items. |
| `branch_division_journalCodePurchase` | `varchar2` | | ☐ | A default journal code to use for purchase related items. |
| `branch_division_salesInvoiceNumberPrefix` | `varchar2`(3) | | ☐ | The prefix (3 digits) used to generate invoice number range per division. |
| `branch_id` | `int64` | Branch ID | ☐ | The ID of the branch. |
| `branch_name` | `varchar2` | Branch Name | ☐ | The name of this branch |
| `contactType_id` | `int64` | Contact Type ID | ☐ | The ID of contact type. |
| `contactType_name` | `varchar2` | Contact Type Name | ☐ | The name of contact type. |
| `createdAt` | `datetime` | Created at | ☐ | The creation time of the entity. |
| `createdBy` | `varchar2` | Created by | ☐ | The user that created the entity. |
| `deliveryTicketMatchesInvoiceAmount` | `char` | Delivery Ticket Matches Invoice Amount | ☐ | Whether or not the delivery ticket price has to match the invoice amount. Only used in combination with type 0 (Purchase invoice). |
| `description` | `varchar2`(255) | Description | ☐ | Description of the criteria. |
| `email` | `varchar2` | Email | ☐ | The email address. |
| `id_2` | `int64` | ID | ☐ | ID of the criteria. |
| `id` | `int64` | ID | ☐ | ID of contact. |
| `isVatShifted` | `char` | Is VAT Shifted | ☐ | Whether VAT is shifted for the contact. |
| `name_2` | `varchar2`(255) | | ☐ | Name of the criteria. |
| `name` | `varchar2` | Name | ☐ | Name of contact. |
| `phoneNumber` | `varchar2` | Phone Number | ☐ | The phone number of the contact. |
| `priceLowerBound` | `varchar2` | Price Lower Bound | ☐ | The lower bound price of the criteria. The following 'operators' are available:
* cost < priceUpperBound in psuedo: priceLowerBound is NULL and priceUpperBound is not NULL.
* cost > priceLowerBound in psuedo: priceLowerBound is NOT NULL and priceUpperBound is NULL.
* cost = priceLowerBound in psuedo: priceLowerBound is NOT NULL and priceUpperBound is NOT NULL and EQUAL to each other.
* cost > priceLowerBound and cost < priceUpperBound in psuedo: priceLowerBound is NOT NULL and priceUpperBound is NOT NULL and NOT EQUAL to each other.
* |
| `priceUpperBound` | `varchar2` | Price Upper Bound | ☐ | The upper bound price of the criteria. The following 'operators' are available:
* cost < priceUpperBound in psuedo: priceLowerBound is NULL and priceUpperBound is not NULL.
* cost > priceLowerBound in psuedo: priceLowerBound is NOT NULL and priceUpperBound is NULL.
* cost = priceLowerBound in psuedo: priceLowerBound is NOT NULL and priceUpperBound is NOT NULL and EQUAL to each other.
* cost > priceLowerBound and cost < priceUpperBound in psuedo: priceLowerBound is NOT NULL and priceUpperBound is NOT NULL and NOT EQUAL to each other.
* |
| `projectCategory_code` | `varchar2` | Project Category Code | ☐ | The code for the category. |
| `projectCategory_createdAt` | `datetime` | Project Category Created at | ☐ | The creation time of the entity. |
| `projectCategory_createdBy` | `varchar2` | Project Category Created by | ☐ | The user that created the entity. |
| `projectCategory_generalCostsPercentage` | `varchar2` | Project Category Genreal Costs Percentage | ☐ | The general costs percentage for the category. |
| `projectCategory_grossProfitMargin` | `varchar2` | | ☐ | The gross profit margin for the category. |
| `projectCategory_id` | `int64` | Project Category ID | ☐ | The ID of the category. |
| `projectCategory_name` | `varchar2` | Project Category Name | ☐ | The name of the category. |
| `projectCategory_updatedAt` | `datetime` | Project Category Updated at | ☐ | The last updated time of the entity. |
| `projectCategory_updatedBy` | `varchar2` | Project Category Updated by | ☐ | The user that last updated the entity. |
| `type` | `int64` | Type | ☐ | Criteria type. |
| `updatedAt` | `datetime` | Updated At | ☐ | The last updated time of the entity. |
| `updatedBy` | `varchar2` | Updated by | ☐ | The user that last updated the entity. |
| `workflow_approver1_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `workflow_approver1_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `workflow_approver1_id` | `int64` | | ☐ | ID of the approver. |
| `workflow_approver1_type` | `int64` | | ☐ | Approver type. |
| `workflow_approver1_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `workflow_approver1_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `workflow_approver2_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `workflow_approver2_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `workflow_approver2_id` | `int64` | | ☐ | ID of the approver. |
| `workflow_approver2_type` | `int64` | | ☐ | Approver type. |
| `workflow_approver2_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `workflow_approver2_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `workflow_approver3_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `workflow_approver3_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `workflow_approver3_id` | `int64` | | ☐ | ID of the approver. |
| `workflow_approver3_type` | `int64` | | ☐ | Approver type. |
| `workflow_approver3_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `workflow_approver3_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `workflow_approver4_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `workflow_approver4_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `workflow_approver4_id` | `int64` | | ☐ | ID of the approver. |
| `workflow_approver4_type` | `int64` | | ☐ | Approver type. |
| `workflow_approver4_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `workflow_approver4_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `workflow_approver5_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `workflow_approver5_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `workflow_approver5_id` | `int64` | | ☐ | ID of the approver. |
| `workflow_approver5_type` | `int64` | | ☐ | Approver type. |
| `workflow_approver5_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `workflow_approver5_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `workflow_createdAt` | `datetime` | Workflow Created at | ☐ | The creation time of the entity. |
| `workflow_createdBy` | `varchar2` | Workflow Created by | ☐ | The user that created the entity. |
| `workflow_id` | `int64` | Workflow ID | ☐ | ID of the approval workflow. |
| `workflow_isRestricted` | `char` | Workflow Is Restricted | ☐ | Whether or not the criteria is restricted. |
| `workflow_name` | `varchar2`(255) | Workflow Name | ☐ | Name of the approval workflow. |
| `workflow_updatedAt` | `datetime` | Workflow Updated at | ☐ | The last updated time of the entity. |
| `workflow_updatedBy` | `varchar2` | Workflow Updated by | ☐ | The user that last updated the entity. |