Feature #9313
Support for currencies
Status: | New | Start date: | ||
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | - | % Done: | 0% |
|
Category: | I18n | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No |
Description
Currencies should probably be handled in a special way in FLOW3. Maybe there should be a Currency
class which would store the decimal value and the international currency code?
This would provide a nice way to store and display money amounts.
Related issues
History
#1 Updated by Karsten Dambekalns almost 5 years ago
- Status changed from New to Needs Feedback
- Assigned To set to Karol Gusak
Karol, could you handle this?
#2 Updated by Karsten Dambekalns almost 5 years ago
When dealing with decimals, never use decimals :) Store integers only, i.e. multiply by 100 for common cent-based currencies. This helps to avoid rounding errors, have a look at Robert's moneylib extension for some inspiration...
#3 Updated by Karol Gusak almost 5 years ago
- Status changed from Needs Feedback to Accepted
I will definately look at it.
#4 Updated by Karsten Dambekalns over 3 years ago
- Status changed from Accepted to New
- Assigned To deleted (
Karol Gusak) - Has patch set to No