hey
i've found the mvf module (Measured Value Field)
as of the current version, 1.1, it supports a lot of unit types, including currencies:
- world currencies
- length
- volume
- weight
- area
- pressure
- time
- temperature
the field works as value and unit.
has options for Unit selection mode (Short name, Full name), MVF display mode (like you got in money), Decimals display mode (Field precision, Unit precision), unit ranges, allowed units, value limits, default values, precision and decimals, etc.
in every way, it seems to do exactly what money does, and more (ranges, value limits, and other kinds of units). the developer even states:
Measured Value Field module was started as fork of Money CCK module, but provides more generic and flexible solution.
Everything Money CCK could do is implemented, besides converting facility, which is not in my priority list. Compared to Money CCK there are lots of advancements: value range support, pluggable units support, flexible validation of values, min-max limits, easy setup of available units.i would suggest cooperating with MVF to support whatever hasn't been integrated yet (i think nothing remains to do) and deprecate money in favor of mvf.
btw, MVF requires these modules to work:
- cck
- these APIs: format_number, units and unitsapi (the last is a extension for units; provides types of units)
- this cck field type: formatted_number
further optionally integrates with Views, Diff and Token modules, as stated by the maintainer.
Comments
Comment #1
markus_petrux commentedIn fact, the MVF module was born here: #530458: Usage of Money CCK with percentage values
I'm pretty busy and I'm not sure when I'll have the time to work on this.
Aside, I would be happy to deprecate Money in favor of MVF.
Comment #2
kenorb commented