turns out this wasn't needed
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Jul 2005 08:16:09 +0000 (08:16 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Jul 2005 08:16:09 +0000 (08:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1117 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/util/util.js

index 8ffb1c3..48ad81e 100644 (file)
@@ -64,6 +64,10 @@ function yesno(value) {
        }
 }
 
+function cents_as_dollars( cents ) {
+       return '$' + cents.substr(0,cents.length-2) + '.' + cents.substr(cents.length - 2);
+}
+
 function formatted_date(date,format) {
        // pass in a Date object or epoch seconds
        if (typeof(date) == 'string') {