Feature #45923

adjustable number of decimal points for f:format.currency

Added by Josef F. Glatz (Old User) about 8 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Won't have this time
Assignee:
-
Category:
ViewHelpers
Target version:
-
Start date:
2013-02-28
Due date:
% Done:

0%

Estimated time:
Has patch:
No

Description

From time to time it's useful to have an extra attribute to set the number of decimal points. Because of the fact that especially for large amounts of money (e.g. realty objects, luxury) no decimals are required, this should be configurable.

#1

Updated by Adrian Föder over 7 years ago

  • Status changed from New to Rejected
  • Priority changed from Should have to Won't have this time

IMO that crosses the border to the need of an own ViewHelper, because one would need to have an en dash as replacement for decimals, one wants a non-breaking semi space as thousands separator, etc.

Exactly this stuff is mostly "business/project logic" where you want all prices to be formatted particularly, this even more calls for an own, package specific currency formatting view helper.

I'll presume to reject it so far and have a team member a look at it; anyways feel free to reopen if you disagree.

#2

Updated by Bastian Waidelich over 7 years ago

I agree to Adrian. Besides, if the representation of a number really is part of the domain in some cases the model could already format it, so that {luxury.price} is enough in the view

#3

Updated by Josef F. Glatz (Old User) over 7 years ago

Thanks for the feedback. That's ok for me ;)

Also available in: Atom PDF