# GarbageBookings: Bouw7 Garbage Bookings Returns a list of waste bookings made by the organization. Returns a list of waste bookings made by the organization. - Catalog: `Bouw7` - Schema: `Resource` - Label: Garbage Bookings 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 `GarbageBookings`. 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 `GarbageBookings` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `bookingStatus` | `int64` | Booking Status | ☐ | The status of this booking. 0 = Registered, 1 = Invoiced, 2 = Not billable, 3 = Credited. | | `comment` | `varchar2` | Comment | ☐ | The comment associated with this booked item. | | `costPrice` | `varchar2` | Costprice | ☐ | The cost price of the booked item. | | `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. | | `date` | `datetime` | Date | ☐ | The log date of the booked item. | | `exactUpdatedAt` | `varchar2` | | ☐ | The last time the entity was updated in Exact Online in ATOM format. | | `garbage_articleNumber` | `varchar2` | Garbage Article Number | ☐ | The article number (usually EAN) of this bookable unit. | | `garbage_costPrice` | `varchar2` | Garbage Cost Price | ☐ | The cost price of this bookable unit. | | `garbage_id` | `int64` | Garbage ID | ☐ | The ID of the waste-per-unit. | | `garbage_isActive` | `char` | Garbage Is Active | ☐ | The active state of this bookable unit. | | `garbage_name` | `varchar2` | Garbage Name | ☐ | The name of the waste. | | `garbage_sellingPrice` | `varchar2` | Garbage Selling Price | ☐ | The selling price of this bookable unit. | | `garbage_unit` | `varchar2` | Garbage Unit | ☐ | The name of the unit which quantifies the waste. | | `garbage_unitId` | `int64` | Garbage Unit ID | ☐ | The id of the unit which quantifies the waste. | | `garbage_wasteId` | `int64` | Garbage Waste ID | ☐ | The ID of the waste. | | `id` | `int64` | ID | ☐ | The ID of this waste booking. | | `invoicedAmount` | `varchar2` | Invoiced Amount | ☐ | The invoiced amount of the booked item. | | `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. | | `isMutable` | `char` | | ☐ | Whether the booked item is mutable. | | `project_branchId` | `int64` | Project Branch ID | ☐ | The ID of the branch of this project. | | `project_categoryId` | `int64` | Project Category ID | ☐ | The ID of the category of this project. | | `project_divisionId` | `int64` | Project Division ID | ☐ | The ID of the division of this project. | | `project_id` | `int64` | Project ID | ☐ | The ID of the project. | | `project_name` | `varchar2` | Project Name | ☐ | The name of the project. | | `project_number` | `varchar2` | Project Number | ☐ | The number of the project. | | `project_status` | `varchar2` | Project Status | ☐ | The name of the current status of this project. | | `project_statusId` | `int64` | Project Status ID | ☐ | The ID of the status of this project. | | `quantity` | `varchar2` | Quantity | ☐ | The quantity of the booked item. | | `sellingPrice` | `varchar2` | Selling Price | ☐ | The selling price of the booked item. | | `totalCostPrice` | `varchar2` | Total Cost Price | ☐ | The total cost price of the booked item. | | `totalSellingPrice` | `varchar2` | Total Selling Price | ☐ | The total selling price of the booked item. | | `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. |