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:
parent
2f8454a837
commit
3f3cdef520
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ function update_price($this){
|
||||||
$('.total_row').each(function( index ) {
|
$('.total_row').each(function( index ) {
|
||||||
total += parseFloat($(this).text());
|
total += parseFloat($(this).text());
|
||||||
});
|
});
|
||||||
$('#total_price').text(total);
|
$('#total_price').text(total.toFixed(2));
|
||||||
}
|
}
|
||||||
|
|
||||||
$( document ).ready(function() {
|
$( document ).ready(function() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue