-
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] converted amount in transaction details can be NULL in some cases #115
Comments
Hi @FrankTub, thank you for bringing this to our attention! This is actually something we've also spotted recently and were planning to spend some time investigating a proper solve for in the coming weeks. I think your initial solution is similar to the approach we landed on, but we didn't complete the investigation. Let me take some time to dig into this and see if this is the best possible solve for you. Have a great weekend and we'll be in touch soon! |
Hi @FrankTub ! Been doing some investigating, and were curious about your thoughts here:
Let us know your thoughts! This will hopefully lead us closer to what's lying at the root of this problem and allow us to address this with an appropriate fix. |
@fivetran-avinash , currently we are in the setup phase of Netsuite and this week we have removed all data from our Netsuite sandbox environment. So it will probably take some time before we have enough data to spot some trends in when the amount is not converted. I will come back on it when I can. What did draw my attention was that on transaction level there is a field exchange rate, when I look at the code this field was ignored. Any reason why this is? |
HI @FrankTub , thanks for the update! Let us know when you are able to check those trends and we can probably get closer to identifying the root issues to fix up. Could you elaborate what you mean by the field exchange rate being ignored? If you look at our documentation, our intermediate models bring in the exchange rate for the transaction and reporting period and then use that to calculate the converted amount in our end model. Have a great weekend! |
@fivetran-avinash , I can confirm that in our small test data case, all the rows where
With respect to above comment. What I meant was that on transaction level there is also a field I guess this is field |
Hi @FrankTub , thanks for the context! A few follow-ups and then we can probably decide on the proper course of action for this ticket.
Circle back to us when you can! |
Just verified and they are all transactions that will be posted in the future. For some reason our finance department starts creating these sales invoices a month in advance. They use it to forecast some things. So it would be usefull to have a best estimate for foreign currencies as well, if not possible I think most of our data is in local currency, and fixing it only for local currency would also be really helpful |
Hi @FrankTub , thanks for all your excellent analysis and thoughts. Unfortunately, after much discussion and thoughts, we have decided to keep the converted amount as is in our model to maintain financial fidelity. Even though introducing new logic that would create future facing converted amounts is possible, we are concerned that other teams not familiar with your use case would suffer misaligned expectations for these particular converted amounts. The current transaction details end model does provide a proper set of end transactions with the correct converted amounts--adding logic that converts amount in the future is subject to volatility. Particularly when foreign currency gets involved, you'd see forecasted amounts changing pretty frequently and potentially very volatile converted amount values. This can also be disruptive to customers who see constantly changing transaction figures without any real explanation. Whereas when the converted amount is posting, those numbers should stay fixed in the plurality of all cases. My suggestion would be to leverage the Sorry I couldn't provide a proper solution here internally! This feature does reminds us of the perils of developing a package meant to fit as many customers as possible as opposed to customized solutions for just one. While I agree that this solution would work for your own internal use, it would be one that would be difficult to work for the majority of customers. We hope this alternative solution provides you with what you need. Let me know if you have any questions! |
While we did not choose to proceed forward with working on this issue, we did create the above PR to update the DECISIONLOG for our reasons for not doing so. It will be part of a future Netsuite release. Thanks again for all your proactive communication @FrankTub. Apologies that we could not go ahead and add that logic in, but hopefully our proposed intermediate solution will work for you! Always reach out and let us know what we can do to help. |
Is there an existing issue for this?
Describe the issue
In
netsuite2__transaction_details
the columnconverted_amount
can beNULL
, while thetransaction_amount
column is not empty. I guess this has to do with the way an exchange rate is determined in your code.Our default currency is
EUR
. I have taken a look at the code that was used to determine the correct exchange rate but did not fully comprehend the logic behind it. The expected output forconverted_amount
when the currency is our default currency would be that the exchange rate would be1
.Relevant error log or model output
Expected behavior
The column
netsuite2__transaction_details.converted_amount
should never be NULL.dbt Project configurations
Don't think it is relevant here, but this is what we have configured:
Package versions
Basicly I'm using
0.12.0
, but due to #113 I started using the following in mypackages.yml
:What database are you using dbt with?
postgres
dbt Version
1.7.11
Additional Context
Example output of my query:
netsuite2__transaction_details_202404051706.csv
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: