修改两位小数计算
This commit is contained in:
parent
e140c1fab7
commit
c85d183e63
|
|
@ -250,7 +250,8 @@ const changeRow = async (row,key:string) => {
|
|||
let price = row.price
|
||||
let qty = row.qty
|
||||
let discount = row.discount
|
||||
row.amount = (price*qty) * (1-(discount/100))
|
||||
let amount = (price*qty) * (1-(discount/100))
|
||||
row.amount = amount.toFixed(2);
|
||||
//100*(1-(2/100))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue