mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Merge pull request #23129 from overleaf/ii-flexible-group-licensing-sales-tax-percentage
[web] Fix sales tax percentage in add seats page GitOrigin-RevId: 0cb0ab537fbe190d7291deb5942c244a5b0bd3af
This commit is contained in:
@@ -18,6 +18,7 @@ type CostSummaryProps = {
|
||||
|
||||
function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
|
||||
const { t } = useTranslation()
|
||||
const factor = 100
|
||||
|
||||
return (
|
||||
<Card
|
||||
@@ -79,7 +80,10 @@ function CostSummary({ subscriptionChange, totalLicenses }: CostSummaryProps) {
|
||||
>
|
||||
<span className="me-auto">
|
||||
{t('sales_tax')} ·{' '}
|
||||
{subscriptionChange.nextInvoice.tax.rate * 100}%
|
||||
{Math.round(
|
||||
subscriptionChange.nextInvoice.tax.rate * 100 * factor
|
||||
) / factor}
|
||||
%
|
||||
</span>
|
||||
<span data-testid="price">
|
||||
{formatCurrency(
|
||||
|
||||
Reference in New Issue
Block a user