# DeliveryTicketById: Bouw7 Delivery Ticket by ID Returns a single delivery ticket based on the given ID. Returns a single delivery ticket based on the given ID. - Catalog: `Bouw7` - Schema: `DeliveryTicket` - Label: Delivery Ticket by 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 `DeliveryTicketById`. 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 `DeliveryTicketById` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `canDelete` | `char` | Can Delete | ☐ | Whether this delivery ticket can be deleted. | | `contact_contactType_id` | `int64` | Contact Contact Type ID | ☐ | The ID of contact type. | | `contact_contactType_name` | `varchar2` | Contact Contact Type Name | ☐ | The name of contact type. | | `contact_email` | `varchar2` | Contact Email | ☐ | The email address. | | `contact_id` | `int64` | Contact ID | ☐ | ID of contact. | | `contact_isVatShifted` | `char` | Contact Is VAT Shifted | ☐ | Whether VAT is shifted for the contact. | | `contact_name` | `varchar2` | Contact Name | ☐ | Name of contact. | | `contact_phoneNumber` | `varchar2` | Contact Phone Number | ☐ | The phone number of the contact. | | `contract_contractNumber` | `varchar2` | Contract Number | ☐ | The number of the contract. | | `contract_id` | `int64` | Contract ID | ☐ | The ID of the contract. | | `contract_type` | `int64` | Contract Type | ☐ | Type of the contract. | | `cost` | `varchar2` | Cost | ☐ | The costs for this delivery ticket. | | `createdAt` | `datetime` | Created at | ☐ | The creation time of the entity. | | `createdBy` | `varchar2` | Created by | ☐ | The user that created the entity. | | `description` | `varchar2` | Description | ☐ | The description of this delivery ticket | | `file_createdAt` | `datetime` | File Created at | ☐ | The creation time of the entity. | | `file_createdBy` | `varchar2` | File Created by | ☐ | The user that created the entity. | | `file_extension` | `varchar2` | File Extension | ☐ | The extension of the file. | | `file_id` | `int64` | File ID | ☐ | The ID of this file | | `file_modelId` | `int64` | File Model ID | ☐ | The ID of the associated type. | | `file_modelType` | `varchar2` | File Model Type | ☐ | The category of the file. | | `file_name` | `varchar2` | File Name | ☐ | The public name of the file. | | `file_secureHash` | `varchar2` | | ☐ | A secure random hash for the file, that can be used for retrieving thumbnails without additional authentication. | | `file_size` | `int64` | File Size | ☐ | The size of the file in bytes. | | `file_updatedAt` | `datetime` | File Updated at | ☐ | The last updated time of the entity. | | `file_updatedBy` | `varchar2` | File Updated by | ☐ | The user that last updated the entity. | | `file_uri` | `varchar2` | File URI | ☐ | The URI of the file, used to fetch the contents. | | `hasBookedPurchaseInvoice` | `char` | | ☐ | Whether or not the purchase invoice has been booked to a bookkeeping system. | | `hasImmutablePurchaseInvoice` | `char` | | ☐ | Whether the purchase invoice is mutable. | | `id` | `int64` | ID | ☐ | The ID of the delivery ticket. | | `initialCost` | `varchar2` | Initial Cost | ☐ | Initial cost of the delivery ticket. The value cannot be modified. | | `processed` | `char` | Processed | ☐ | Whether this delivery ticket is 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` | `varchar2` | Project Security Link Code | ☐ | The code of the security code. | | `projectSecurityLink_id` | `int64` | Project Security Link ID | ☐ | The unique identifier of the project security link. | | `projectSecurityLink_name` | `varchar2` | Project Security Link Name | ☐ | The name of the project security link. | | `purchaseInvoice_bookNumber` | `int64` | | ☐ | The booknumber of the purchase invoice. | | `purchaseInvoice_branch_code` | `varchar2` | | ☐ | The code for this branch | | `purchaseInvoice_branch_id` | `int64` | | ☐ | The ID of the branch. | | `purchaseInvoice_branch_name` | `varchar2` | | ☐ | The name of this branch | | `purchaseInvoice_canBeDeleted` | `char` | | ☐ | Whether the invoice can be deleted. | | `purchaseInvoice_comments` | `varchar2` | | ☐ | Comment associated with the purchase invoice. | | `purchaseInvoice_contact_email` | `varchar2` | | ☐ | The email address. | | `purchaseInvoice_contact_id` | `int64` | | ☐ | ID of contact. | | `purchaseInvoice_contact_isVatShifted` | `char` | | ☐ | Whether VAT is shifted for the contact. | | `purchaseInvoice_contact_name` | `varchar2` | | ☐ | Name of contact. | | `purchaseInvoice_contact_phoneNumber` | `varchar2` | | ☐ | The phone number of the contact. | | `purchaseInvoice_createdAt` | `datetime` | | ☐ | The creation time of the entity. | | `purchaseInvoice_createdBy` | `varchar2` | | ☐ | The user that created the entity. | | `purchaseInvoice_date` | `datetime` | | ☐ | Purchase invoice date. | | `purchaseInvoice_deliveryTicket_cost` | `varchar2` | | ☐ | The costs for this delivery ticket. | | `purchaseInvoice_deliveryTicket_id` | `int64` | | ☐ | The ID of delivery ticket. | | `purchaseInvoice_deliveryTicket_initialCost` | `varchar2` | | ☐ | The initial costs for this delivery ticket. | | `purchaseInvoice_deliveryTicket_processed` | `char` | | ☐ | Whether the delivery ticket has been processed. | | `purchaseInvoice_deliveryTicket_ticketDate` | `datetime` | | ☐ | The date for which the delivery ticket were logged. | | `purchaseInvoice_deliveryTicket_ticketNumber` | `varchar2` | | ☐ | Ticket number of delivery ticket. | | `purchaseInvoice_division_description` | `varchar2` | | ☐ | The description of the division. | | `purchaseInvoice_division_exactDivisionId` | `varchar2` | | ☐ | The division ID of an Exact Online environment. | | `purchaseInvoice_division_glAccountCode` | `varchar2` | | ☐ | A default general ledger account code to use for sales related items. | | `purchaseInvoice_division_glAccountCodePurchase` | `varchar2` | | ☐ | A default general ledger account code to use for purchase related items. | | `purchaseInvoice_division_id` | `int64` | | ☐ | The ID of the division. | | `purchaseInvoice_division_journalCode` | `varchar2` | | ☐ | A default journal code to use for sales related items. | | `purchaseInvoice_division_journalCodePurchase` | `varchar2` | | ☐ | A default journal code to use for purchase related items. | | `purchaseInvoice_division_salesInvoiceNumberPrefix` | `varchar2`(3) | | ☐ | The prefix (3 digits) used to generate invoice number range per division. | | `purchaseInvoice_id` | `int64` | | ☐ | The ID of purchase invoice. | | `purchaseInvoice_invoiceNumber` | `varchar2` | | ☐ | The invoice number of purchase invoice. | | `purchaseInvoice_isBooked` | `char` | | ☐ | Whether or not the purchase invoice has been booked to a bookkeeping system. | | `purchaseInvoice_orderNumber` | `varchar2` | | ☐ | The order number of the purchase invoice. | | `purchaseInvoice_project_city` | `varchar2` | | ☐ | The city of the project. | | `purchaseInvoice_project_createdAt` | `datetime` | | ☐ | The creation time of the entity. | | `purchaseInvoice_project_createdBy` | `varchar2` | | ☐ | The user that created the entity. | | `purchaseInvoice_project_deliveryDate` | `datetime` | | ☐ | Delivery date for the project. | | `purchaseInvoice_project_endDate` | `datetime` | | ☐ | End date for the project. | | `purchaseInvoice_project_fullProjectNumber` | `varchar2` | | ☐ | The full project number including year. | | `purchaseInvoice_project_houseNumber` | `varchar2` | | ☐ | The house number for the project. | | `purchaseInvoice_project_id` | `int64` | | ☐ | The ID of the project. | | `purchaseInvoice_project_information` | `varchar2` | | ☐ | The information of the project. | | `purchaseInvoice_project_name` | `varchar2` | | ☐ | The name of the project. | | `purchaseInvoice_project_projectNumber` | `varchar2` | | ☐ | The project number. | | `purchaseInvoice_project_reference` | `varchar2` | | ☐ | The reference of the project. | | `purchaseInvoice_project_startDate` | `datetime` | | ☐ | Start date for the project. | | `purchaseInvoice_project_streetName` | `varchar2` | | ☐ | The street name for the project. | | `purchaseInvoice_project_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. | | `purchaseInvoice_project_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. | | `purchaseInvoice_project_zipCode` | `varchar2` | | ☐ | The zip code for the project. | | `purchaseInvoice_status` | `int64` | | ☐ | Status of the purchase invoice. | | `purchaseInvoice_totalExcludingVat` | `varchar2` | | ☐ | Price excluding VAT of the purchase invoice. | | `purchaseInvoice_totalIncludingVat` | `varchar2` | | ☐ | Price including VAT of the purchase invoice. | | `purchaseInvoice_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. | | `purchaseInvoice_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. | | `purchaseType` | `int64` | Purchase Type | ☐ | The purchase type. | | `ticketDate` | `datetime` | Ticket Date | ☐ | The date for which the delivery ticket were logged. | | `ticketNumber` | `varchar2`(256) | Ticket Number | ☐ | Ticket number of the delivery ticket. | | `updatedAt` | `datetime` | Updated At | ☐ | The last updated time of the entity. | | `updatedBy` | `varchar2` | Updated by | ☐ | The user that last updated the entity. |