# DivisionPurchaseInvoiceImportJournalsById Returns a single division based on the given ID. - Catalog: `Bouw7` - Schema: `Organization` 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 `DivisionPurchaseInvoiceImportJournalsById`. 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 | |---|:---:|:---:|:---:|---| | `id` | `` | ☑ | | | ## Columns of Table Function The columns of the table function `DivisionPurchaseInvoiceImportJournalsById` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `code` | `varchar2` | Code | ☐ | Exact online journal code. | | `description` | `varchar2` | Description | ☐ | The description of the division. | | `exactDivisionId` | `varchar2` | Exact Division ID | ☐ | The division ID of an Exact Online environment. | | `exactPaymentConditionPurchase` | `varchar2`(255) | Exact Payment Condition Purchase | ☐ | A default payment condition to use for purchase related items. | | `exactPaymentConditionSales` | `varchar2`(255) | Exact Payment Condition Sales | ☐ | A default payment condition to use for sales related items. | | `glAccountCode` | `varchar2` | General Ledger Account Code | ☐ | A default general ledger account code to use for sales related items. | | `glAccountCodePurchase` | `varchar2` | General Ledger Account Code Purchase | ☐ | A default general ledger account code to use for purchase related items. | | `id_2` | `int64` | ID | ☐ | The ID of the division. | | `id` | `int64` | ID | ☐ | The ID of the exact journal. | | `journalCode` | `varchar2` | Journal Code | ☐ | A default journal code to use for sales related items. | | `journalCodePurchase` | `varchar2` | Journal Code Purchase | ☐ | A default journal code to use for purchase related items. | | `journalCodeWorkInProgress` | `varchar2` | Journal Code Work in Progress | ☐ | A default journal code to use for work in progress related items. | | `name` | `varchar2` | Name | ☐ | The name of the journal. | | `purchaseInvoiceImportBranch_code` | `varchar2` | | ☐ | The code for this branch | | `purchaseInvoiceImportBranch_division_description` | `varchar2` | | ☐ | The description of the division. | | `purchaseInvoiceImportBranch_division_exactDivisionId` | `varchar2` | | ☐ | The division ID of an Exact Online environment. | | `purchaseInvoiceImportBranch_division_glAccountCode` | `varchar2` | | ☐ | A default general ledger account code to use for sales related items. | | `purchaseInvoiceImportBranch_division_glAccountCodePurchase` | `varchar2` | | ☐ | A default general ledger account code to use for purchase related items. | | `purchaseInvoiceImportBranch_division_id` | `int64` | | ☐ | The ID of the division. | | `purchaseInvoiceImportBranch_division_journalCode` | `varchar2` | | ☐ | A default journal code to use for sales related items. | | `purchaseInvoiceImportBranch_division_journalCodePurchase` | `varchar2` | | ☐ | A default journal code to use for purchase related items. | | `purchaseInvoiceImportBranch_division_salesInvoiceNumberPrefix` | `varchar2`(3) | | ☐ | The prefix (3 digits) used to generate invoice number range per division. | | `purchaseInvoiceImportBranch_id` | `int64` | | ☐ | The ID of the branch. | | `purchaseInvoiceImportBranch_name` | `varchar2` | | ☐ | The name of this branch | | `salesInvoiceNumberPrefix` | `varchar2`(3) | Sales Invoice Number Prefix | ☐ | The prefix (3 digits) used to generate invoice number range per division. | | `shouldImportForAllJournalsForPurchaseInvoice` | `char` | | ☐ | Whether all journals are allowed when importing purchase invoices from Exact Online. | | `workInProgressSettings_allowInvoiceLinesWithoutProject` | `char` | | ☐ | If invoice lines without project are allowed. | | `workInProgressSettings_closingProjectStatus_closesProject` | `char` | | ☐ | Whether or not this status closes a project. | | `workInProgressSettings_closingProjectStatus_createdAt` | `datetime` | | ☐ | The creation time of the entity. | | `workInProgressSettings_closingProjectStatus_createdBy` | `varchar2` | | ☐ | The user that created the entity. | | `workInProgressSettings_closingProjectStatus_id` | `int64` | | ☐ | The ID of the status. | | `workInProgressSettings_closingProjectStatus_invoicesProject` | `char` | | ☐ | Whether or not this status invoices a project. | | `workInProgressSettings_closingProjectStatus_name` | `varchar2` | | ☐ | The name of the status. | | `workInProgressSettings_closingProjectStatus_plansProject` | `char` | | ☐ | Whether or not this status plans a project. | | `workInProgressSettings_closingProjectStatus_updatedAt` | `datetime` | | ☐ | The last updated time of the entity. | | `workInProgressSettings_closingProjectStatus_updatedBy` | `varchar2` | | ☐ | The user that last updated the entity. | | `workInProgressSettings_costCenterEquipment` | `varchar2`(255) | | ☐ | A cost center to use for equipment related items. | | `workInProgressSettings_costCenterEquipmentDebit` | `varchar2`(255) | | ☐ | A cost center to use for equipment debit related items. | | `workInProgressSettings_costCenterHours` | `varchar2`(255) | | ☐ | A cost center to use for hours related items. | | `workInProgressSettings_costCenterHoursDebit` | `varchar2`(255) | | ☐ | A cost center to use for hours debit related items. | | `workInProgressSettings_costCenterMaterial` | `varchar2`(255) | | ☐ | A cost center to use for material related items. | | `workInProgressSettings_costCenterMaterialDebit` | `varchar2`(255) | | ☐ | A cost center to use for material debit related items. | | `workInProgressSettings_costCenterPurchase` | `varchar2`(255) | | ☐ | A cost center to use for purchase related items. | | `workInProgressSettings_costCenterPurchaseDebit` | `varchar2`(255) | | ☐ | A cost center to use for purchase debit related items. | | `workInProgressSettings_costCenterSales` | `varchar2`(255) | | ☐ | A cost center to use for sales related items. | | `workInProgressSettings_costCenterSalesDebit` | `varchar2`(255) | | ☐ | A cost center to use for sales debit related items. | | `workInProgressSettings_costCenterWaste` | `varchar2`(255) | | ☐ | A cost center to use for waste related items. | | `workInProgressSettings_costCenterWasteDebit` | `varchar2`(255) | | ☐ | A cost center to use for waste debit related items. | | `workInProgressSettings_divisionId` | `int64` | | ☐ | The division ID that belongs to these settings. | | `workInProgressSettings_glAccountCodeEquipment` | `varchar2`(255) | | ☐ | A general ledger account code to use for equipment related items. | | `workInProgressSettings_glAccountCodeEquipmentClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for equipment closing related items. | | `workInProgressSettings_glAccountCodeEquipmentDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for equipment debit related items. | | `workInProgressSettings_glAccountCodeHours` | `varchar2`(255) | | ☐ | A general ledger account code to use for hours related items. | | `workInProgressSettings_glAccountCodeHoursClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for hours closing related items. | | `workInProgressSettings_glAccountCodeHoursDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for hours debit related items. | | `workInProgressSettings_glAccountCodeMaterial` | `varchar2`(255) | | ☐ | A general ledger account code to use for material related items. | | `workInProgressSettings_glAccountCodeMaterialClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for material closing related items. | | `workInProgressSettings_glAccountCodeMaterialDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for material debit related items. | | `workInProgressSettings_glAccountCodePurchase` | `varchar2`(255) | | ☐ | A general ledger account code to use for purchase related items. | | `workInProgressSettings_glAccountCodePurchaseClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for purchase closing related items. | | `workInProgressSettings_glAccountCodePurchaseDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for purchase debit related items. | | `workInProgressSettings_glAccountCodeSales` | `varchar2`(255) | | ☐ | A general ledger account code to use for sales related items. | | `workInProgressSettings_glAccountCodeSalesClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for sales closing related items. | | `workInProgressSettings_glAccountCodeSalesDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for sales debit related items. | | `workInProgressSettings_glAccountCodeWaste` | `varchar2`(255) | | ☐ | A general ledger account code to use for waste related items. | | `workInProgressSettings_glAccountCodeWasteClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for waste closing related items. | | `workInProgressSettings_glAccountCodeWasteDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for waste debit related items. | | `workInProgressSettings_id` | `int64` | | ☐ | The ID of the work in progress settings. |