소스 검색

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
Liangjun Song 1 년 전
부모
커밋
e91079d493
1개의 변경된 파일과 5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx

+ 5 - 1
services/web/frontend/js/features/group-management/components/add-seats/cost-summary.tsx

@@ -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')} &middot;{' '}
-                    {subscriptionChange.nextInvoice.tax.rate * 100}%
+                    {Math.round(
+                      subscriptionChange.nextInvoice.tax.rate * 100 * factor
+                    ) / factor}
+                    %
                   </span>
                   <span data-testid="price">
                     {formatCurrency(