Skip to content

Commit

Permalink
Fix decimal limit of total to 2
Browse files Browse the repository at this point in the history
Decimal limit is fixed to 2 as earlier at some values the decimal limit were crossing this limit
  • Loading branch information
rahul2240 committed Oct 14, 2017
1 parent 2f8454a commit 3f3cdef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/osem-tickets.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function update_price($this){
$('.total_row').each(function( index ) {
total += parseFloat($(this).text());
});
$('#total_price').text(total);
$('#total_price').text(total.toFixed(2));
}

$( document ).ready(function() {
Expand Down

0 comments on commit 3f3cdef

Please sign in to comment.