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:
Alasdair Smith 2019-05-09 13:53:50 +01:00 committed by sharelatex
parent 36035e8ccd
commit 51a4c33e91

View file

@ -73,7 +73,11 @@ define(['base'], function(App) {
if (isNaN(taxAmmount)) {
taxAmmount = 0
}
resolve(`${currencySymbol}${totalPriceExTax + taxAmmount}`)
let total = totalPriceExTax + taxAmmount
if (total % 1 !== 0) {
total = total.toFixed(2)
}
resolve(`${currencySymbol}${total}`)
})
})
}