--
Jakub Kondrat
Software Developer
jkon...@soldevelo.com
SolDevelo Sp. z o. o. [LLC]
Office: +48 58 782 45 40 / Fax: +48 58 782 45 41Al. Zwycięstwa 96/9881-451, Gdynia
http://www.soldevelo.com
Place of registration: Regional Court for the City of GdanskKRS: 0000332728, TAX ID: PL5862240331, REGON: 220828585,Share capital: 60,000.00 PLN
--
You received this message because you are subscribed to the Google Groups "OpenLMIS Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev+unsubscribe@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/588e0fe8-7066-4318-8355-2e0e0fbaff0b%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openlmis-dev...@googlegroups.com.
To post to this group, send email to openlm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/588e0fe8-7066-4318-8355-2e0e0fbaff0b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/2a350680-0b9a-4b47-9d0f-095a6432d60b%40googlegroups.com.
Questions:
- Is the issue with the ReferenceData UI or ReferenceData Service??
- Is there a need to change from handling a single currency to multiple currencies?
I'm a fan of loading currency in from bootstrap settings — but I'm not sure the UI should always ping the ReferenceData Service to figure out how to format numbers....
Nick Reid | nick...@villagereach.org
Friendly Neighborhood
Spiderman, Information Systems Group
VillageReach Starting
at the Last Mile
2900 Eastlake Ave. E, Suite 230, Seattle, WA 98102, USA
CELL: +1.510.410.0020
SKYPE: nickdotreid
www.villagereach.org
To view this discussion on the web visit https://groups.google.com/d/msgid/openlmis-dev/MWHPR02MB322930B24259214065F88F8E94EF0%40MWHPR02MB3229.namprd02.prod.outlook.com.
Josh, I have one suggested tweak to your currency proposal below. Instead of an “endpoint that exposes this ISO setting to the UI”, instead we could just provide the ISO setting value along-side any currency value when we return a currency value from any ReferenceData endpoint.
There are a few benefits of this:
- Consumers of the API do not need to learn to call our special “ISO setting endpoint”, they simply call our existing endpoints and whenever they see a money value the JSON shows them what currency to interpret that money value as.
- If we ever decide to support multiple currencies (like a different currency setting on a per-program basis), we would not need to change the API signatures at all. We would just add more logic into the API code but the API RAML would not change and API consumers would not need to change.
- Plus we save an extra HTTP request back-and-forth.
Just a thought.
Brandon
I'm a fan of passing the currency type along with the currency value
It does make me wonder if the UI/client would then be responsible for storing every possible format (or any expected format) — but this isn't a huge problem, and possibly something that could be set when the client is built.... I'm not sure we want to expose an endpoint that will describe how to format currencies (ie decimal separators vs commas vs cat-gifs)
Nick Reid | nick...@villagereach.org
Friendly Neighborhood
Spiderman, Information Systems Group
VillageReach Starting
at the Last Mile
2900 Eastlake Ave. E, Suite 230, Seattle, WA 98102, USA
CELL: +1.510.410.0020
SKYPE: nickdotreid
www.villagereach.org