Merge pull request #1710 from rahul2240/ajax-round
Fix decimal part limit to 2
This commit is contained in:
commit
7bfb073702
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ function update_price($this){
|
||||||
// Calculate price for row
|
// Calculate price for row
|
||||||
var value = $this.val();
|
var value = $this.val();
|
||||||
var price = $('#price_' + id).text();
|
var price = $('#price_' + id).text();
|
||||||
$('#total_row_' + id).text(value * price);
|
$('#total_row_' + id).text((value * price).toFixed(2));
|
||||||
|
|
||||||
// Calculate total price
|
// Calculate total price
|
||||||
var total = 0;
|
var total = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue