[Bug] Net Income Adjustment is not applied for QBO instances with no revenue lines #145
Open
2 of 4 tasks
Labels
type:bug
Something is broken or incorrect
Is there an existing issue for this?
Describe the issue
I have a QBO instance that has expenses logged and the net income adjustment is not coming through.
Following the code path for net income adjustment it looks like this code here: https://github.com/fivetran/dbt_quickbooks/blob/ea05fe5647b67fc04b3eb355856d5ca2254495ec/models/intermediate/int_quickbooks__retained_earnings.sql#L35C1-L42C3
assumes that QBO will have revenue and expenses to compute net income adjustment. But what about in cases where there is no revenue (or expenses) recognized yet - only one of the two or neither. The account should still be returned.
Relevant error log or model output
No response
Expected behavior
Net income adjustment is available regardless of revenue or expenses existing.
Possible solution
No response
dbt Project configurations
Most recent quickstart
Package versions
Most recent quickstart
What database are you using dbt with?
snowflake
How are you running this dbt package?
Fivetran Quickstart Data Model
dbt Version
Most recent quickstart
Additional Context
No response
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: