From 5e7be6431a4dc522c62b26e1cf2372e32b774ab3 Mon Sep 17 00:00:00 2001 From: Marek Vigas Date: Mon, 23 Oct 2023 18:00:47 +0200 Subject: [PATCH] fix typo --- src/lib/calculation.ts | 8 ++++---- src/pages/vysledky.tsx | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/calculation.ts b/src/lib/calculation.ts index d8629e1d..d6b4c2b3 100644 --- a/src/lib/calculation.ts +++ b/src/lib/calculation.ts @@ -34,8 +34,8 @@ export const CHILD_RATE_FIFTEEN_AND_OLDER_FROM_JULY = 40 const ZIVOTNE_MINIMUM_44_NASOBOK = 9638.25 -export const SPODNA_ZADZBA_PRE_PREDDAVKY = 5000 -export const VRCHNA_ZADZBA_PRE_PREDDAVKY = 16600 +export const SPODNA_SADZBA_PRE_PREDDAVKY = 5000 +export const VRCHNA_SADZBA_PRE_PREDDAVKY = 16600 const POCET_KVARTALOV = 4 const POCET_MESIACOV = 12 @@ -912,9 +912,9 @@ export const donateOnly3Percent = (form: TaxForm): boolean => { } export const countPreddavky = (form: TaxForm): Number => { - if (Number(form.r135_dan_na_uhradu) > VRCHNA_ZADZBA_PRE_PREDDAVKY) { + if (Number(form.r135_dan_na_uhradu) > VRCHNA_SADZBA_PRE_PREDDAVKY) { return Number(round((form.r055.mul(DAN_Z_PRIJMU_SADZBA).div(POCET_MESIACOV)))) - } else if (Number(form.r135_dan_na_uhradu) > SPODNA_ZADZBA_PRE_PREDDAVKY) { + } else if (Number(form.r135_dan_na_uhradu) > SPODNA_SADZBA_PRE_PREDDAVKY) { return Number(round((form.r055.mul(DAN_Z_PRIJMU_SADZBA).div(POCET_KVARTALOV)))) } } diff --git a/src/pages/vysledky.tsx b/src/pages/vysledky.tsx index b31ed49f..3ee021cd 100644 --- a/src/pages/vysledky.tsx +++ b/src/pages/vysledky.tsx @@ -10,8 +10,8 @@ import { buildSummary } from '../lib/calculation' import { countPreddavky } from '../lib/calculation' import { TAX_YEAR, - SPODNA_ZADZBA_PRE_PREDDAVKY, - VRCHNA_ZADZBA_PRE_PREDDAVKY, + SPODNA_SADZBA_PRE_PREDDAVKY, + VRCHNA_SADZBA_PRE_PREDDAVKY, } from '../lib/calculation' @@ -121,7 +121,7 @@ const Vysledky: Page> = ({ }, ] - if (Number(summary.danNaUhradu) > VRCHNA_ZADZBA_PRE_PREDDAVKY && Number(summary.zaplatenePreddavky) == 0) { + if (Number(summary.danNaUhradu) > VRCHNA_SADZBA_PRE_PREDDAVKY && Number(summary.zaplatenePreddavky) == 0) { return ( <> @@ -146,7 +146,7 @@ const Vysledky: Page> = ({ ) - } else if (Number(summary.danNaUhradu) > SPODNA_ZADZBA_PRE_PREDDAVKY && Number(summary.zaplatenePreddavky) == 0) { + } else if (Number(summary.danNaUhradu) > SPODNA_SADZBA_PRE_PREDDAVKY && Number(summary.zaplatenePreddavky) == 0) { return ( <>