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

Model issue: currency unit vs currency resource type #367

Open
bhaugen opened this issue Apr 16, 2015 · 1 comment
Open

Model issue: currency unit vs currency resource type #367

bhaugen opened this issue Apr 16, 2015 · 1 comment
Labels

Comments

@bhaugen
Copy link

bhaugen commented Apr 16, 2015

We got currency Units and currency Resource Types whose unit is the currency unit.

For example, in Sensorica, we got Canadian Dollars whose unit is the currency Canadian Dollars.

Something is probably wrong with this picture, but I don't know exactly what it is or how to fix it.

We also have Virtual Account Resources, Economic Events, prices, and other things measured in CAD, so the CAD currency Unit seems to be necessary, and is not always a duplication.

And then we got Payments and other Economic Events whose Resource Type is CAD the Resource Type and whose unit is CAD the currency Unit. So in that case, it is a duplication.

We may need to consult a philosopher...

@bhaugen
Copy link
Author

bhaugen commented Apr 16, 2015

I asked Lynn, why didn't we just have Money as the Resource Type and then the currency CAD or USD or Euro or Yen or whatever would not be duplicate information.

She reminds me that a Resource Type must have a unit. That's why we have all of those currency-specific Resource Types.

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

No branches or pull requests

1 participant