Repository navigation
fix: correct noncash asset signs in cash flow statements - #226
Bortlesboat wants to merge 2 commits into
Conversation
|
Hi @Bortlesboat , thanks for submitting this PR. Can you link to the Quickbooks Online documentation supporting this assertion?
|
|
@fivetran-avinash These Intuit sources support the cash-flow direction:
The exact The PR implements that package decision: reverse the noncash Asset balances before taking period differences, in both amount columns. The synthetic regression covers prepaid and fixed assets, with Bank, Liability and Equity controls. It does not establish complete parity with QBO's report for every noncash adjustment or currency scenario. The quoted statement should be read as this model's sign convention, with that scope. |
18ef61a to
33d87ef
Compare
Keep the current release catalog and manifest for the maintainer docs workflow. Preserve the model, synthetic inputs and cash-flow regressions.
Resolves #133
Please provide your name and company
Bortlesboat, contributing independently.
Describe what this PR changes and how it addresses the linked issue or feature request.
Cash-flow statements now treat an increase in a noncash Asset balance as a use of cash and a decrease as a source of cash. The rule applies to original and converted amounts; Bank, Liability and Equity balances retain their existing signs. Balanced synthetic journal entries cover asset purchases, releases and control accounts.
How did you validate the changes introduced within this PR, and what warehouse did you use for testing?
The exact regression failed on four asset-month results before the fix and passed afterward. PostgreSQL passed 54 seeds, 127 models and all four cash-flow checks; an independent rerun passed those checks. DuckDB passed 96 default models, then 74 models and four cash-flow checks with report-date FX enabled and a home currency specified. Checked-in docs were regenerated from PostgreSQL.
The broader DuckDB test run passed 53 of 54 tests. The remaining balance-sheet integrity failure reproduces on untouched upstream with the same five failing periods; this PR leaves that separate behavior unchanged. Cloud warehouses and Buildkite were not exercised locally.
November 25 refresh
Merged release 1.12.0 (
28d88f6) and kept its generated catalog and manifest for the maintainer'sdocs:readyworkflow. On DuckDB, I reloaded the four affected seeds, rebuilt the cash-flow statement and randbt test --select cash_flow_amounts_match cash_flow_non_cash_asset_signs quickbooks__cash_flow_statement --vars '{fivetran_validation_tests_enabled: true, using_report_date_fx_conversion: true, quickbooks__home_currency: USD}'with one thread. All four selected checks passed on the refreshed branch.Feedback
We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.
PR Template