Expressing the total invoice amount in words

Events happening in the community are now at Drupal community events on www.drupal.org.
kemotion's picture

I wonder if it is possible to express the total amount of the bill in letters (eg hundred and thirty-five with 20 / 100 = 135.20)

My English is not very good

Comments

To the best of my knowledge,

aendra's picture

To the best of my knowledge, Storm can't do this out of the box. That said, it'd be trivial to write as a module...

If doing so, try this class:
http://www.phpclasses.org/browse/file/33721.html

More nuanced solution IFF you have PEAR in your hosting environment:
http://pear.php.net/package/Numbers_Words/

Let me know if you want more help than that or don't know how to hook into hook_nodeapi's View operation (Which, I think, is what you'd need to do).

--
ændrew rininsland
news, photos, data, code.
aendrew.com :: @aendrew

Project Management Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: