# bow_contract.postcontractorderline: Bouw7 Package for contract operations that could not be mapped to a table.
bow_contract.postcontractorderline: Bouw7 Package for contract operations that could not be mapped to a table.
Create or update a contract order line with the schema.Parameters of Procedure
The following parameters can be used to control the behaviour of the procedure `bow_contract.postcontractorderline`. 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 |
|---|:---:|:---:|:---:|---|
| `p_project` | `int64` | ☑ | | Project ID |
| `id` | `int64` | ☐ | | The ID of this contract order line. |
| `id_2` | `int64` | ☐ | | The ID of the project. |
| `projectNumber` | `string` | ☐ | | The project number. |
| `fullProjectNumber` | `string` | ☐ | | The full project number including year. |
| `name` | `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. |
| `id_3` | `int64` | ☐ | | ID of contact. |
| `name_2` | `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_4` | `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. |
| `articleNumber` | `string` | ☐ | | The article number of this contract order line. |
| `description` | `string` | ☐ | | The description of this contract order line. |
| `quantity` | `string` | ☐ | | The quantity of this contract order line. |
| `unit` | `string` | ☐ | | The contract order line unit. |
| `unitPrice` | `string` | ☐ | | The price of this contract order line. |
| `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. |