-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Fix account number on balance sheet - income statement and CTA #135
Comments
Hi @jmongerlyra thank you for opening this issue and the PR. I will take a closer look at this after the weekend! |
Hello @jmongerlyra , thanks for doing all the work in separating out the initial PR! I do have two requests before we bring this into a future sprint:
Sorry for all the extra leg work you have to do here, but it'll accelerate our development cycle if you provide these details. Let me know if you have any questions! |
@fivetran-avinash I cherry picked the commits and closed the other PRs. Let me know if you have any questions or feedback. |
Thanks @jmongerlyra ! We've kicked off work on #131 this sprint (as well as this issue related to your PR in the source) and our team will revisit this issue afterward. |
Hi @jmongerlyra ! Thanks for your patience here. I've kicked off work on this issue this week and am reviewing your PR. I just wanted to check and see if there's anything else you needed to add your PR before moving into the release process? Let me know if you have any thoughts, questions or concerns. |
@fivetran-avinash Thanks for checking. There's no additional work planned. |
Thanks @jmongerlyra . Just want to check: Is this logic in line 113 of the |
@fivetran-avinash Good catch. I had to cherry pick/resolve merge conflicts from our fork, and inadvertently swapped these. I have corrected. |
Thanks for addressing! One last thing, I saw this change in the logic for Could you elaborate on why these changes were applied? It does look like it matches the logic applied for Also, should we apply the logic on lines 99-100 to |
That's just the way the diff is presenting because that section of code is the same for
It does not apply here. That code is unique to |
Thanks @jmongerlyra ! I've gone ahead and merged your changes into our branch and will hopefully have a release for these changes in a new version of the package out in the coming days. |
Hi @jmongerlyra! These changes are now live. Let us know if everything looks good on your end. I'll go ahead and close this issue but feel free to get in touch if you have any questions, thoughts or concerns. |
@fivetran-avinash Looks good. Thanks! |
Is there an existing issue for this?
Describe the issue
Issue 1
The account number for income statement and CTA accounts in the balance sheet model is currently set to NULL. This is not how it is presented on the native Balance Sheet report in NetSuite.
Income statement accounts should use the account number of the system-generated retained earnings account. CTA should use the account number of the system-generated CTA account.
Issue 2
Commonly used fields are missing from the balance sheet, income statement, and transaction details models. See list below.
models/netsuite2/intermediate/base/int_netsuite2__transaction_lines.sql
transaction_accounting_lines.exchange_rate
: Exchange rate used on the transactionmodels/netsuite2/netsuite2__balance_sheet.sql
subsidiaries.full_name
: Full hierarchical name of the subsidiary. Useful in sorting.accounts.display_name
: Account name without number or hierarchy. Cleaner than other name values.is_account_leftside
: Boolean indicating if account has a native debit balance. This is on other models but missing from balance sheet.models/netsuite2/netsuite2__transaction_details.sql
transactions.is_reversal
: Boolean indicating line is reversaltransactions.reversal_transaction_id
: Transaction ID of the counterparty in a reversing pairtransactions.reversal_date
: Transaction Date of the counterparty in a reversing pairtransactions.is_reversal_defer
: Boolean indicating reversal deferraltransaction_lines.is_eliminate
: Boolean indicating line will auto-eliminatedepartments.full_name
: Full hierarchical name of the department. Useful for sorting.subsidiaries_currencies.symbol
: Currency of the subsidiarytransaction_lines.netamount
: Net amount of transaction line. This is the actual amount entered when it's in a currency other than the functional currency of the subsidiary.Issue 3
Would like to add
subsidiaries_pass_through_columns
so that fields from the subsidiary table can be added to the transaction details model.Relevant error log or model output
dbt Project configurations
Package versions
What database are you using dbt with?
snowflake
dbt Version
1.7.14
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: