mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
||||
var value = $this.val();
|
||||
var price = $('#price_' + id).text();
|
||||
$('#total_row_' + id).text(value * price);
|
||||
$('#total_row_' + id).text((value * price).toFixed(2));
|
||||
|
||||
// Calculate total price
|
||||
var total = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue