NetSuite defines consolidation relationships and translation rates in the consolidated_exchange_rates table. Currently, the consolidation parent dimension is missing for all but the root parent because of the line below in int_netsuite2__acctxperiod_exchange_rate_map.sql.
where consolidated_exchange_rates.to_subsidiary_id in (select subsidiary_id from subsidiaries where parent_id is null) -- constraint - only the primary subsidiary has no parent
Natively in NetSuite consolidated financial reporting can be generated at each layer. For example, using the hierarchy below, consolidated results for Sub D should include D, E, F translated into USD.
Subsidiary Hierarchy:
Sub A (USD)
Sub B (USD)
Sub C (USD)
Sub D (USD)
Sub E (GBP)
Sub F (CHF)
...
Is there an existing issue for this?
Describe the issue
NetSuite defines consolidation relationships and translation rates in the
consolidated_exchange_rates
table. Currently, the consolidation parent dimension is missing for all but the root parent because of the line below inint_netsuite2__acctxperiod_exchange_rate_map.sql
.Natively in NetSuite consolidated financial reporting can be generated at each layer. For example, using the hierarchy below, consolidated results for Sub D should include D, E, F translated into USD.
Subsidiary Hierarchy:
The pull request below contains a patch for this issue. https://github.com/fivetran/dbt_netsuite/pull/90
Relevant error log or model output
Expected behavior
All models should be disaggregated by
to_subsidiary
for consolidation reporting at each level.dbt Project configurations
config-version: 2 name: 'netsuite' version: '0.10.0' require-dbt-version: [">=1.3.0", "<2.0.0"]
models: netsuite: +materialized: table +schema: netsuite netsuite: intermediate: +materialized: ephemeral netsuite2: intermediate: +materialized: ephemeral
vars: netsuite:
Netsuite staging models
Package versions
packages:
What database are you using dbt with?
snowflake
dbt Version
1.6.1
Additional Context
No response
Are you willing to open a PR to help address this issue?