# bow_purchaseinvoicing.deletepurchaseinvoice: Bouw7 Package for purchaseInvoicing operations that could not be mapped to a table. bow_purchaseinvoicing.deletepurchaseinvoice: Bouw7 Package for purchaseInvoicing operations that could not be mapped to a table. Delete the given purchase invoice.Parameters of Procedure The following parameters can be used to control the behaviour of the procedure `bow_purchaseinvoicing.deletepurchaseinvoice`. 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 purchase invoice. | | `isBooked` | `boolean` | ☐ | | Whether or not the purchase invoice has been booked to a bookkeeping system. | | `canBeDeleted` | `boolean` | ☐ | | Whether the invoice can be deleted. | | `bookNumber` | `int64` | ☐ | | The booknumber of the purchase invoice. | | `orderNumber` | `string` | ☐ | | The order number of the purchase invoice. | | `invoiceNumber` | `string` | ☐ | | The invoice number of purchase invoice. | | `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. | | `date` | `datetime` | ☐ | | Purchase invoice date. | | `status` | `int64` | ☐ | | Status of the purchase invoice. | | `totalExcludingVat` | `string` | ☐ | | Price excluding VAT of the purchase invoice. | | `totalIncludingVat` | `string` | ☐ | | Price including VAT of the purchase invoice. | | `id_3` | `int64` | ☐ | | The ID of the project. | | `projectNumber` | `string` | ☐ | | The project number. | | `fullProjectNumber` | `string` | ☐ | | The full project number including year. | | `name_2` | `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_2_id` | `int64` | ☐ | | The ID of the status. | | `status_2_name` | `string` | ☐ | | The name of the status. | | `status_2_closesProject` | `boolean` | ☐ | | Whether or not this status closes a project. | | `status_2_invoicesProject` | `boolean` | ☐ | | Whether or not this status invoices a project. | | `status_2_plansProject` | `boolean` | ☐ | | Whether or not this status plans a project. | | `status_2_createdAt` | `datetime` | ☐ | | The creation time of the entity. | | `status_2_createdBy` | `string` | ☐ | | The user that created the entity. | | `status_2_updatedAt` | `datetime` | ☐ | | The last updated time of the entity. | | `status_2_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_4` | `int64` | ☐ | | The ID of delivery ticket. | | `ticketNumber` | `string` | ☐ | | Ticket number of delivery ticket. | | `ticketDate` | `datetime` | ☐ | | The date for which the delivery ticket were logged. | | `cost` | `string` | ☐ | | The costs for this delivery ticket. | | `processed` | `boolean` | ☐ | | Whether the delivery ticket has been processed. | | `initialCost` | `string` | ☐ | | The initial costs for this delivery ticket. | | `comments` | `string` | ☐ | | Comment associated with the purchase invoice. | | `id_5` | `int64` | ☐ | | The ID of the branch. | | `name_3` | `string` | ☐ | | The name of this branch | | `code` | `string` | ☐ | | The code for this branch | | `division_id` | `int64` | ☐ | | The ID of the division. | | `division_description` | `string` | ☐ | | The description of the division. | | `division_exactDivisionId` | `string` | ☐ | | The division ID of an Exact Online environment. | | `division_glAccountCode` | `string` | ☐ | | A default general ledger account code to use for sales related items. | | `division_glAccountCodePurchase` | `string` | ☐ | | A default general ledger account code to use for purchase related items. | | `division_journalCode` | `string` | ☐ | | A default journal code to use for sales related items. | | `division_journalCodePurchase` | `string` | ☐ | | A default journal code to use for purchase related items. | | `division_salesInvoiceNumberPrefix` | `string` | ☐ | | The prefix (3 digits) used to generate invoice number range per division. | | `id_6` | `int64` | ☐ | | The ID of the division. | | `description` | `string` | ☐ | | The description of the division. | | `exactDivisionId` | `string` | ☐ | | The division ID of an Exact Online environment. | | `glAccountCode` | `string` | ☐ | | A default general ledger account code to use for sales related items. | | `glAccountCodePurchase` | `string` | ☐ | | A default general ledger account code to use for purchase related items. | | `journalCode` | `string` | ☐ | | A default journal code to use for sales related items. | | `journalCodePurchase` | `string` | ☐ | | A default journal code to use for purchase related items. | | `salesInvoiceNumberPrefix` | `string` | ☐ | | The prefix (3 digits) used to generate invoice number range per division. | | `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. |