# bow_hourlog.posthourlog: Bouw7 Package for hourLog operations that could not be mapped to a table.
bow_hourlog.posthourlog: Bouw7 Package for hourLog operations that could not be mapped to a table.
Create or update a hour log with the schema.Parameters of Procedure
The following parameters can be used to control the behaviour of the procedure `bow_hourlog.posthourlog`. 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 `begin package.procedure(value1, value2, value3); end` on a procedure 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 `begin package.procedure(name1 => value1, name3 => value3); end` on the same procedure 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` | `int64` | ☐ | | The ID of the hour log. |
| `id_2` | `int64` | ☐ | | ID of contact. |
| `name` | `string` | ☐ | | Name of contact. |
| `email` | `string` | ☐ | | The email address. |
| `phoneNumber` | `string` | ☐ | | The phone number of the contact. |
| `isVatShifted` | `boolean` | ☐ | | Whether VAT is shifted for the contact. |
| `contactType_id` | `int64` | ☐ | | The ID of contact type. |
| `contactType_name` | `string` | ☐ | | The name of contact type. |
| `id_3` | `int64` | ☐ | | ID of the employee. |
| `firstName` | `string` | ☐ | | First name of the employee. |
| `lastName` | `string` | ☐ | | Last name of the employee. |
| `logHours` | `string` | ☑ | | The amount of hours logged. |
| `invoiceAmount` | `string` | ☐ | | The amount that will be shown on the invoice. |
| `logDate` | `datetime` | ☑ | | The date for which the hours were logged. |
| `startTime` | `string` | ☐ | | The start time of the workday. Only available if enabled for your organization. |
| `endTime` | `string` | ☐ | | The end time of the workday. Only available if enabled for your organization. |
| `id_4` | `int64` | ☐ | | The ID of HourType. |
| `name_2` | `string` | ☐ | | The name of the HourType. |
| `comments` | `string` | ☐ | | The comments for this hour log. |
| `hourlyRate` | `string` | ☐ | | The hourly rate. |
| `approved` | `boolean` | ☐ | | Whether this hour log has been approved. |
| `paidOff` | `boolean` | ☐ | | Whether this hour log has been paid off. |
| `exactUpdatedAt` | `string` | ☐ | | The last time the entity was updated in Exact Online in ATOM format. |
| `isEditable` | `boolean` | ☐ | | Whether this hour log is editable and deletable. |
| `id_5` | `int64` | ☐ | | The unique identifier of the project security link. |
| `name_3` | `string` | ☐ | | The name of the project security link. |
| `code` | `string` | ☐ | | The code of the security code. |
| `id_6` | `int64` | ☐ | | The ID of the project. |
| `projectNumber` | `string` | ☐ | | The project number. |
| `fullProjectNumber` | `string` | ☐ | | The full project number including year. |
| `name_4` | `string` | ☐ | | The name of the project. |
| `streetName` | `string` | ☐ | | The street name for the project. |
| `houseNumber` | `string` | ☐ | | The house number for the project. |
| `zipCode` | `string` | ☐ | | The zip code for the project. |
| `city` | `string` | ☐ | | The city of the project. |
| `information` | `string` | ☐ | | The information of the project. |
| `reference` | `string` | ☐ | | The reference of the project. |
| `startDate` | `datetime` | ☐ | | Start date for the project. |
| `endDate` | `datetime` | ☐ | | End date for the project. |
| `deliveryDate` | `datetime` | ☐ | | Delivery date for the project. |
| `contact_id` | `int64` | ☐ | | ID of contact. |
| `contact_name` | `string` | ☐ | | Name of contact. |
| `contact_email` | `string` | ☐ | | The email address. |
| `contact_phoneNumber` | `string` | ☐ | | The phone number of the contact. |
| `contact_isVatShifted` | `boolean` | ☐ | | Whether VAT is shifted for the contact. |
| `contact_contactType_id` | `int64` | ☐ | | The ID of contact type. |
| `contact_contactType_name` | `string` | ☐ | | The name of contact type. |
| `category_id` | `int64` | ☐ | | The ID of the category. |
| `category_name` | `string` | ☐ | | The name of the category. |
| `category_code` | `string` | ☐ | | The code for the category. |
| `category_generalCostsPercentage` | `string` | ☐ | | The general costs percentage for the category. |
| `category_generalCostsOrProfit` | `string` | ☐ | | The general costs or profit for the category. |
| `category_grossProfitMargin` | `string` | ☐ | | The gross profit margin for the category. |
| `category_createdAt` | `datetime` | ☐ | | The creation time of the entity. |
| `category_createdBy` | `string` | ☐ | | The user that created the entity. |
| `category_updatedAt` | `datetime` | ☐ | | The last updated time of the entity. |
| `category_updatedBy` | `string` | ☐ | | The user that last updated the entity. |
| `status_id` | `int64` | ☐ | | The ID of the status. |
| `status_name` | `string` | ☐ | | The name of the status. |
| `status_closesProject` | `boolean` | ☐ | | Whether or not this status closes a project. |
| `status_invoicesProject` | `boolean` | ☐ | | Whether or not this status invoices a project. |
| `status_plansProject` | `boolean` | ☐ | | Whether or not this status plans a project. |
| `status_createdAt` | `datetime` | ☐ | | The creation time of the entity. |
| `status_createdBy` | `string` | ☐ | | The user that created the entity. |
| `status_updatedAt` | `datetime` | ☐ | | The last updated time of the entity. |
| `status_updatedBy` | `string` | ☐ | | The user that last updated the entity. |
| `branch_id` | `int64` | ☐ | | The ID of the branch. |
| `branch_name` | `string` | ☐ | | The name of this branch |
| `branch_code` | `string` | ☐ | | The code for this branch |
| `branch_division_id` | `int64` | ☐ | | The ID of the division. |
| `branch_division_description` | `string` | ☐ | | The description of the division. |
| `branch_division_exactDivisionId` | `string` | ☐ | | The division ID of an Exact Online environment. |
| `branch_division_glAccountCode` | `string` | ☐ | | A default general ledger account code to use for sales related items. |
| `branch_division_glAccountCodePurchase` | `string` | ☐ | | A default general ledger account code to use for purchase related items. |
| `branch_division_journalCode` | `string` | ☐ | | A default journal code to use for sales related items. |
| `branch_division_journalCodePurchase` | `string` | ☐ | | A default journal code to use for purchase related items. |
| `branch_division_salesInvoiceNumberPrefix` | `string` | ☐ | | The prefix (3 digits) used to generate invoice number range per division. |
| `createdAt` | `datetime` | ☐ | | The creation time of the entity. |
| `createdBy` | `string` | ☐ | | The user that created the entity. |
| `updatedAt` | `datetime` | ☐ | | The last updated time of the entity. |
| `updatedBy` | `string` | ☐ | | The user that last updated the entity. |
| `isMutable` | `boolean` | ☐ | | Whether the hour log booking is mutable. Applicable only if this hour log belongs to a employee, otherwise null. |
| `createdAt1` | `datetime` | ☐ | | The creation time of the entity. |
| `createdBy1` | `string` | ☐ | | The user that created the entity. |
| `updatedAt1` | `datetime` | ☐ | | The last updated time of the entity. |
| `updatedBy1` | `string` | ☐ | | The user that last updated the entity. |