Closed jmongerlyra closed 10 months ago
Hi @jmongerlyra I have been able to validate the CTA for our internal data and it looks like nearly all months except the previous month match what Netsuite is displaying. This is likely as period close has not happened yet and there will be some adjustments before we see the balances match.
As a result, I was not able to find a specific reason why your CTA balance is significantly off 🤔. One thing we recently came across was a discrepancy with how we are cataloging intercompany transactions. Does your org by chance have a high volume of intercompany transactions? I wonder if Issue #87 may lead us to understand why you are seeing such a high variance. However, this is only if you do in fact have a large number of intercompany transactions. If not, we may need to come back to the drawing board to understand the solution to this variance.
@fivetran-joemarkiewicz This could very well be relevant. Is there a patch we could test? I am also open to additional meetings if that would be helpful.
@fivetran-joemarkiewicz The code below fixes the issue for us. Similar to the other issue, this moves from account_type
based translation to general_rate_type
.
After spending time with the code, I better understand that the model is essentially forcing the balance sheet to balance by translating every transaction and calling the difference CTA. This is a fine approach.
case
when lower(accounts.general_rate_type) in ('historical', 'average') then converted_amount_using_transaction_accounting_period
else converted_amount_using_reporting_month
end as converted_amount
@jmongerlyra that's great to hear that you were able to narrow in on the issue and see a resolution! I was able to make these changes on a copy of the branch @fivetran-avinash was working on with similar updates in leveraging general_rate_type
.
Would you be able to test this branch and confirm the results are what you would expect?
packages:
- git: https://github.com/fivetran/dbt_netsuite.git
revision: fivetran-joemarkiewicz-patch-1
warn-unpinned: false
@fivetran-joemarkiewicz The changes on that branch look good. 👍
Thanks @jmongerlyra! Let me confirm this with our internal team that these look good. Once I get the all clear from them I feel comfortable in rolling these latest changes out!
Hi all! The updates highlighted in this issue have been merged and released in the latest release of the dbt_netsuite package. These updates should be live on the dbt hub at the top of the hour.
If you still see this issue persist after upgrading, please let us know. Closing this issue as the latest release includes the fix.
Is there an existing issue for this?
Describe the issue
The
converted_amount
generated inNETSUITE2__BALANCE_SHEET
for the currency translation adjustment account doesn't match the NetSuite balance sheet report in our environment. This is my query.The relevant code section appears to be lines 128-178 in
netsuite2__balance_sheet
.Relevant error log or model output
No response
Expected behavior
Summarized total from table matches the NetSuite Balance Sheet report.
dbt Project configurations
packages:
Package versions
0.9.0
What database are you using dbt with?
snowflake
dbt Version
1.4.5
Additional Context
No response
Are you willing to open a PR to help address this issue?