Skip to content
Open
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
2 changes: 1 addition & 1 deletion Netsuite/Netsuite_Queries/BigQuery/balance_sheet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ with transactions_with_converted_amounts as (
on exchange_transaction_period.accounting_period_id = transactions_in_every_calculation_period.transaction_accounting_period_id
and exchange_transaction_period.account_id = transactions_in_every_calculation_period.account_id
and exchange_transaction_period.from_subsidiary_id = transactions_in_every_calculation_period.subsidiary_id
)
), transactions_with_converted_amounts as (
select
transactions_in_every_calculation_period_w_exchange_rates.*,
unconverted_amount * exchange_rate_reporting_period as converted_amount_using_reporting_month,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
with transactions_with_converted_amounts as (
with period_exchange_rate_map as ( /* exchange rates used, by accounting period, to convert to parent subsidiary */
with period_exchange_rate_map as ( /* exchange rates used, by accounting period, to convert to parent subsidiary */
select
consolidated_exchange_rates.accounting_period_id,
consolidated_exchange_rates.average_rate,
Expand Down Expand Up @@ -95,4 +94,3 @@ with transactions_with_converted_amounts as (
else null end as account_category
from transactions_in_every_calculation_period_w_exchange_rates
join netsuite.accounts on accounts.account_id = transactions_in_every_calculation_period_w_exchange_rates.account_id
)