# SubcontractorContractTermDeliveryTicketsBySubcontractorId: Bouw7 Sub-contractor Contract Term Delivery Tickets by Sub-contractor ID
Returns a single subcontractor contract based on the given ID.
Returns a single subcontractor contract based on the given ID.
- Catalog: `Bouw7`
- Schema: `Contract`
- Label: Sub-contractor Contract Term Delivery Tickets by Sub-contractor 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 `SubcontractorContractTermDeliveryTicketsBySubcontractorId`. 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 `SubcontractorContractTermDeliveryTicketsBySubcontractorId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `acceptedAt` | `varchar2` | Accepted at | ☐ | Datetime when contract was accepted. |
| `amount` | `varchar2` | Amount | ☐ | The amount of the contract term. |
| `amountOnly` | `char` | Amount Only | ☐ | Whether or not to show the amount only for the contract term. |
| `amountReceived` | `varchar2` | Amount Received | ☐ | The received amount of the contract term. |
| `amountToReceive` | `varchar2` | Amount to Receive | ☐ | The amount to receive of the contract term. |
| `approval_canApprove` | `char` | | ☐ | Whether or not the current authenticated user can approve the approval. |
| `approval_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `approval_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `approval_currentApprover_approvalDate` | `datetime` | | ☐ | The date at which the approver denied/approved the approval. |
| `approval_currentApprover_approvalStatus` | `int64` | | ☐ | The approval status of this approver. |
| `approval_currentApprover_comment` | `varchar2` | | ☐ | Comment left by the approver. Can be null. |
| `approval_currentApprover_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `approval_currentApprover_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `approval_currentApprover_id` | `int64` | | ☐ | ID of the approver. |
| `approval_currentApprover_index` | `int64` | | ☐ | Current index of the approver. |
| `approval_currentApprover_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `approval_currentApprover_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `approval_currentIndex` | `int64` | | ☐ | The current index of the approver which turn it is to vote on the approval. |
| `approval_id` | `int64` | | ☐ | ID of the approval. |
| `approval_isApproved` | `char` | | ☐ | Whether or not the approval has been approved. |
| `approval_lastActionDate` | `datetime` | | ☐ | Date of the last action done to this approval. Will be null when no action has been made. |
| `approval_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `approval_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `approval_workflowId` | `int64` | | ☐ | The workflow that this approval is based of. |
| `approved` | `char` | Approved | ☐ | Whether or not the contract term has been approved. |
| `calledReceipts` | `int64` | Called Receipts | ☐ | The amount of called receipt documents. |
| `contractId` | `int64` | Contract ID | ☐ | The contract id of the contract term. The value is set automatically based on the parent schema. |
| `contractNumber` | `varchar2` | Contract Number | ☐ | The contract number of the contract. |
| `contractType` | `int64` | Contract Type | ☐ | The contract type of the contract term. The value is set automatically based on the parent schema. |
| `cost_2` | `varchar2` | | ☐ | The cost of the contract. |
| `cost` | `varchar2` | Cost | ☐ | The costs for this delivery ticket. |
| `costReceived` | `varchar2` | Cost Received | ☐ | The received cost of the contract term. |
| `costToReceive` | `varchar2` | Cost to Receive | ☐ | The cost to receive of the contract term. |
| `createdAt_2` | `datetime` | Created at | ☐ | The creation time of the entity. |
| `createdAt` | `datetime` | Created at | ☐ | The creation time of the entity. |
| `createdBy_2` | `varchar2` | Created by | ☐ | The user that created the entity. |
| `createdBy` | `varchar2` | Created by | ☐ | The user that created the entity. |
| `createDeliveryTicket_2` | `char` | | ☐ | Whether or not to create a delivery ticket. |
| `createDeliveryTicket` | `char` | Create Delivery Ticket | ☐ | Whether or not to create a delivery ticket. |
| `deniedAt` | `varchar2` | Denied at | ☐ | Datetime when contract was denied. |
| `description_2` | `varchar2` | | ☐ | The description of the contract. |
| `description` | `varchar2`(255) | Description | ☐ | The description of the contract term. |
| `expectedCompletionDate` | `datetime` | Expected Completion Date | ☐ | The expected completion date of the subcontractor contract. |
| `expectedCompletionDateText` | `varchar2` | Expected Completion Date Text | ☐ | The expected completion date text of the subcontractor contract. |
| `id_2` | `int64` | ID | ☐ | The ID of the contract term. |
| `id_3` | `int64` | | ☐ | The ID of the subcontractor contract. |
| `id` | `int64` | ID | ☐ | The ID of delivery ticket. |
| `initialCost` | `varchar2` | Initial Cost | ☐ | The initial costs for this delivery ticket. |
| `internalNote` | `varchar2` | Internal Note | ☐ | Internal note about the contract. |
| `language` | `varchar2` | Language | ☐ | The locale used by this contract, e.g.: nl-NL. |
| `linkedDeliveryTicket_cost` | `varchar2` | | ☐ | The costs for this delivery ticket. |
| `linkedDeliveryTicket_id` | `int64` | | ☐ | The ID of delivery ticket. |
| `linkedDeliveryTicket_initialCost` | `varchar2` | | ☐ | The initial costs for this delivery ticket. |
| `linkedDeliveryTicket_processed` | `char` | | ☐ | Whether the delivery ticket has been processed. |
| `linkedDeliveryTicket_ticketDate` | `datetime` | | ☐ | The date for which the delivery ticket were logged. |
| `linkedDeliveryTicket_ticketNumber` | `varchar2` | | ☐ | Ticket number of delivery ticket. |
| `logEntries` | `int64` | Log Entries | ☐ | The amount of log entries. |
| `mailSent` | `char` | Mail Sent | ☐ | Flag to indicate if mail was sent. |
| `mailSentAt` | `varchar2` | Mail Sent at | ☐ | The date the contract was sent. |
| `mailSentBy` | `varchar2` | Mail Sent by | ☐ | The user that sent the email. |
| `name` | `varchar2`(255) | Name | ☐ | The name of the contract. |
| `number_2` | `varchar2` | | ☐ | Number of the contract. |
| `number` | `varchar2`(255) | Number | ☐ | The number of the contract term. |
| `oneTwoBuildCommunicationId` | `int64` | One Two Build Communication ID | ☐ | The ID used by 12Build for this contract |
| `paid` | `char` | Paid | ☐ | Whether or not the contract term has been paid. |
| `partiallyAmountReceived` | `varchar2` | Partially Amount Received | ☐ | The partially received amount of the contract term. |
| `partiallyCostReceived` | `varchar2` | Partially Cost Received | ☐ | The partially received cost of the contract term. |
| `paymentAgreement` | `varchar2` | Payment Agreement | ☐ | The payment agreement of the contract. |
| `processed` | `char` | Processed | ☐ | Whether the delivery ticket has been processed. |
| `project_branch_code` | `varchar2` | | ☐ | The code for this branch |
| `project_branch_id` | `int64` | | ☐ | The ID of the branch. |
| `project_branch_name` | `varchar2` | | ☐ | The name of this branch |
| `project_category_code` | `varchar2` | | ☐ | The code for the category. |
| `project_category_createdAt` | `datetime` | | ☐ | The creation time of the entity. |
| `project_category_createdBy` | `varchar2` | | ☐ | The user that created the entity. |
| `project_category_generalCostsOrProfit` | `varchar2` | | ☐ | The general costs or profit for the category. |
| `project_category_generalCostsPercentage` | `varchar2` | | ☐ | The general costs percentage for the category. |
| `project_category_grossProfitMargin` | `varchar2` | | ☐ | The gross profit margin for the category. |
| `project_category_id` | `int64` | | ☐ | The ID of the category. |
| `project_category_name` | `varchar2` | | ☐ | The name of the category. |
| `project_category_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. |
| `project_category_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. |
| `project_city` | `varchar2` | Project City | ☐ | The city of the project. |
| `project_contact_email` | `varchar2` | Project Contact Email | ☐ | The email address. |
| `project_contact_id` | `int64` | Project Contact ID | ☐ | ID of contact. |
| `project_contact_isVatShifted` | `char` | | ☐ | Whether VAT is shifted for the contact. |
| `project_contact_name` | `varchar2` | Project Contact Name | ☐ | Name of contact. |
| `project_contact_phoneNumber` | `varchar2` | | ☐ | The phone number of the contact. |
| `project_createdAt` | `datetime` | Project Created at | ☐ | The creation time of the entity. |
| `project_createdBy` | `varchar2` | Project Created by | ☐ | The user that created the entity. |
| `project_deliveryDate` | `datetime` | Project Delivery Date | ☐ | Delivery date for the project. |
| `project_endDate` | `datetime` | Project End Date | ☐ | End date for the project. |
| `project_fullProjectNumber` | `varchar2` | Project Full Project Number | ☐ | The full project number including year. |
| `project_houseNumber` | `varchar2` | Project House Number | ☐ | The house number for the project. |
| `project_id` | `int64` | Project ID | ☐ | The ID of the project. |
| `project_information` | `varchar2` | Project Information | ☐ | The information of the project. |
| `project_name` | `varchar2` | Project Name | ☐ | The name of the project. |
| `project_projectNumber` | `varchar2` | Project Project Number | ☐ | The project number. |
| `project_reference` | `varchar2` | Project Reference | ☐ | The reference of the project. |
| `project_startDate` | `datetime` | Project Start Date | ☐ | Start date for the project. |
| `project_status_closesProject` | `char` | Project Status Closes Project | ☐ | Whether or not this status closes a project. |
| `project_status_createdAt` | `datetime` | Project Status Created at | ☐ | The creation time of the entity. |
| `project_status_createdBy` | `varchar2` | Project Status Created by | ☐ | The user that created the entity. |
| `project_status_id` | `int64` | Project Status ID | ☐ | The ID of the status. |
| `project_status_invoicesProject` | `char` | Project Status Invoices Project | ☐ | Whether or not this status invoices a project. |
| `project_status_name` | `varchar2` | Project Status Name | ☐ | The name of the status. |
| `project_status_plansProject` | `char` | Project Status Plans Project | ☐ | Whether or not this status plans a project. |
| `project_status_updatedAt` | `datetime` | Project Status Updated at | ☐ | The last updated time of the entity. |
| `project_status_updatedBy` | `varchar2` | Project Status Updated by | ☐ | The user that last updated the entity. |
| `project_streetName` | `varchar2` | Project Street Name | ☐ | The street name for the project. |
| `project_updatedAt` | `datetime` | Project Updated at | ☐ | The last updated time of the entity. |
| `project_updatedBy` | `varchar2` | Project Updated by | ☐ | The user that last updated the entity. |
| `project_zipCode` | `varchar2` | Project ZIP Code | ☐ | The zip code for the project. |
| `projectSecurityLink_code_2` | `varchar2` | | ☐ | The code of the security code. |
| `projectSecurityLink_code` | `varchar2` | Project Security Link Code | ☐ | The code of the security code. |
| `projectSecurityLink_id_2` | `int64` | | ☐ | The unique identifier of the project security link. |
| `projectSecurityLink_id` | `int64` | Project Security Link ID | ☐ | The unique identifier of the project security link. |
| `projectSecurityLink_name_2` | `varchar2` | | ☐ | The name of the project security link. |
| `projectSecurityLink_name` | `varchar2` | Project Security Link Name | ☐ | The name of the project security link. |
| `sortIndex` | `int64` | Sort Index | ☐ | The sort index of the contract term. |
| `startDate` | `datetime` | Start Date | ☐ | The starting date of the subcontractor contract. |
| `startDateText` | `varchar2` | Start Date Text | ☐ | The starting date text of the subcontractor contract. |
| `status` | `int64` | Status | ☐ | Status of the contract. |
| `subcontractor_contactType_id` | `int64` | Sub-contractor Contact Type ID | ☐ | The ID of contact type. |
| `subcontractor_contactType_name` | `varchar2` | Sub-contractor Contact Type Name | ☐ | The name of contact type. |
| `subcontractor_email` | `varchar2` | Sub-contractor Email | ☐ | The email address. |
| `subcontractor_id` | `int64` | Sub-contractor ID | ☐ | ID of contact. |
| `subcontractor_isVatShifted` | `char` | | ☐ | Whether VAT is shifted for the contact. |
| `subcontractor_name` | `varchar2` | Sub-contractor Name | ☐ | Name of contact. |
| `subcontractor_phoneNumber` | `varchar2` | | ☐ | The phone number of the contact. |
| `subTotal` | `varchar2` | Subtotal | ☐ | The subtotal of the contract term. |
| `ticketDate` | `datetime` | Ticket Date | ☐ | The date for which the delivery ticket were logged. |
| `ticketNumber` | `varchar2` | Ticket Number | ☐ | Ticket number of delivery ticket. |
| `type` | `int64` | Type | ☐ | Type of the contract. |
| `unit` | `varchar2`(255) | Unit | ☐ | The contract term unit. |
| `unitPrice` | `varchar2` | Unit Price | ☐ | The cost of the contract term. |
| `updatedAt_2` | `datetime` | Updated at | ☐ | The last updated time of the entity. |
| `updatedAt` | `datetime` | Updated At | ☐ | The last updated time of the entity. |
| `updatedBy_2` | `varchar2` | Updated by | ☐ | The user that last updated the entity. |
| `updatedBy` | `varchar2` | Updated by | ☐ | The user that last updated the entity. |