mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 13:43:41 +01: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:
committed by
sharelatex
parent
36035e8ccd
commit
51a4c33e91
@@ -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}`)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user