From b97a3a6bba8953ee78b75dbc83e20124c352356b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 17 Jun 2014 08:35:21 -0400 Subject: [PATCH] Bug 6427 [Part 29] - Force the amount to pay to display as a two decimal float --- .../prog/en/modules/members/account_payment.tt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/account_payment.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/account_payment.tt index d8c92c8..3866773 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/account_payment.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/account_payment.tt @@ -73,7 +73,7 @@ $( document ).ready(function() { $("input[name='debit_id']:checked" ).each(function(i,n){ sum += parseFloat( $( "#amount_outstanding_" + $(this).val() ).val() ); }); - $('#amount_to_pay').val( sum ); + $('#amount_to_pay').val( sum.toFixed(2) ); }); }); -- 1.7.2.5