Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
## Bug Fix
- Avoids fanout in `netsuite2__transaction_details` when multi-book accounting is disabled.

# dbt_netsuite v1.8.0-a1

## Bug Fix
- Fixes null conversion amounts for top-level subsidiaries missing a self-conversion exchange rate; rate now defaults to 1. Updates `converted_amount` values in `netsuite2__transaction_details`, `netsuite2__income_statement`, and `netsuite2__balance_sheet`.

> **Note**: A `--full-refresh` is recommended after upgrading.

# dbt_netsuite v1.7.1

[PR #208](https://github.com/fivetran/dbt_netsuite/pull/208) includes the following updates:
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,20 @@ transaction_and_reporting_periods as (
),

accounts as (
select *
select *
from {{ ref('int_netsuite2__accounts') }}
),

{% if using_exchange_rate %}
subsidiaries as (
select
subsidiary_id,
source_relation,
parent_id
from {{ ref('stg_netsuite2__subsidiaries') }}
),
{% endif %}

retained_earnings_accounts as (
select
source_relation,
Expand Down Expand Up @@ -73,8 +83,8 @@ transactions_in_every_calculation_period_w_exchange_rates as (
transaction_and_reporting_periods.reporting_accounting_period_id

{% if using_exchange_rate %}
, exchange_reporting_period.exchange_rate as exchange_rate_reporting_period
, exchange_transaction_period.exchange_rate as exchange_rate_transaction_period
, coalesce(exchange_reporting_period.exchange_rate, case when subsidiaries.parent_id is null then 1 end) as exchange_rate_reporting_period
Comment thread
fivetran-joemarkiewicz marked this conversation as resolved.
, coalesce(exchange_transaction_period.exchange_rate, case when subsidiaries.parent_id is null then 1 end) as exchange_rate_transaction_period
{% endif %}

{% if using_to_subsidiary and using_exchange_rate %}
Expand All @@ -90,6 +100,10 @@ transactions_in_every_calculation_period_w_exchange_rates as (
and transaction_and_reporting_periods.source_relation = transaction_lines_w_accounting_period.source_relation

{% if using_exchange_rate %}
left join subsidiaries
on subsidiaries.subsidiary_id = transaction_lines_w_accounting_period.subsidiary_id
and subsidiaries.source_relation = transaction_lines_w_accounting_period.source_relation

left join accountxperiod_exchange_rate_map as exchange_reporting_period
on exchange_reporting_period.accounting_period_id = transaction_and_reporting_periods.reporting_accounting_period_id
and exchange_reporting_period.source_relation = transaction_and_reporting_periods.source_relation
Expand Down
Loading