# InvoiceTerms: Bouw7 Invoice Terms Returns a list of project invoice terms associated with the organization. Returns a list of project invoice terms associated with the organization. - Catalog: `Bouw7` - Schema: `Project` - Label: Invoice Terms 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 `InvoiceTerms`. 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 | |---|:---:|:---:|:---:|---| | `q` | `` | ☐ | | A [Heimdall Query Language](https://heimdall.bouw7.nl/docs/query-language) string | ## Columns of Table Function The columns of the table function `InvoiceTerms` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `createdAt` | `datetime` | Created at | ☐ | The creation date of the object in ATOM/ISO-8601 format | | `createdBy_id` | `int64` | Created by ID | ☐ | The ID of the user. | | `createdBy_username` | `varchar2` | Created by User Name | ☐ | The username of the user. | | `description` | `varchar2` | Description | ☐ | A description for the invoice term. | | `id` | `int64` | ID | ☐ | ID of the project invoice term. | | `invoiceableAt` | `varchar2` | Invoiceable at | ☐ | The date from which the term can be invoiced. | | `invoiceLine_id` | `int64` | Invoice Line ID | ☐ | The ID of the invoice line. | | `invoiceLine_invoiceId` | `int64` | | ☐ | The ID of the invoice this invoice line belongs to. | | `invoiceLine_invoiceStatusId` | `int64` | | ☐ | The ID of the status of the invoice this line belongs to. | | `percentage` | `varchar2` | Percentage | ☐ | The percentage of the total sum this invoice term covers. | | `statement_contactId` | `int64` | Statement Contact ID | ☐ | The ID of the contact associated with this project term statement. | | `statement_contactName` | `varchar2` | Statement Contact Name | ☐ | The name of the contact associated with this project term statement. | | `statement_fixedPrice` | `varchar2` | Statement Fixed Price | ☐ | The fixed price for this project term statement. | | `statement_fullProjectNumber` | `varchar2` | Statement Full Project Number | ☐ | The number of the project this project term statement belongs to. | | `statement_id` | `int64` | Statement ID | ☐ | ID of the project invoice term. | | `statement_projectBranchId` | `int64` | Statement Project Branch ID | ☐ | The ID of the branch associated with the project this project term statement belongs to. | | `statement_projectCategoryId` | `int64` | Statement Project Category ID | ☐ | The ID of the category of the project this project term statement belongs to. | | `statement_projectId` | `int64` | Statement Project ID | ☐ | The ID of the project this project term statement belongs to. | | `statement_projectName` | `varchar2` | Statement Project Name | ☐ | The name of the project this project term statement belongs to. | | `statement_projectStatusId` | `int64` | Statement Project Status ID | ☐ | The ID of the status of the project this project term statement belongs to. | | `subtotal` | `varchar2` | Subtotal | ☐ | The subtotal for this invoice term. | | `updatedAt` | `datetime` | Updated At | ☐ | The creation date of the object in ATOM/ISO-8601 format | | `updatedBy_id` | `int64` | Updated by ID | ☐ | The ID of the user. | | `updatedBy_username` | `varchar2` | Updated by User Name | ☐ | The username of the user. | | `vatTariff_id` | `int64` | VAT Tariff ID | ☐ | The ID of the vat tariff. | | `vatTariff_isShifted` | `char` | VAT Tariff is Shifted | ☐ | Whether the VAT is shifted. | | `vatTariff_label` | `varchar2`(255) | VAT Tariff Label | ☐ | Display label of the VAT tariff. | | `vatTariff_percentage` | `varchar2` | VAT Tariff Percentage | ☐ | The VAT percentage. | | `vatTariffPercentage` | `varchar2` | VAT Tariff Percentage | ☐ | The vat tariff percentage that was be applied to this term. |