Fix decimal limit of total to 2

Decimal limit is fixed to 2 as earlier at some values the decimal limit were crossing this limit
This commit is contained in:
rahul 2017-09-25 00:34:53 +05:30
parent 2f8454a837
commit 3f3cdef520

View file

@ -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() {