Skip to content

Better Price Control #58

Description

@jasonlavigne

When items are or type Price, the display will be based on the Price.Currency type.

img 53

Below you will see that the Price type has a Currency, you can use this to call the API to get the Currency object

img 54

Request to the API GEO Service

img 55

This information contains all the information needed to correctly display the price in the currency format. For example, the Canadian format using the information above is $ 1,000.00 because it says PrefixCharacter is true (false would be the $ is at the end of the number), it also gives the DecimalPlaces and the separators for thousands and decimal.

This Currency information can and should be cached, make one request and then all keep it around for fast control display. If we do this, we can show any currency in the correct format every time.

If there is no currency set, default to no character, 2 decimal places, “,” as the thousands separator, “.” as the decimal separator.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions