mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Fix decimal numbers limit to 2
while calculating the row total, javascript was called and on some quantity, a number with a big decimal part was appearing.In this PR it is fixed Fixes https://github.com/opensuse/osem/issues/1709
This commit is contained in:
parent
9eeb482190
commit
a07df4bdb0
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