# bow_resource.postmaterialperunit: Bouw7 Package for resource operations that could not be mapped to a table.
bow_resource.postmaterialperunit: Bouw7 Package for resource operations that could not be mapped to a table.
Create or update the material per unit with the schema.Parameters of Procedure
The following parameters can be used to control the behaviour of the procedure `bow_resource.postmaterialperunit`. 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` | ☐ | | ID of this material per unit. |
| `price` | `string` | ☑ | | The price of this material per unit. |
| `sellingPrice` | `string` | ☐ | | The selling price of this material per unit. |
| `articleNumber` | `string` | ☐ | | The article number of this material per unit. |
| `eanCode` | `string` | ☐ | | The ean code of this material per unit. |
| `glAccountCode` | `string` | ☐ | | The general ledger account code of this material per unit. |
| `isActive` | `boolean` | ☐ | | Whether or not this material per unit is active. |
| `id_2` | `int64` | ☐ | | ID of the material. |
| `name` | `string` | ☐ | | Name of the material. |
| `information` | `string` | ☐ | | Extra information describing this material. |
| `id_3` | `int64` | ☐ | | ID of the material unit. |
| `name_2` | `string` | ☐ | | The name of the material unit. |
| `id_4` | `int64` | ☐ | | ID of contact. |
| `name_3` | `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_5` | `int64` | ☐ | | ID of the material group. |
| `name_4` | `string` | ☐ | | Name of the material group. |
| `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. |
| `deliveryTimeInDays` | `int64` | ☐ | | The delivery time in days of this material per unit. |
| `id_6` | `int64` | ☐ | | ID of the form factor. |
| `width` | `string` | ☐ | | The width of the form factor. |
| `height` | `string` | ☐ | | The height of the form factor. |
| `depth` | `string` | ☐ | | The depth of the form factor. |
| `radius` | `string` | ☐ | | The radius of the form factor. |
| `topRadius` | `string` | ☐ | | The top radius of the form factor. |
| `bottomRadius` | `string` | ☐ | | The bottom radius of the form factor. |
| `innerRadius` | `string` | ☐ | | The inner radius of the form factor. |
| `outerRadius` | `string` | ☐ | | The outer radius of the form factor. |
| `unit` | `int64` | ☐ | | The unit of the form factor. |
| `weight` | `string` | ☐ | | The weight of the form factor. |
| `type` | `int64` | ☐ | | The form factor type/shape of this form factor. |
| `createdAt_2` | `datetime` | ☐ | | The creation time of the entity. |
| `createdBy_2` | `string` | ☐ | | The user that created the entity. |
| `updatedAt_2` | `datetime` | ☐ | | The last updated time of the entity. |
| `updatedBy_2` | `string` | ☐ | | The user that last updated the entity. |
| `conversionFactor` | `string` | ☐ | | The conversion factor of this material per unit. |
| `id_7` | `int64` | ☐ | | ID of the vat tariff. |
| `label` | `string` | ☐ | | Display label of the VAT tariff. |
| `percentage` | `string` | ☐ | | The VAT percentage. |
| `shiftedPercentage` | `string` | ☐ | | The shifted VAT percentage. |
| `isShifted` | `boolean` | ☐ | | Whether the VAT is shifted. |
| `isDefault` | `boolean` | ☐ | | Whether this VAT is default for the country its associated with. |
| `effectiveFrom` | `string` | ☐ | | The date since this VAT tariff is effective. |
| `legalText` | `string` | ☐ | | The legal text for the VAT tariff. Only for customers from the belgian hosting. |
| `visibilityFlag` | `int64` | ☑ | | The visibility flag of this material per unit. |
| `isLinkedToBookings` | `boolean` | ☐ | | Whether this material per unit is linked to bookings. |
| `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. |