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

minor unit calculations for amounts in stripe__main_transactions #11

Open
bhavikvadhia opened this issue Jun 29, 2022 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@bhavikvadhia
Copy link

In the model - tripe__main_transactions.sql , the amount values are divided by 100 to get correct amount which is not at paise level.

However, some currencies like JPY - do not have any minor currency unit, and hence the amount value should be as is while reporting rather than diving by 100.

currency codes and minor units

Possible solution:
We can use this csv as a seed file to our project and can use currency literal value from stripe data and join it with this file to get how much decimals should we use for dividing in order to get to a major currency level.

@bhavikvadhia
Copy link
Author

actual csv containing currency related details

@shubh24 shubh24 added the enhancement New feature or request label Jul 4, 2022
@shubh24 shubh24 self-assigned this Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants