Never do money math as anything but pennies I tell you. :-) Three $0.60 transactions...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Dec 2010 18:42:30 +0000 (18:42 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 30 Dec 2010 18:42:30 +0000 (18:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@19086 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkin.js

index a766685..9475803 100644 (file)
@@ -423,7 +423,10 @@ circ.checkin.prototype = {
                         addCSSClass(no_change_label,'click_link');                        
                     }
                     if (document.getElementById('fine_tally')) {
-                        var amount = Number( document.getElementById('fine_tally').getAttribute('amount') ) + Number( bill.balance_owed() );
+                        var amount = util.money.cents_as_dollars(
+                            Number( util.money.dollars_float_to_cents_integer( document.getElementById('fine_tally').getAttribute('amount') ) ) 
+                            + Number( util.money.dollars_float_to_cents_integer( bill.balance_owed() ) )
+                        );
                         document.getElementById('fine_tally').setAttribute('amount',amount);
                         document.getElementById('fine_tally').setAttribute(
                             'value',