修改两位小数计算

This commit is contained in:
wwb 2024-12-14 21:10:42 +08:00
parent e140c1fab7
commit c85d183e63
1 changed files with 2 additions and 1 deletions

View File

@ -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))
}
}