mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #1748 from overleaf/hb-fix-change-plan-vat-display
Use two decimal places for inc-vat change plan prices GitOrigin-RevId: 6dd46c42693345ba0aaca5cfe061bc907a112a68
This commit is contained in:
parent
36035e8ccd
commit
51a4c33e91
1 changed files with 5 additions and 1 deletions
|
@ -73,7 +73,11 @@ define(['base'], function(App) {
|
||||||
if (isNaN(taxAmmount)) {
|
if (isNaN(taxAmmount)) {
|
||||||
taxAmmount = 0
|
taxAmmount = 0
|
||||||
}
|
}
|
||||||
resolve(`${currencySymbol}${totalPriceExTax + taxAmmount}`)
|
let total = totalPriceExTax + taxAmmount
|
||||||
|
if (total % 1 !== 0) {
|
||||||
|
total = total.toFixed(2)
|
||||||
|
}
|
||||||
|
resolve(`${currencySymbol}${total}`)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue