diff --git a/models/netsuite2/netsuite2__balance_sheet.sql b/models/netsuite2/netsuite2__balance_sheet.sql index 9e31b85..e2ab20c 100644 --- a/models/netsuite2/netsuite2__balance_sheet.sql +++ b/models/netsuite2/netsuite2__balance_sheet.sql @@ -119,6 +119,10 @@ balance_sheet as ( end as account_number, case when not accounts.is_balancesheet then false + else accounts.is_eliminate + end as is_account_intercompany, + case + when not accounts.is_balancesheet then false else accounts.is_leftside end as is_account_leftside @@ -233,6 +237,7 @@ balance_sheet as ( 'cumulative_translation_adjustment' as account_type_id, null as account_id, (select accounts.account_number from accounts where lower(accounts.special_account_type_id) = 'cumultransadj' limit 1) as account_number, + false as is_account_intercompany, false as is_account_leftside, {% if var('accounts_pass_through_columns') %} diff --git a/models/netsuite2/netsuite2__transaction_details.sql b/models/netsuite2/netsuite2__transaction_details.sql index e199382..3941917 100644 --- a/models/netsuite2/netsuite2__transaction_details.sql +++ b/models/netsuite2/netsuite2__transaction_details.sql @@ -195,7 +195,7 @@ transaction_details as ( --The below script allows for subsidiaries table pass through columns. {{ fivetran_utils.persist_pass_through_columns('subsidiaries_pass_through_columns', identifier='subsidiaries') }}, - + case when lower(accounts.account_type_id) in ('income', 'othincome') then -transactions_with_converted_amounts.converted_amount_using_transaction_accounting_period else transactions_with_converted_amounts.converted_amount_using_transaction_accounting_period