Skip to content

Fix period_beginning_converted_balance in int_quickbooks__retained_earnings - #231

Open
porkedchop wants to merge 1 commit into
fivetran:mainfrom
porkedchop:fix/retained-earnings-beginning-converted-balance
Open

porkedchop wants to merge 1 commit into
fivetran:mainfrom
porkedchop:fix/retained-earnings-beginning-converted-balance

Conversation

@porkedchop

Copy link
Copy Markdown

Resolves #230

Please provide your name and company

Bishop Kammeraad

Describe what this PR changes and how it addresses the linked issue or feature request.

Changes period_beginning_converted_balance in int_quickbooks__retained_earnings to lag period_ending_converted_balance instead of period_ending_balance. The beginning converted balance of the Net Income Adjustment row now matches the prior period's ending converted balance.

How did you validate the changes introduced within this PR, and what warehouse did you use for testing?

DuckDB with the integration test data. For account_id = '9999' in quickbooks__general_ledger_by_period, periods where period_beginning_converted_balance differs from the prior period's period_ending_converted_balance go from 73 of 86 to 0. For 2026-02-01, period_beginning_converted_balance goes from 61460 to 50423, matching period_ending_converted_balance with a net converted change of 0. Unconverted columns and row counts (3698) are unchanged. dbt build passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Retained earnings period_beginning_converted_balance uses unconverted period_ending_balance

1 participant