Skip to content
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

Incorrect transaction amount and revenue on /billing/order/ table #123

Open
SimplyPancake opened this issue Nov 15, 2024 · 4 comments
Open
Assignees
Labels

Comments

@SimplyPancake
Copy link
Contributor

There seems to be incorrect data in the /billing/order table, but correct data on every event itself.
image
image

@SimplyPancake SimplyPancake self-assigned this Nov 15, 2024
@Kurocon
Copy link
Member

Kurocon commented Nov 15, 2024

I noticed this myself as well. The error should be in this change somewhere, but I cannot spot it yet.
f76baf4

@Kurocon
Copy link
Member

Kurocon commented Nov 15, 2024

I do notice that the reported 'transaction count' 2142 is exactly 119 * 18, which is the amount of regular transactions times the amount of writeoff transactions. So probably somewhere an aggregation is going wrong and creating duplicate results. Perhaps a simple .distinct() on this query fixes the issue.

@SimplyPancake
Copy link
Contributor Author

I cannot spot it yet either, I think it has to do with the Sum function, but I am still figuring it out as well.

@SimplyPancake
Copy link
Contributor Author

That seems to be a good option to consider. I'll look into it :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants