diff --git a/.github/workflows/qa.yml b/.github/workflows/qa.yml
index 96fc83b4..23bc9b08 100644
--- a/.github/workflows/qa.yml
+++ b/.github/workflows/qa.yml
@@ -45,6 +45,9 @@ jobs:
- name: Lint
run: yarn lint
+ - name: Prettier
+ run: yarn prettier
+
- name: TypeScript
run: yarn check:ts
diff --git a/README.md b/README.md
index 1c99e007..9fea9996 100644
--- a/README.md
+++ b/README.md
@@ -36,6 +36,7 @@ Install dependencies:
```bash
yarn
```
+
Create environment variables:
```bash
cp .env.example .env
diff --git a/__tests__/anonymize.test.ts b/__tests__/anonymize.test.ts
index d20c16ac..05081c6c 100644
--- a/__tests__/anonymize.test.ts
+++ b/__tests__/anonymize.test.ts
@@ -1,62 +1,82 @@
-import { anoymizeChild } from "../src/components/Feedback"
+import { anoymizeChild } from '../src/components/Feedback'
describe('anonymize', () => {
- describe('#annoymizeChild', () => {
- const scenarios = [
- { input: {
- id: 1,
- priezviskoMeno: '',
- rodneCislo: '901006 / 6472',
+ describe('#annoymizeChild', () => {
+ const scenarios = [
+ {
+ input: {
+ id: 1,
+ priezviskoMeno: '',
+ rodneCislo: '901006 / 6472',
- wholeYear: false,
- monthFrom: '0',
- monthTo: '11',
- }, month: 10, year: 1990 },
- { input: {
- id: 1,
- priezviskoMeno: '',
- rodneCislo: '050426 / 9744',
-
- wholeYear: false,
- monthFrom: '0',
- monthTo: '11',
- }, month: 4, year: 2005 },
- { input: {
- id: 1,
- priezviskoMeno: '',
- rodneCislo: '705426 / 0169',
-
- wholeYear: false,
- monthFrom: '0',
- monthTo: '11',
- }, month: 4, year: 1970 },
- { input: {
- id: 1,
- priezviskoMeno: '',
- rodneCislo: '185717 / 4924',
-
- wholeYear: false,
- monthFrom: '0',
- monthTo: '11',
- }, month: 7, year: 2018 },
- { input: {
- id: 1,
- priezviskoMeno: '',
- rodneCislo: '646118 / 6369',
-
- wholeYear: false,
- monthFrom: '0',
- monthTo: '11',
- }, month: 11, year: 1964 },
- ]
+ wholeYear: false,
+ monthFrom: '0',
+ monthTo: '11',
+ },
+ month: 10,
+ year: 1990,
+ },
+ {
+ input: {
+ id: 1,
+ priezviskoMeno: '',
+ rodneCislo: '050426 / 9744',
- scenarios.forEach(({ input, month, year }) => {
- it(`From personalID ${input.rodneCislo} get month ${month} and year ${year}`, () => {
- const anonym = anoymizeChild(input)
- expect(anonym.mesiacNarodenia).toBe(month)
- expect(anonym.rokNarodenia).toBe(year)
- expect(anonym.rodneCislo).toBe("anon")
- })
- })
+ wholeYear: false,
+ monthFrom: '0',
+ monthTo: '11',
+ },
+ month: 4,
+ year: 2005,
+ },
+ {
+ input: {
+ id: 1,
+ priezviskoMeno: '',
+ rodneCislo: '705426 / 0169',
+
+ wholeYear: false,
+ monthFrom: '0',
+ monthTo: '11',
+ },
+ month: 4,
+ year: 1970,
+ },
+ {
+ input: {
+ id: 1,
+ priezviskoMeno: '',
+ rodneCislo: '185717 / 4924',
+
+ wholeYear: false,
+ monthFrom: '0',
+ monthTo: '11',
+ },
+ month: 7,
+ year: 2018,
+ },
+ {
+ input: {
+ id: 1,
+ priezviskoMeno: '',
+ rodneCislo: '646118 / 6369',
+
+ wholeYear: false,
+ monthFrom: '0',
+ monthTo: '11',
+ },
+ month: 11,
+ year: 1964,
+ },
+ ]
+
+ scenarios.forEach(({ input, month, year }) => {
+ it(`From personalID ${input.rodneCislo} get month ${month} and year ${year}`, () => {
+ const anonym = anoymizeChild(input)
+ expect(anonym.mesiacNarodenia).toBe(month)
+ expect(anonym.rokNarodenia).toBe(year)
+ expect(anonym.rodneCislo).toBe('anon')
+ })
})
-})
\ No newline at end of file
+ })
+})
diff --git a/__tests__/calcIntegration.test.ts b/__tests__/calcIntegration.test.ts
index ddc00ec1..1b5e589a 100644
--- a/__tests__/calcIntegration.test.ts
+++ b/__tests__/calcIntegration.test.ts
@@ -13,11 +13,10 @@ const WRITE_FILES = false
const comparable = (xml: string) =>
parseStringPromise(xml, { trim: true, normalize: true, normalizeTags: true })
-
-const testCases = readdirSync('./__tests__/testCases/', {withFileTypes: true})
-.filter(item => !item.isDirectory())
-.map(item => item.name)
-.map(item => item.replace('Input.ts', ''))
+const testCases = readdirSync('./__tests__/testCases/', { withFileTypes: true })
+ .filter((item) => !item.isDirectory())
+ .map((item) => item.name)
+ .map((item) => item.replace('Input.ts', ''))
describe('calcIntergration', () => {
testCases.forEach((testCase) => {
diff --git a/__tests__/calculation.test.ts b/__tests__/calculation.test.ts
index 10ca6214..0924f10f 100644
--- a/__tests__/calculation.test.ts
+++ b/__tests__/calculation.test.ts
@@ -126,10 +126,8 @@ describe('With child (for tax year 2022)', () => {
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
// ) // kazdy mesiac ked vek < 6 rokov
-
// expect(result.r117a).toEqual(monthSums)
// })
-
// test('Child turning 6 in 2022 (february)', () => {
// const result = calculate({
// ...initTaxFormUserInputValues,
@@ -137,7 +135,6 @@ describe('With child (for tax year 2022)', () => {
// children: [childTurning6InFeb],
// t1r10_prijmy: MIN_PRIJEM_NA_DANOVY_BONUS_NA_DIETA.toString(),
// })
-
// const monthSums = sum(
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
// CHILD_RATE_OVER_SIX_UNTIL_JULY,
@@ -145,10 +142,8 @@ describe('With child (for tax year 2022)', () => {
// CHILD_RATE_OVER_SIX_UNTIL_JULY,
// CHILD_RATE_OVER_SIX_UNTIL_JULY,
// )
-
// expect(result.r117a).toEqual(monthSums)
// })
-
// test('Child turning 6 in 2022 (july)', () => {
// const result = calculate({
// ...initTaxFormUserInputValues,
@@ -156,7 +151,6 @@ describe('With child (for tax year 2022)', () => {
// children: [childTurning6InJul],
// t1r10_prijmy: MIN_PRIJEM_NA_DANOVY_BONUS_NA_DIETA.toString(),
// })
-
// const part1 = sum(
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
@@ -166,7 +160,6 @@ describe('With child (for tax year 2022)', () => {
// ) // februar - jul (vek do 6 rokov vratane mesiaca dovrsenia) ale jul uz patri do druhej polovice roka
// expect(result.r117a).toEqual(part1)
// })
-
// test('Child over 6', () => {
// const result = calculate({
// ...initTaxFormUserInputValues,
@@ -174,7 +167,6 @@ describe('With child (for tax year 2022)', () => {
// children: [childOver6],
// t1r10_prijmy: (15_000).toString(),
// })
-
// const monthSums = sum(
// CHILD_RATE_OVER_SIX_UNTIL_JULY,
// CHILD_RATE_OVER_SIX_UNTIL_JULY,
@@ -188,7 +180,6 @@ describe('With child (for tax year 2022)', () => {
// ) // vek nad 6 rokov vratane mesiaca dovrsenia
// expect(result.r117).toEqual(monthSums)
// })
-
// test('More children', () => {
// const result = calculate({
// ...initTaxFormUserInputValues,
@@ -201,7 +192,6 @@ describe('With child (for tax year 2022)', () => {
// ],
// t1r10_prijmy: (25_000).toString(),
// })
-
// // childOver6
// const childOver6Sum = sum(
// CHILD_RATE_OVER_SIX_UNTIL_JULY,
@@ -214,7 +204,6 @@ describe('With child (for tax year 2022)', () => {
// CHILD_RATE_FIFTEEN_AND_YOUNGER_FROM_JULY,
// CHILD_RATE_FIFTEEN_AND_YOUNGER_FROM_JULY,
// )
-
// // childTurning6InFeb
// const childTurning6InFebSum = sum(
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
@@ -227,7 +216,6 @@ describe('With child (for tax year 2022)', () => {
// CHILD_RATE_FIFTEEN_AND_YOUNGER_FROM_JULY,
// CHILD_RATE_FIFTEEN_AND_YOUNGER_FROM_JULY,
// )
-
// // childTurning6InJul
// const childTurning6InJulSum = sum(
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
@@ -240,7 +228,6 @@ describe('With child (for tax year 2022)', () => {
// CHILD_RATE_FIFTEEN_AND_YOUNGER_FROM_JULY,
// CHILD_RATE_FIFTEEN_AND_YOUNGER_FROM_JULY,
// ) // januar - jul (vek do 6 rokov vratane mesiaca dovrsenia)
-
// // childUnder6
// const childUnder6Sum = sum(
// CHILD_RATE_SIX_AND_YOUNGER_UNTIL_JULY,
diff --git a/__tests__/dve-percenta.test.ts b/__tests__/dve-percenta.test.ts
index 88ba3a63..ed22d687 100644
--- a/__tests__/dve-percenta.test.ts
+++ b/__tests__/dve-percenta.test.ts
@@ -14,14 +14,14 @@ describe('dve-percenta', () => {
input: { dve_percenta_podporujem: undefined },
expected: ['dve_percenta_podporujem'],
},
- { input: { dve_percenta_podporujem: "nie" }, expected: [] },
+ { input: { dve_percenta_podporujem: 'nie' }, expected: [] },
{
- input: { dve_percenta_podporujem: "ano-inu" },
+ input: { dve_percenta_podporujem: 'ano-inu' },
expected: ['r142_ico', 'r142_obchMeno'],
},
{
input: {
- dve_percenta_podporujem: "ano-inu",
+ dve_percenta_podporujem: 'ano-inu',
r142_ico: '1',
r142_obchMeno: 'Fake, o.z.',
},
@@ -29,7 +29,7 @@ describe('dve-percenta', () => {
},
{
input: {
- dve_percenta_podporujem: "ano-inu",
+ dve_percenta_podporujem: 'ano-inu',
r142_ico: '12 345 67',
r142_obchMeno: 'Fake, o.z.',
},
@@ -37,7 +37,7 @@ describe('dve-percenta', () => {
},
{
input: {
- dve_percenta_podporujem: "ano-inu",
+ dve_percenta_podporujem: 'ano-inu',
r142_ico: '12 345 678',
r142_obchMeno: 'Fake, o.z.',
},
@@ -45,7 +45,7 @@ describe('dve-percenta', () => {
},
{
input: {
- dve_percenta_podporujem: "ano-inu",
+ dve_percenta_podporujem: 'ano-inu',
r142_ico: '12 345 6',
r142_obchMeno: 'Fake, o.z.',
},
diff --git a/__tests__/hypoteka.test.ts b/__tests__/hypoteka.test.ts
index d825b05c..f0809d3c 100644
--- a/__tests__/hypoteka.test.ts
+++ b/__tests__/hypoteka.test.ts
@@ -23,25 +23,34 @@ describe('hypoteka', () => {
uroky_dalsi_uver_uplatnuje: false,
hypoteka_step: 2,
},
- expected: ['uroky_rok_uzatvorenia', 'uroky_zaciatok_urocenia_den', 'uroky_zaciatok_urocenia_mesiac', 'uroky_zaciatok_urocenia_rok'],
+ expected: [
+ 'uroky_rok_uzatvorenia',
+ 'uroky_zaciatok_urocenia_den',
+ 'uroky_zaciatok_urocenia_mesiac',
+ 'uroky_zaciatok_urocenia_rok',
+ ],
},
{
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
hypoteka_step: 2,
},
- expected: ['uroky_zaciatok_urocenia_den', 'uroky_zaciatok_urocenia_mesiac', 'uroky_zaciatok_urocenia_rok'],
+ expected: [
+ 'uroky_zaciatok_urocenia_den',
+ 'uroky_zaciatok_urocenia_mesiac',
+ 'uroky_zaciatok_urocenia_rok',
+ ],
},
{
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
hypoteka_step: 2,
},
expected: [],
@@ -50,10 +59,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
hypoteka_step: 3,
},
expected: ['uroky_dalsi_dlznik'],
@@ -62,10 +71,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
hypoteka_step: 3,
uroky_dalsi_dlznik: true,
},
@@ -75,10 +84,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
hypoteka_step: 3,
uroky_dalsi_dlznik: false,
},
@@ -88,10 +97,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
hypoteka_step: 4,
},
expected: ['uroky_splnam_vek_kriteria'],
@@ -108,10 +117,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
uroky_splnam_vek_kriteria: true,
hypoteka_step: 5,
},
@@ -121,10 +130,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
uroky_splnam_vek_kriteria: true,
hypoteka_step: 5,
uroky_splnam_prijem: true,
@@ -135,10 +144,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
hypoteka_step: 6,
@@ -150,10 +159,10 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
hypoteka_step: 6,
@@ -173,17 +182,17 @@ describe('hypoteka', () => {
input: {
r035_uplatnuje_uroky: true,
uroky_dalsi_uver_uplatnuje: false,
- uroky_rok_uzatvorenia: TAX_YEAR-1,
+ uroky_rok_uzatvorenia: TAX_YEAR - 1,
uroky_zaciatok_urocenia_den: '1',
uroky_zaciatok_urocenia_mesiac: '1',
- uroky_zaciatok_urocenia_rok: TAX_YEAR-1,
+ uroky_zaciatok_urocenia_rok: TAX_YEAR - 1,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
hypoteka_step: 6,
r035_zaplatene_uroky: '123,45a',
},
expected: ['r035_zaplatene_uroky'],
- }
+ },
])
})
})
diff --git a/__tests__/partner.test.ts b/__tests__/partner.test.ts
index 9ed753aa..879e090a 100644
--- a/__tests__/partner.test.ts
+++ b/__tests__/partner.test.ts
@@ -73,8 +73,7 @@ describe('partner', () => {
partner_podmienky: { 1: true },
partner_step: 4,
},
- expected: [
- ],
+ expected: [],
},
{
input: {
diff --git a/__tests__/routes.test.ts b/__tests__/routes.test.ts
index e5837463..2898ab84 100644
--- a/__tests__/routes.test.ts
+++ b/__tests__/routes.test.ts
@@ -29,9 +29,7 @@ describe('routes', () => {
})
it('should return routes with children, without iban', () => {
- expect(
- getOrderedRoutes({} as TaxForm),
- ).toStrictEqual([
+ expect(getOrderedRoutes({} as TaxForm)).toStrictEqual([
homeRoute,
'/prijmy-a-vydavky',
'/zamestnanie',
@@ -98,7 +96,6 @@ describe('routes', () => {
describe('#getRoutes', () => {
describe('nextRoute', () => {
describe('for route /partner', () => {
-
it('should be correct when eligible for children bonus', () => {
const { nextRoute } = getRoutes('/partner', {} as TaxForm)
expect(nextRoute()).toBe('/deti')
diff --git a/__tests__/testCases/bugReport10Input.ts b/__tests__/testCases/bugReport10Input.ts
index b777b289..fd2daa6b 100644
--- a/__tests__/testCases/bugReport10Input.ts
+++ b/__tests__/testCases/bugReport10Input.ts
@@ -1,60 +1,60 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport10Input: E2eTestUserInput = {
- t1r10_prijmy: "9678.43",
- priloha3_r11_socialne: "193.57",
- priloha3_r13_zdravotne: "1742.12",
- zaplatenePreddavky: "36750.48",
+ t1r10_prijmy: '9678.43',
+ priloha3_r11_socialne: '193.57',
+ priloha3_r13_zdravotne: '1742.12',
+ zaplatenePreddavky: '36750.48',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0461156762",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0461156762',
wholeYear: true,
- monthFrom: "9",
- monthTo: "5"
+ monthFrom: '9',
+ monthTo: '5',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0410155801",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0410155801',
wholeYear: true,
- monthFrom: "10",
- monthTo: "4"
- }
+ monthFrom: '10',
+ monthTo: '4',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- r031_priezvisko_a_meno: "Partner Fake",
- r031_rodne_cislo: "9609226286",
- r032_partner_pocet_mesiacov: "6",
- r032_partner_vlastne_prijmy: "1678.04",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ r031_priezvisko_a_meno: 'Partner Fake',
+ r031_rodne_cislo: '9609226286',
+ r032_partner_pocet_mesiacov: '6',
+ r032_partner_vlastne_prijmy: '1678.04',
r032_uplatnujem_na_partnera: true,
partner_spolocna_domacnost: true,
partner_podmienky: {
- "1": true
+ '1': true,
},
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2018",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2018",
+ uroky_rok_uzatvorenia: '2018',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2018',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "6540.37",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '6540.37',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "39.87"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '39.87',
+}
diff --git a/__tests__/testCases/bugReport11Input.ts b/__tests__/testCases/bugReport11Input.ts
index c2be619c..0e83e25a 100644
--- a/__tests__/testCases/bugReport11Input.ts
+++ b/__tests__/testCases/bugReport11Input.ts
@@ -1,63 +1,63 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport11Input: E2eTestUserInput = {
- t1r10_prijmy: "97715.04",
- priloha3_r11_socialne: "37131.71",
- priloha3_r13_zdravotne: "7817.20",
- zaplatenePreddavky: "84033.55",
+ t1r10_prijmy: '97715.04',
+ priloha3_r11_socialne: '37131.71',
+ priloha3_r13_zdravotne: '7817.20',
+ zaplatenePreddavky: '84033.55',
employed: true,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "1107151672",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '1107151672',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "1955157644",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '1955157644',
wholeYear: true,
- monthFrom: "6",
- monthTo: "10"
- }
+ monthFrom: '6',
+ monthTo: '10',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- uhrnPrijmovOdVsetkychZamestnavatelov: "12460.28",
- uhrnPovinnehoPoistnehoNaSocialnePoistenie: "54869.90",
- uhrnPovinnehoPoistnehoNaZdravotnePoistenie: "33167.23",
- udajeODanovomBonuseNaDieta: "24930.41",
- uhrnPreddavkovNaDan: "26992.99",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ uhrnPrijmovOdVsetkychZamestnavatelov: '12460.28',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '54869.90',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '33167.23',
+ udajeODanovomBonuseNaDieta: '24930.41',
+ uhrnPreddavkovNaDan: '26992.99',
rent: true,
- vyskaPrijmovZPrenajmu: "5820.41",
- vydavkyZPrenajmu: "2075.59",
+ vyskaPrijmovZPrenajmu: '5820.41',
+ vydavkyZPrenajmu: '2075.59',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: "91.15",
+ vyskaOslobodenia: '91.15',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2020",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2020",
+ uroky_rok_uzatvorenia: '2020',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2020',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "6899.11",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '6899.11',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "45.99",
+ zaplatene_prispevky_na_dochodok: '45.99',
expectNgoDonationValue: true,
- percent2: '54,90'
-}
\ No newline at end of file
+ percent2: '54,90',
+}
diff --git a/__tests__/testCases/bugReport12Input.ts b/__tests__/testCases/bugReport12Input.ts
index f0053a52..e7fe9d77 100644
--- a/__tests__/testCases/bugReport12Input.ts
+++ b/__tests__/testCases/bugReport12Input.ts
@@ -1,63 +1,63 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport12Input: E2eTestUserInput = {
- t1r10_prijmy: "98321.04",
- priloha3_r11_socialne: "17697.79",
- priloha3_r13_zdravotne: "15731.37",
- zaplatenePreddavky: "53116.29",
+ t1r10_prijmy: '98321.04',
+ priloha3_r11_socialne: '17697.79',
+ priloha3_r13_zdravotne: '15731.37',
+ zaplatenePreddavky: '53116.29',
employed: true,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "1602153850",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '1602153850',
wholeYear: true,
- monthFrom: "10",
- monthTo: "1"
+ monthFrom: '10',
+ monthTo: '1',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0701151693",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0701151693',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
- }
+ monthFrom: '0',
+ monthTo: '11',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- uhrnPrijmovOdVsetkychZamestnavatelov: "23194.02",
- uhrnPovinnehoPoistnehoNaSocialnePoistenie: "60689.81",
- uhrnPovinnehoPoistnehoNaZdravotnePoistenie: "6372.88",
- udajeODanovomBonuseNaDieta: "56559.84",
- uhrnPreddavkovNaDan: "29720.30",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ uhrnPrijmovOdVsetkychZamestnavatelov: '23194.02',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '60689.81',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '6372.88',
+ udajeODanovomBonuseNaDieta: '56559.84',
+ uhrnPreddavkovNaDan: '29720.30',
rent: true,
- vyskaPrijmovZPrenajmu: "4498.33",
- vydavkyZPrenajmu: "4970.71",
+ vyskaPrijmovZPrenajmu: '4498.33',
+ vydavkyZPrenajmu: '4970.71',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: "112.72",
+ vyskaOslobodenia: '112.72',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2020",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2020",
+ uroky_rok_uzatvorenia: '2020',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2020',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "697.35",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '697.35',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "29.29",
+ zaplatene_prispevky_na_dochodok: '29.29',
expectNgoDonationValue: true,
- percent2: "100,40"
-}
\ No newline at end of file
+ percent2: '100,40',
+}
diff --git a/__tests__/testCases/bugReport13Input.ts b/__tests__/testCases/bugReport13Input.ts
index 6d1a96bc..0950ccad 100644
--- a/__tests__/testCases/bugReport13Input.ts
+++ b/__tests__/testCases/bugReport13Input.ts
@@ -1,74 +1,73 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
-export const bugReport13Input: E2eTestUserInput =
-{
- t1r10_prijmy: "75532.62",
- priloha3_r11_socialne: "21904.46",
- priloha3_r13_zdravotne: "29457.72",
- zaplatenePreddavky: "71417.47",
+export const bugReport13Input: E2eTestUserInput = {
+ t1r10_prijmy: '75532.62',
+ priloha3_r11_socialne: '21904.46',
+ priloha3_r13_zdravotne: '29457.72',
+ zaplatenePreddavky: '71417.47',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "9804156978",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '9804156978',
wholeYear: false,
- monthFrom: "1",
- monthTo: "3"
+ monthFrom: '1',
+ monthTo: '3',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "1858155101",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '1858155101',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "1601154742",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '1601154742',
wholeYear: true,
- monthFrom: "4",
- monthTo: "1"
+ monthFrom: '4',
+ monthTo: '1',
},
{
id: 3,
- priezviskoMeno: "Fake Child 3",
- rodneCislo: "1758159436",
+ priezviskoMeno: 'Fake Child 3',
+ rodneCislo: '1758159436',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 4,
- priezviskoMeno: "Fake Child 4",
- rodneCislo: "0253153186",
+ priezviskoMeno: 'Fake Child 4',
+ rodneCislo: '0253153186',
wholeYear: true,
- monthFrom: "0",
- monthTo: "6"
- }
+ monthFrom: '0',
+ monthTo: '6',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- r031_priezvisko_a_meno: "Partner Fake",
- r031_rodne_cislo: "9609226286",
- r032_partner_pocet_mesiacov: "6",
- r032_partner_vlastne_prijmy: "4453.82",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ r031_priezvisko_a_meno: 'Partner Fake',
+ r031_rodne_cislo: '9609226286',
+ r032_partner_pocet_mesiacov: '6',
+ r032_partner_vlastne_prijmy: '4453.82',
r032_uplatnujem_na_partnera: true,
partner_spolocna_domacnost: true,
partner_podmienky: {
- 1: true
+ 1: true,
},
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "15.30"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '15.30',
+}
diff --git a/__tests__/testCases/bugReport14Input.ts b/__tests__/testCases/bugReport14Input.ts
index 38af4f37..e952f02b 100644
--- a/__tests__/testCases/bugReport14Input.ts
+++ b/__tests__/testCases/bugReport14Input.ts
@@ -1,67 +1,67 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport14Input: E2eTestUserInput = {
- t1r10_prijmy: "31398.49",
- priloha3_r11_socialne: "4081.80",
- priloha3_r13_zdravotne: "313.98",
- zaplatenePreddavky: "65119.42",
+ t1r10_prijmy: '31398.49',
+ priloha3_r11_socialne: '4081.80',
+ priloha3_r13_zdravotne: '313.98',
+ zaplatenePreddavky: '65119.42',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0155157519",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0155157519',
wholeYear: true,
- monthFrom: "1",
- monthTo: "11"
+ monthFrom: '1',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0755156941",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0755156941',
wholeYear: true,
- monthFrom: "3",
- monthTo: "2"
+ monthFrom: '3',
+ monthTo: '2',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "1960152579",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '1960152579',
wholeYear: true,
- monthFrom: "8",
- monthTo: "9"
+ monthFrom: '8',
+ monthTo: '9',
},
{
id: 3,
- priezviskoMeno: "Fake Child 3",
- rodneCislo: "0161156259",
+ priezviskoMeno: 'Fake Child 3',
+ rodneCislo: '0161156259',
wholeYear: true,
- monthFrom: "11",
- monthTo: "3"
- }
+ monthFrom: '11',
+ monthTo: '3',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2019",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2019",
+ uroky_rok_uzatvorenia: '2019',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2019',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "9449.74",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '9449.74',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "144.30"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '144.30',
+}
diff --git a/__tests__/testCases/bugReport15Input.ts b/__tests__/testCases/bugReport15Input.ts
index c7e055d8..4ac28906 100644
--- a/__tests__/testCases/bugReport15Input.ts
+++ b/__tests__/testCases/bugReport15Input.ts
@@ -1,88 +1,88 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport15Input: E2eTestUserInput = {
- t1r10_prijmy: "38621.12",
- priloha3_r11_socialne: "1544.84",
- priloha3_r13_zdravotne: "6951.80",
- zaplatenePreddavky: "6128.50",
+ t1r10_prijmy: '38621.12',
+ priloha3_r11_socialne: '1544.84',
+ priloha3_r13_zdravotne: '6951.80',
+ zaplatenePreddavky: '6128.50',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0454153260",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0454153260',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0854157348",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0854157348',
wholeYear: false,
- monthFrom: "8",
- monthTo: "9"
+ monthFrom: '8',
+ monthTo: '9',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "0410152787",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '0410152787',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 3,
- priezviskoMeno: "Fake Child 3",
- rodneCislo: "2257150192",
+ priezviskoMeno: 'Fake Child 3',
+ rodneCislo: '2257150192',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 4,
- priezviskoMeno: "Fake Child 4",
- rodneCislo: "0305157017",
+ priezviskoMeno: 'Fake Child 4',
+ rodneCislo: '0305157017',
wholeYear: false,
- monthFrom: "2",
- monthTo: "6"
+ monthFrom: '2',
+ monthTo: '6',
},
{
id: 5,
- priezviskoMeno: "Fake Child 5",
- rodneCislo: "1508152074",
+ priezviskoMeno: 'Fake Child 5',
+ rodneCislo: '1508152074',
wholeYear: false,
- monthFrom: "5",
- monthTo: "7"
- }
+ monthFrom: '5',
+ monthTo: '7',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
rent: true,
- vyskaPrijmovZPrenajmu: "8111.00",
- vydavkyZPrenajmu: "3320.64",
+ vyskaPrijmovZPrenajmu: '8111.00',
+ vydavkyZPrenajmu: '3320.64',
prenajomPrijemZPrilezitostnejCinnosti: false,
- vyskaOslobodenia: "500",
+ vyskaOslobodenia: '500',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2021",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2021",
+ uroky_rok_uzatvorenia: '2021',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2021',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "1965.27",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '1965.27',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "2.26"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '2.26',
+}
diff --git a/__tests__/testCases/bugReport16Input.ts b/__tests__/testCases/bugReport16Input.ts
index 90cd91b8..fdc31b79 100644
--- a/__tests__/testCases/bugReport16Input.ts
+++ b/__tests__/testCases/bugReport16Input.ts
@@ -1,64 +1,64 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport16Input: E2eTestUserInput = {
- t1r10_prijmy: "30668.64",
- priloha3_r11_socialne: "1533.43",
- priloha3_r13_zdravotne: "613.37",
- zaplatenePreddavky: "99798.51",
+ t1r10_prijmy: '30668.64',
+ priloha3_r11_socialne: '1533.43',
+ priloha3_r13_zdravotne: '613.37',
+ zaplatenePreddavky: '99798.51',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0957154737",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0957154737',
wholeYear: false,
- monthFrom: "7",
- monthTo: "10"
+ monthFrom: '7',
+ monthTo: '10',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0956156982",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0956156982',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "0108151868",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '0108151868',
wholeYear: false,
- monthFrom: "6",
- monthTo: "7"
- }
+ monthFrom: '6',
+ monthTo: '7',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
rent: true,
- vyskaPrijmovZPrenajmu: "4794.78",
- vydavkyZPrenajmu: "8596.86",
+ vyskaPrijmovZPrenajmu: '4794.78',
+ vydavkyZPrenajmu: '8596.86',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: "460.59",
+ vyskaOslobodenia: '460.59',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2019",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2019",
+ uroky_rok_uzatvorenia: '2019',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2019',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "2866.75",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '2866.75',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "99.90"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '99.90',
+}
diff --git a/__tests__/testCases/bugReport17Input.ts b/__tests__/testCases/bugReport17Input.ts
index 272a21c0..5c028aa0 100644
--- a/__tests__/testCases/bugReport17Input.ts
+++ b/__tests__/testCases/bugReport17Input.ts
@@ -1,76 +1,76 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport17Input: E2eTestUserInput = {
- t1r10_prijmy: "13062.35",
- priloha3_r11_socialne: "3004.34",
- priloha3_r13_zdravotne: "3788.08",
- zaplatenePreddavky: "65140.39",
+ t1r10_prijmy: '13062.35',
+ priloha3_r11_socialne: '3004.34',
+ priloha3_r13_zdravotne: '3788.08',
+ zaplatenePreddavky: '65140.39',
employed: true,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0953152046",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0953152046',
wholeYear: false,
- monthFrom: "4",
- monthTo: "7"
+ monthFrom: '4',
+ monthTo: '7',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0502150297",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0502150297',
wholeYear: false,
- monthFrom: "1",
- monthTo: "7"
+ monthFrom: '1',
+ monthTo: '7',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "1807152831",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '1807152831',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 3,
- priezviskoMeno: "Fake Child 3",
- rodneCislo: "9903158639",
+ priezviskoMeno: 'Fake Child 3',
+ rodneCislo: '9903158639',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 4,
- priezviskoMeno: "Fake Child 4",
- rodneCislo: "0655154005",
+ priezviskoMeno: 'Fake Child 4',
+ rodneCislo: '0655154005',
wholeYear: false,
- monthFrom: "4",
- monthTo: "6"
- }
+ monthFrom: '4',
+ monthTo: '6',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- uhrnPrijmovOdVsetkychZamestnavatelov: "27145.84",
- uhrnPovinnehoPoistnehoNaSocialnePoistenie: "72375.06",
- uhrnPovinnehoPoistnehoNaZdravotnePoistenie: "23608.71",
- udajeODanovomBonuseNaDieta: "89728.56",
- uhrnPreddavkovNaDan: "63727.89",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ uhrnPrijmovOdVsetkychZamestnavatelov: '27145.84',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '72375.06',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '23608.71',
+ udajeODanovomBonuseNaDieta: '89728.56',
+ uhrnPreddavkovNaDan: '63727.89',
partner_bonus_na_deti: true,
- r034_priezvisko_a_meno: "Beth Smith",
- r034_rodne_cislo: "975917/1565",
- partner_bonus_na_deti_od: "0",
- partner_bonus_na_deti_do: "11",
- partner_bonus_na_deti_typ_prijmu: "1",
- r034a: "6037.97",
+ r034_priezvisko_a_meno: 'Beth Smith',
+ r034_rodne_cislo: '975917/1565',
+ partner_bonus_na_deti_od: '0',
+ partner_bonus_na_deti_do: '11',
+ partner_bonus_na_deti_typ_prijmu: '1',
+ r034a: '6037.97',
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "66.72"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '66.72',
+}
diff --git a/__tests__/testCases/bugReport18Input.ts b/__tests__/testCases/bugReport18Input.ts
index fcc8bc35..5cf30aa4 100644
--- a/__tests__/testCases/bugReport18Input.ts
+++ b/__tests__/testCases/bugReport18Input.ts
@@ -1,69 +1,69 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport18Input: E2eTestUserInput = {
- t1r10_prijmy: "23253.01",
- priloha3_r11_socialne: "8836.14",
- priloha3_r13_zdravotne: "465.06",
- zaplatenePreddavky: "3738.14",
+ t1r10_prijmy: '23253.01',
+ priloha3_r11_socialne: '8836.14',
+ priloha3_r13_zdravotne: '465.06',
+ zaplatenePreddavky: '3738.14',
employed: true,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "1059154800",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '1059154800',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "1404153432",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '1404153432',
wholeYear: false,
- monthFrom: "2",
- monthTo: "10"
+ monthFrom: '2',
+ monthTo: '10',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "0359153773",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '0359153773',
wholeYear: false,
- monthFrom: "5",
- monthTo: "10"
- }
+ monthFrom: '5',
+ monthTo: '10',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- uhrnPrijmovOdVsetkychZamestnavatelov: "76729.75",
- uhrnPovinnehoPoistnehoNaSocialnePoistenie: "16066.56",
- uhrnPovinnehoPoistnehoNaZdravotnePoistenie: "84892.67",
- udajeODanovomBonuseNaDieta: "5295.12",
- uhrnPreddavkovNaDan: "14529.67",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ uhrnPrijmovOdVsetkychZamestnavatelov: '76729.75',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '16066.56',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '84892.67',
+ udajeODanovomBonuseNaDieta: '5295.12',
+ uhrnPreddavkovNaDan: '14529.67',
rent: true,
- vyskaPrijmovZPrenajmu: "1594.31",
- vydavkyZPrenajmu: "517.05",
+ vyskaPrijmovZPrenajmu: '1594.31',
+ vydavkyZPrenajmu: '517.05',
prenajomPrijemZPrilezitostnejCinnosti: false,
- vyskaOslobodenia: "500",
+ vyskaOslobodenia: '500',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2021",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2021",
+ uroky_rok_uzatvorenia: '2021',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2021',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "1069.84",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '1069.84',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "41.36"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '41.36',
+}
diff --git a/__tests__/testCases/bugReport19Input.ts b/__tests__/testCases/bugReport19Input.ts
index bba22d47..2ac6865b 100644
--- a/__tests__/testCases/bugReport19Input.ts
+++ b/__tests__/testCases/bugReport19Input.ts
@@ -1,100 +1,100 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport19Input: E2eTestUserInput = {
- t1r10_prijmy: "19781.27",
- priloha3_r11_socialne: "1186.88",
- priloha3_r13_zdravotne: "3165.00",
- zaplatenePreddavky: "89593.31",
+ t1r10_prijmy: '19781.27',
+ priloha3_r11_socialne: '1186.88',
+ priloha3_r13_zdravotne: '3165.00',
+ zaplatenePreddavky: '89593.31',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "2258156373",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '2258156373',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0252159853",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0252159853',
wholeYear: false,
- monthFrom: "6",
- monthTo: "6"
+ monthFrom: '6',
+ monthTo: '6',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "0455159903",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '0455159903',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 3,
- priezviskoMeno: "Fake Child 3",
- rodneCislo: "0752150256",
+ priezviskoMeno: 'Fake Child 3',
+ rodneCislo: '0752150256',
wholeYear: false,
- monthFrom: "11",
- monthTo: "11"
+ monthFrom: '11',
+ monthTo: '11',
},
{
id: 4,
- priezviskoMeno: "Fake Child 4",
- rodneCislo: "0106150924",
+ priezviskoMeno: 'Fake Child 4',
+ rodneCislo: '0106150924',
wholeYear: false,
- monthFrom: "4",
- monthTo: "9"
+ monthFrom: '4',
+ monthTo: '9',
},
{
id: 5,
- priezviskoMeno: "Fake Child 5",
- rodneCislo: "1108154014",
+ priezviskoMeno: 'Fake Child 5',
+ rodneCislo: '1108154014',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 6,
- priezviskoMeno: "Fake Child 6",
- rodneCislo: "0708151191",
+ priezviskoMeno: 'Fake Child 6',
+ rodneCislo: '0708151191',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
- }
+ monthFrom: '0',
+ monthTo: '11',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- r031_priezvisko_a_meno: "Partner Fake",
- r031_rodne_cislo: "9609226286",
- r032_partner_pocet_mesiacov: "2",
- r032_partner_vlastne_prijmy: "3715.49",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ r031_priezvisko_a_meno: 'Partner Fake',
+ r031_rodne_cislo: '9609226286',
+ r032_partner_pocet_mesiacov: '2',
+ r032_partner_vlastne_prijmy: '3715.49',
r032_uplatnujem_na_partnera: true,
partner_spolocna_domacnost: true,
partner_podmienky: {
- 1: true
+ 1: true,
},
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2021",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2021",
+ uroky_rok_uzatvorenia: '2021',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2021',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "4949.12",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '4949.12',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "173.02"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '173.02',
+}
diff --git a/__tests__/testCases/bugReport20Input.ts b/__tests__/testCases/bugReport20Input.ts
index 55f6b552..c87c013c 100644
--- a/__tests__/testCases/bugReport20Input.ts
+++ b/__tests__/testCases/bugReport20Input.ts
@@ -1,38 +1,38 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport20Input: E2eTestUserInput = {
- t1r10_prijmy: "13517.20",
- priloha3_r11_socialne: "0",
- priloha3_r13_zdravotne: "0",
- zaplatenePreddavky: "0",
+ t1r10_prijmy: '13517.20',
+ priloha3_r11_socialne: '0',
+ priloha3_r13_zdravotne: '0',
+ zaplatenePreddavky: '0',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "2258156373",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '2258156373',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0252159853",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0252159853',
wholeYear: false,
- monthFrom: "0",
- monthTo: "6"
- }
+ monthFrom: '0',
+ monthTo: '6',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020"
-}
\ No newline at end of file
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+}
diff --git a/__tests__/testCases/bugReport21Input.ts b/__tests__/testCases/bugReport21Input.ts
index 5bcc3792..a206d52a 100644
--- a/__tests__/testCases/bugReport21Input.ts
+++ b/__tests__/testCases/bugReport21Input.ts
@@ -1,38 +1,38 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport21Input: E2eTestUserInput = {
- t1r10_prijmy: "14395.50",
- priloha3_r11_socialne: "151.31",
- priloha3_r13_zdravotne: "200",
- zaplatenePreddavky: "0",
+ t1r10_prijmy: '14395.50',
+ priloha3_r11_socialne: '151.31',
+ priloha3_r13_zdravotne: '200',
+ zaplatenePreddavky: '0',
employed: false,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "2258156373",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '2258156373',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "0252159853",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '0252159853',
wholeYear: false,
- monthFrom: "0",
- monthTo: "6"
- }
+ monthFrom: '0',
+ monthTo: '6',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020"
-}
\ No newline at end of file
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+}
diff --git a/__tests__/testCases/bugReport22Input.ts b/__tests__/testCases/bugReport22Input.ts
index 15263c4e..1f0d9590 100644
--- a/__tests__/testCases/bugReport22Input.ts
+++ b/__tests__/testCases/bugReport22Input.ts
@@ -1,97 +1,97 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport22Input: E2eTestUserInput = {
- t1r10_prijmy: "92715.60",
- priloha3_r11_socialne: "5562.94",
- priloha3_r13_zdravotne: "18543.12",
- zaplatenePreddavky: "5764.27",
+ t1r10_prijmy: '92715.60',
+ priloha3_r11_socialne: '5562.94',
+ priloha3_r13_zdravotne: '18543.12',
+ zaplatenePreddavky: '5764.27',
employed: true,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0060159913",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0060159913',
wholeYear: false,
- monthFrom: "3",
- monthTo: "7"
+ monthFrom: '3',
+ monthTo: '7',
},
{
id: 1,
- priezviskoMeno: "Fake Child 1",
- rodneCislo: "9956153405",
+ priezviskoMeno: 'Fake Child 1',
+ rodneCislo: '9956153405',
wholeYear: false,
- monthFrom: "0",
- monthTo: "7"
+ monthFrom: '0',
+ monthTo: '7',
},
{
id: 2,
- priezviskoMeno: "Fake Child 2",
- rodneCislo: "2055159238",
+ priezviskoMeno: 'Fake Child 2',
+ rodneCislo: '2055159238',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
+ monthFrom: '0',
+ monthTo: '11',
},
{
id: 3,
- priezviskoMeno: "Fake Child 3",
- rodneCislo: "1660157169",
+ priezviskoMeno: 'Fake Child 3',
+ rodneCislo: '1660157169',
wholeYear: false,
- monthFrom: "4",
- monthTo: "11"
+ monthFrom: '4',
+ monthTo: '11',
},
{
id: 4,
- priezviskoMeno: "Fake Child 4",
- rodneCislo: "1860157805",
+ priezviskoMeno: 'Fake Child 4',
+ rodneCislo: '1860157805',
wholeYear: true,
- monthFrom: "0",
- monthTo: "11"
- }
+ monthFrom: '0',
+ monthTo: '11',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- uhrnPrijmovOdVsetkychZamestnavatelov: "96336.64",
- uhrnPovinnehoPoistnehoNaSocialnePoistenie: "13134.97",
- uhrnPovinnehoPoistnehoNaZdravotnePoistenie: "76737.20",
- udajeODanovomBonuseNaDieta: "31652.09",
- uhrnPreddavkovNaDan: "12122.53",
- r034a: "14990.61",
- r031_priezvisko_a_meno: "Partner Fake",
- r031_rodne_cislo: "9609226286",
- r032_partner_pocet_mesiacov: "1",
- r032_partner_vlastne_prijmy: "959.39",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ uhrnPrijmovOdVsetkychZamestnavatelov: '96336.64',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '13134.97',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '76737.20',
+ udajeODanovomBonuseNaDieta: '31652.09',
+ uhrnPreddavkovNaDan: '12122.53',
+ r034a: '14990.61',
+ r031_priezvisko_a_meno: 'Partner Fake',
+ r031_rodne_cislo: '9609226286',
+ r032_partner_pocet_mesiacov: '1',
+ r032_partner_vlastne_prijmy: '959.39',
r032_uplatnujem_na_partnera: true,
partner_spolocna_domacnost: true,
partner_podmienky: {
- 1: true
+ 1: true,
},
rent: true,
- vyskaPrijmovZPrenajmu: "2143.43",
- vydavkyZPrenajmu: "860.33",
+ vyskaPrijmovZPrenajmu: '2143.43',
+ vydavkyZPrenajmu: '860.33',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: "55.54",
+ vyskaOslobodenia: '55.54',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2018",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "8",
- uroky_zaciatok_urocenia_rok: "2018",
+ uroky_rok_uzatvorenia: '2018',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '8',
+ uroky_zaciatok_urocenia_rok: '2018',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "7",
- r035_zaplatene_uroky: "4328.81",
+ uroky_pocet_dlznikov: '7',
+ r035_zaplatene_uroky: '4328.81',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "13.78",
+ zaplatene_prispevky_na_dochodok: '13.78',
expectNgoDonationValue: true,
- percent2: '115,27'
-}
\ No newline at end of file
+ percent2: '115,27',
+}
diff --git a/__tests__/testCases/bugReport23Input.ts b/__tests__/testCases/bugReport23Input.ts
index c72e7754..3e096a6d 100644
--- a/__tests__/testCases/bugReport23Input.ts
+++ b/__tests__/testCases/bugReport23Input.ts
@@ -1,69 +1,69 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport23Input: E2eTestUserInput = {
- t1r10_prijmy: "14029.01",
- priloha3_r11_socialne: "1262.61",
- priloha3_r13_zdravotne: "4348.99",
- zaplatenePreddavky: "72834.19",
+ t1r10_prijmy: '14029.01',
+ priloha3_r11_socialne: '1262.61',
+ priloha3_r13_zdravotne: '4348.99',
+ zaplatenePreddavky: '72834.19',
employed: true,
hasChildren: true,
children: [
{
id: 0,
- priezviskoMeno: "Fake Child 0",
- rodneCislo: "0209151899",
+ priezviskoMeno: 'Fake Child 0',
+ rodneCislo: '0209151899',
wholeYear: false,
- monthFrom: "4",
- monthTo: "9"
- }
+ monthFrom: '4',
+ monthTo: '9',
+ },
],
- r005_meno: "Fake",
- r004_priezvisko: "Name",
- r001_dic: "233123123",
- r003_nace: "62010 - Počítačové programovanie",
- r007_ulica: "Mierova",
- r008_cislo: "4",
- r009_psc: "82105",
- r010_obec: "Bratislava 3",
- r011_stat: "Slovensko",
- datum: "22.02.2020",
- uhrnPrijmovOdVsetkychZamestnavatelov: "70326.93",
- uhrnPovinnehoPoistnehoNaSocialnePoistenie: "68161.90",
- uhrnPovinnehoPoistnehoNaZdravotnePoistenie: "8761.50",
- udajeODanovomBonuseNaDieta: "25844.07",
- uhrnPreddavkovNaDan: "63099.34",
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ datum: '22.02.2020',
+ uhrnPrijmovOdVsetkychZamestnavatelov: '70326.93',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '68161.90',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '8761.50',
+ udajeODanovomBonuseNaDieta: '25844.07',
+ uhrnPreddavkovNaDan: '63099.34',
partner_bonus_na_deti: true,
- r034_priezvisko_a_meno: "Beth Smith",
- r034_rodne_cislo: "975917/1565",
- partner_bonus_na_deti_od: "4",
- partner_bonus_na_deti_do: "9",
- partner_bonus_na_deti_typ_prijmu: "1",
- r034a: "4151.46",
- r031_priezvisko_a_meno: "Partner Fake",
- r031_rodne_cislo: "9609226286",
- r032_partner_pocet_mesiacov: "2",
- r032_partner_vlastne_prijmy: "3153.71",
+ r034_priezvisko_a_meno: 'Beth Smith',
+ r034_rodne_cislo: '975917/1565',
+ partner_bonus_na_deti_od: '4',
+ partner_bonus_na_deti_do: '9',
+ partner_bonus_na_deti_typ_prijmu: '1',
+ r034a: '4151.46',
+ r031_priezvisko_a_meno: 'Partner Fake',
+ r031_rodne_cislo: '9609226286',
+ r032_partner_pocet_mesiacov: '2',
+ r032_partner_vlastne_prijmy: '3153.71',
r032_uplatnujem_na_partnera: true,
partner_spolocna_domacnost: true,
partner_podmienky: {
- 1: true
+ 1: true,
},
rent: true,
- vyskaPrijmovZPrenajmu: "417.11",
- vydavkyZPrenajmu: "8426.61",
+ vyskaPrijmovZPrenajmu: '417.11',
+ vydavkyZPrenajmu: '8426.61',
prenajomPrijemZPrilezitostnejCinnosti: false,
- vyskaOslobodenia: "500",
+ vyskaOslobodenia: '500',
r035_uplatnuje_uroky: true,
- uroky_rok_uzatvorenia: "2020",
- uroky_zaciatok_urocenia_den: "21",
- uroky_zaciatok_urocenia_mesiac: "7",
- uroky_zaciatok_urocenia_rok: "2020",
+ uroky_rok_uzatvorenia: '2020',
+ uroky_zaciatok_urocenia_den: '21',
+ uroky_zaciatok_urocenia_mesiac: '7',
+ uroky_zaciatok_urocenia_rok: '2020',
uroky_dalsi_dlznik: true,
- uroky_pocet_dlznikov: "2",
- r035_zaplatene_uroky: "4241.12",
+ uroky_pocet_dlznikov: '2',
+ r035_zaplatene_uroky: '4241.12',
uroky_dalsi_uver_uplatnuje: false,
uroky_splnam_vek_kriteria: true,
uroky_splnam_prijem: true,
platil_prispevky_na_dochodok: true,
- zaplatene_prispevky_na_dochodok: "39.88"
-}
\ No newline at end of file
+ zaplatene_prispevky_na_dochodok: '39.88',
+}
diff --git a/__tests__/testCases/bugReport5Input.ts b/__tests__/testCases/bugReport5Input.ts
index fe59666d..ffd79d61 100644
--- a/__tests__/testCases/bugReport5Input.ts
+++ b/__tests__/testCases/bugReport5Input.ts
@@ -1,57 +1,57 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport5Input: E2eTestUserInput = {
- "t1r10_prijmy": "50805.79",
- "priloha3_r11_socialne": "4910.66",
- "priloha3_r13_zdravotne": "1914.22",
- "zaplatenePreddavky": "0",
- "r031_priezvisko_a_meno": "anon",
- "r031_rodne_cislo": "anon",
- "r032_uplatnujem_na_partnera": false,
- "partner_step": 0,
- "partner_podmienky": {},
- "r032_partner_vlastne_prijmy": "",
- "r032_partner_pocet_mesiacov": "",
- "r001_dic": "233123123",
- "r003_nace": "62010 - Počítačové programovanie",
- "meno_priezvisko": "anon",
- "r005_meno": "Fake",
- "r004_priezvisko": "Name",
- "r006_titul": "",
- "r007_ulica": "Mierova",
- "r008_cislo": "4",
- "r009_psc": "82105",
- "r010_obec": "Bratislava 3",
- "r011_stat": "Slovensko",
- "employed": true,
- "uhrnPrijmovOdVsetkychZamestnavatelov": "235",
- "uhrnPovinnehoPoistnehoNaSocialnePoistenie": "22.09",
- "uhrnPovinnehoPoistnehoNaZdravotnePoistenie": "9.40",
- "udajeODanovomBonuseNaDieta": "0",
- "uhrnPreddavkovNaDan": "38.67",
- "hasChildren": false,
- "children": [
+ t1r10_prijmy: '50805.79',
+ priloha3_r11_socialne: '4910.66',
+ priloha3_r13_zdravotne: '1914.22',
+ zaplatenePreddavky: '0',
+ r031_priezvisko_a_meno: 'anon',
+ r031_rodne_cislo: 'anon',
+ r032_uplatnujem_na_partnera: false,
+ partner_step: 0,
+ partner_podmienky: {},
+ r032_partner_vlastne_prijmy: '',
+ r032_partner_pocet_mesiacov: '',
+ r001_dic: '233123123',
+ r003_nace: '62010 - Počítačové programovanie',
+ meno_priezvisko: 'anon',
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r006_titul: '',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ employed: true,
+ uhrnPrijmovOdVsetkychZamestnavatelov: '235',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '22.09',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '9.40',
+ udajeODanovomBonuseNaDieta: '0',
+ uhrnPreddavkovNaDan: '38.67',
+ hasChildren: false,
+ children: [
{
- "id": 0,
- "priezviskoMeno": "anon",
- "rodneCislo": "anon",
- "wholeYear": false,
- "monthFrom": "0",
- "monthTo": "11"
- }
+ id: 0,
+ priezviskoMeno: 'anon',
+ rodneCislo: 'anon',
+ wholeYear: false,
+ monthFrom: '0',
+ monthTo: '11',
+ },
],
- "platil_prispevky_na_dochodok": true,
- "zaplatene_prispevky_na_dochodok": "180",
- "expectNgoDonationValue": true,
- "XIIoddiel_uplatnujem2percenta": true,
- "splnam3per": false,
- "r142_ico": "53335082",
- "r142_obchMeno": "\"Znepokojené matky\"",
- "XIIoddiel_suhlasZaslUdaje": true,
- "iban": "anon",
- "datum": "",
- "r006_titul_za": "",
+ platil_prispevky_na_dochodok: true,
+ zaplatene_prispevky_na_dochodok: '180',
+ expectNgoDonationValue: true,
+ XIIoddiel_uplatnujem2percenta: true,
+ splnam3per: false,
+ r142_ico: '53335082',
+ r142_obchMeno: '"Znepokojené matky"',
+ XIIoddiel_suhlasZaslUdaje: true,
+ iban: 'anon',
+ datum: '',
+ r006_titul_za: '',
- "percent2": '74,82',
- "percent3": '112,23',
-}
\ No newline at end of file
+ percent2: '74,82',
+ percent3: '112,23',
+}
diff --git a/__tests__/testCases/bugReport6Input.ts b/__tests__/testCases/bugReport6Input.ts
index 09c8945f..3d4b218e 100644
--- a/__tests__/testCases/bugReport6Input.ts
+++ b/__tests__/testCases/bugReport6Input.ts
@@ -1,66 +1,66 @@
import { E2eTestUserInput } from '../../src/types/E2eTestUserInput'
export const bugReport6Input: E2eTestUserInput = {
- "t1r10_prijmy": "17636",
- "priloha3_r11_socialne": "1126,68",
- "priloha3_r13_zdravotne": "669,86",
- "zaplatenePreddavky": "0",
- "r031_priezvisko_a_meno": "E M",
- "r031_rodne_cislo": "835313 / 2348",
- "r032_uplatnujem_na_partnera": true,
- "partner_step": 5,
- "partner_podmienky": {
- "1": true
+ t1r10_prijmy: '17636',
+ priloha3_r11_socialne: '1126,68',
+ priloha3_r13_zdravotne: '669,86',
+ zaplatenePreddavky: '0',
+ r031_priezvisko_a_meno: 'E M',
+ r031_rodne_cislo: '835313 / 2348',
+ r032_uplatnujem_na_partnera: true,
+ partner_step: 5,
+ partner_podmienky: {
+ '1': true,
},
- "r032_partner_vlastne_prijmy": "0",
- "r032_partner_pocet_mesiacov": "12",
- "r001_dic": "1079959496",
- "r003_nace": "62010 - Počítačové programovanie",
- "meno_priezvisko": "Fake Name",
- "r005_meno": "Fake",
- "r004_priezvisko": "Name",
- "r006_titul": "",
- "r007_ulica": "Mierova",
- "r008_cislo": "4",
- "r009_psc": "82105",
- "r010_obec": "Bratislava 3",
- "r011_stat": "Slovensko",
- "employed": true,
- "uhrnPrijmovOdVsetkychZamestnavatelov": "4490,49",
- "uhrnPovinnehoPoistnehoNaSocialnePoistenie": "422,06",
- "uhrnPovinnehoPoistnehoNaZdravotnePoistenie": "179,61",
- "udajeODanovomBonuseNaDieta": "141,42",
- "uhrnPreddavkovNaDan": "521,36",
- "hasChildren": true,
- "children": [
+ r032_partner_vlastne_prijmy: '0',
+ r032_partner_pocet_mesiacov: '12',
+ r001_dic: '1079959496',
+ r003_nace: '62010 - Počítačové programovanie',
+ meno_priezvisko: 'Fake Name',
+ r005_meno: 'Fake',
+ r004_priezvisko: 'Name',
+ r006_titul: '',
+ r007_ulica: 'Mierova',
+ r008_cislo: '4',
+ r009_psc: '82105',
+ r010_obec: 'Bratislava 3',
+ r011_stat: 'Slovensko',
+ employed: true,
+ uhrnPrijmovOdVsetkychZamestnavatelov: '4490,49',
+ uhrnPovinnehoPoistnehoNaSocialnePoistenie: '422,06',
+ uhrnPovinnehoPoistnehoNaZdravotnePoistenie: '179,61',
+ udajeODanovomBonuseNaDieta: '141,42',
+ uhrnPreddavkovNaDan: '521,36',
+ hasChildren: true,
+ children: [
{
- "id": 0,
- "priezviskoMeno": "Dieta Jedna",
- "rodneCislo": "135417 / 2083",
- "wholeYear": false,
- "monthFrom": "3",
- "monthTo": "11"
+ id: 0,
+ priezviskoMeno: 'Dieta Jedna',
+ rodneCislo: '135417 / 2083',
+ wholeYear: false,
+ monthFrom: '3',
+ monthTo: '11',
},
{
- "id": 1,
- "priezviskoMeno": "Dieta Dva",
- "rodneCislo": "155613 / 3876",
- "wholeYear": true,
- "monthFrom": "0",
- "monthTo": "11"
- }
+ id: 1,
+ priezviskoMeno: 'Dieta Dva',
+ rodneCislo: '155613 / 3876',
+ wholeYear: true,
+ monthFrom: '0',
+ monthTo: '11',
+ },
],
- "platil_prispevky_na_dochodok": false,
- "zaplatene_prispevky_na_dochodok": "",
+ platil_prispevky_na_dochodok: false,
+ zaplatene_prispevky_na_dochodok: '',
- "splnam3per": false,
- "r142_ico": "",
- "r142_obchMeno": "",
- "XIIoddiel_suhlasZaslUdaje": false,
- "iban": "SK6807200002891987426353",
- "ziadamVyplatitDanovyBonus": true,
- "datum": "",
- "partner_spolocna_domacnost": true,
- "r006_titul_za": "",
- "ziadamVratitDanovyPreplatok": true
+ splnam3per: false,
+ r142_ico: '',
+ r142_obchMeno: '',
+ XIIoddiel_suhlasZaslUdaje: false,
+ iban: 'SK6807200002891987426353',
+ ziadamVyplatitDanovyBonus: true,
+ datum: '',
+ partner_spolocna_domacnost: true,
+ r006_titul_za: '',
+ ziadamVratitDanovyPreplatok: true,
}
diff --git a/__tests__/testCases/bugReport7Input.ts b/__tests__/testCases/bugReport7Input.ts
index 0e231268..693b329a 100644
--- a/__tests__/testCases/bugReport7Input.ts
+++ b/__tests__/testCases/bugReport7Input.ts
@@ -13,7 +13,6 @@ export const bugReport7Input: E2eTestUserInput = {
udajeODanovomBonuseNaDieta: '99999,99',
uhrnPreddavkovNaDan: '400000',
-
r031_priezvisko_a_meno: 'Fake Fake',
r031_rodne_cislo: '9609226286',
r032_partner_pocet_mesiacov: '2',
@@ -36,5 +35,5 @@ export const bugReport7Input: E2eTestUserInput = {
children: [],
expectNgoDonationValue: true,
- percent2: '775,27'
+ percent2: '775,27',
}
diff --git a/__tests__/testCases/bugReport8Input.ts b/__tests__/testCases/bugReport8Input.ts
index 158f0494..edca365c 100644
--- a/__tests__/testCases/bugReport8Input.ts
+++ b/__tests__/testCases/bugReport8Input.ts
@@ -29,5 +29,5 @@ export const bugReport8Input: E2eTestUserInput = {
children: [],
expectNgoDonationValue: true,
- percent2: '39,08'
+ percent2: '39,08',
}
diff --git a/__tests__/testCases/case202202aInput.ts b/__tests__/testCases/case202202aInput.ts
index abdcd5fa..47d4aba9 100644
--- a/__tests__/testCases/case202202aInput.ts
+++ b/__tests__/testCases/case202202aInput.ts
@@ -63,5 +63,5 @@ export const case202202aInput: E2eTestUserInput = {
expectNgoDonationValue: true,
percent2: '173,62',
- percent3: '320,78'
+ percent3: '320,78',
}
diff --git a/__tests__/testCases/employmentWrongChildBonusInput.ts b/__tests__/testCases/employmentWrongChildBonusInput.ts
index 75515360..8c4a8dc9 100644
--- a/__tests__/testCases/employmentWrongChildBonusInput.ts
+++ b/__tests__/testCases/employmentWrongChildBonusInput.ts
@@ -3,5 +3,5 @@ import { withEmploymentInput } from './withEmploymentInput'
export const employmentWrongChildBonusInput: E2eTestUserInput = {
...withEmploymentInput,
- udajeODanovomBonuseNaDieta: '3000'
+ udajeODanovomBonuseNaDieta: '3000',
}
diff --git a/__tests__/testCases/prenajom202301Input.ts b/__tests__/testCases/prenajom202301Input.ts
index dcd75e92..97756b39 100644
--- a/__tests__/testCases/prenajom202301Input.ts
+++ b/__tests__/testCases/prenajom202301Input.ts
@@ -7,5 +7,5 @@ export const prenajom202301Input: E2eTestUserInput = {
vyskaPrijmovZPrenajmu: '7500',
vydavkyZPrenajmu: '3430',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: '167'
+ vyskaOslobodenia: '167',
}
diff --git a/__tests__/testCases/prenajom202302Input.ts b/__tests__/testCases/prenajom202302Input.ts
index 238f3093..d7291ed9 100644
--- a/__tests__/testCases/prenajom202302Input.ts
+++ b/__tests__/testCases/prenajom202302Input.ts
@@ -8,5 +8,5 @@ export const prenajom202302Input: E2eTestUserInput = {
vydavkyZPrenajmu: '3400',
prenajomPrijemZPrilezitostnejCinnosti: false,
expectNgoDonationValue: true,
- percent2: '161,47'
+ percent2: '161,47',
}
diff --git a/__tests__/testCases/prenajom202303Input.ts b/__tests__/testCases/prenajom202303Input.ts
index 63ee1b4b..756848a0 100644
--- a/__tests__/testCases/prenajom202303Input.ts
+++ b/__tests__/testCases/prenajom202303Input.ts
@@ -9,5 +9,5 @@ export const prenajom202303Input: E2eTestUserInput = {
vyskaPrijmovZPrenajmu: '8755',
vydavkyZPrenajmu: '4325',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: '350'
+ vyskaOslobodenia: '350',
}
diff --git a/__tests__/testCases/prenajom202304Input.ts b/__tests__/testCases/prenajom202304Input.ts
index 6c71e4bf..330722b8 100644
--- a/__tests__/testCases/prenajom202304Input.ts
+++ b/__tests__/testCases/prenajom202304Input.ts
@@ -8,5 +8,5 @@ export const prenajom202304Input: E2eTestUserInput = {
vydavkyZPrenajmu: '5687',
prenajomPrijemZPrilezitostnejCinnosti: false,
expectNgoDonationValue: true,
- percent2: '7,57'
+ percent2: '7,57',
}
diff --git a/__tests__/testCases/prenajom202305Input.ts b/__tests__/testCases/prenajom202305Input.ts
index 1e58a1a0..b2e06ea2 100644
--- a/__tests__/testCases/prenajom202305Input.ts
+++ b/__tests__/testCases/prenajom202305Input.ts
@@ -8,5 +8,5 @@ export const prenajom202305Input: E2eTestUserInput = {
vydavkyZPrenajmu: '7356',
prenajomPrijemZPrilezitostnejCinnosti: false,
expectNgoDonationValue: true,
- percent2: '201,04'
+ percent2: '201,04',
}
diff --git a/__tests__/testCases/prenajom202306Input.ts b/__tests__/testCases/prenajom202306Input.ts
index 91398c43..805118be 100644
--- a/__tests__/testCases/prenajom202306Input.ts
+++ b/__tests__/testCases/prenajom202306Input.ts
@@ -7,5 +7,5 @@ export const prenajom202306Input: E2eTestUserInput = {
vyskaPrijmovZPrenajmu: '6984',
vydavkyZPrenajmu: '1569',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: '350'
+ vyskaOslobodenia: '350',
}
diff --git a/__tests__/testCases/prenajom202307Input.ts b/__tests__/testCases/prenajom202307Input.ts
index 334c7eb4..e3661b2a 100644
--- a/__tests__/testCases/prenajom202307Input.ts
+++ b/__tests__/testCases/prenajom202307Input.ts
@@ -9,5 +9,5 @@ export const prenajom202307Input: E2eTestUserInput = {
prenajomPrijemZPrilezitostnejCinnosti: true,
vyskaOslobodenia: '0',
expectNgoDonationValue: true,
- percent2: '163,80'
+ percent2: '163,80',
}
diff --git a/__tests__/testCases/prenajom202308Input.ts b/__tests__/testCases/prenajom202308Input.ts
index 416eed77..2b178fe1 100644
--- a/__tests__/testCases/prenajom202308Input.ts
+++ b/__tests__/testCases/prenajom202308Input.ts
@@ -7,5 +7,5 @@ export const prenajom202308Input: E2eTestUserInput = {
vyskaPrijmovZPrenajmu: '5537,98',
vydavkyZPrenajmu: '3431,75',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: '321,19'
+ vyskaOslobodenia: '321,19',
}
diff --git a/__tests__/testCases/prenajom202309Input.ts b/__tests__/testCases/prenajom202309Input.ts
index 358dd6d5..58cece56 100644
--- a/__tests__/testCases/prenajom202309Input.ts
+++ b/__tests__/testCases/prenajom202309Input.ts
@@ -7,5 +7,5 @@ export const prenajom202309Input: E2eTestUserInput = {
vyskaPrijmovZPrenajmu: '417,38',
vydavkyZPrenajmu: '1531,75',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: '450'
+ vyskaOslobodenia: '450',
}
diff --git a/__tests__/testCases/prenajom202310Input.ts b/__tests__/testCases/prenajom202310Input.ts
index bbbe3280..6abf4a4f 100644
--- a/__tests__/testCases/prenajom202310Input.ts
+++ b/__tests__/testCases/prenajom202310Input.ts
@@ -7,5 +7,5 @@ export const prenajom202310Input: E2eTestUserInput = {
vyskaPrijmovZPrenajmu: '417,38',
vydavkyZPrenajmu: '1531,75',
prenajomPrijemZPrilezitostnejCinnosti: true,
- vyskaOslobodenia: '0'
+ vyskaOslobodenia: '0',
}
diff --git a/__tests__/testCases/uroky202304aInput.ts b/__tests__/testCases/uroky202304aInput.ts
index ae941199..40005059 100644
--- a/__tests__/testCases/uroky202304aInput.ts
+++ b/__tests__/testCases/uroky202304aInput.ts
@@ -14,5 +14,5 @@ export const uroky202304aInput: E2eTestUserInput = {
uroky_dalsi_dlznik: true,
uroky_pocet_dlznikov: '2',
r035_zaplatene_uroky: '987.65',
- percent2: '193,04'
+ percent2: '193,04',
}
diff --git a/__tests__/testCases/uroky202304bInput.ts b/__tests__/testCases/uroky202304bInput.ts
index 1c488009..cdea9844 100644
--- a/__tests__/testCases/uroky202304bInput.ts
+++ b/__tests__/testCases/uroky202304bInput.ts
@@ -14,5 +14,5 @@ export const uroky202304bInput: E2eTestUserInput = {
uroky_dalsi_dlznik: true,
uroky_pocet_dlznikov: '2',
r035_zaplatene_uroky: '987.65',
- percent2: '196,37'
+ percent2: '196,37',
}
diff --git a/__tests__/testCases/uroky202304cInput.ts b/__tests__/testCases/uroky202304cInput.ts
index 50cb7e2f..8e493b08 100644
--- a/__tests__/testCases/uroky202304cInput.ts
+++ b/__tests__/testCases/uroky202304cInput.ts
@@ -14,5 +14,5 @@ export const uroky202304cInput: E2eTestUserInput = {
uroky_dalsi_dlznik: true,
uroky_pocet_dlznikov: '2',
r035_zaplatene_uroky: '987.65',
- percent2: '197,71'
+ percent2: '197,71',
}
diff --git a/__tests__/testCases/uroky202306Input.ts b/__tests__/testCases/uroky202306Input.ts
index 1f4473d5..c957a467 100644
--- a/__tests__/testCases/uroky202306Input.ts
+++ b/__tests__/testCases/uroky202306Input.ts
@@ -17,5 +17,5 @@ export const uroky202306Input: E2eTestUserInput = {
uroky_pocet_dlznikov: '2',
r035_zaplatene_uroky: '347.77',
expectNgoDonationValue: true,
- percent2: '4,40'
+ percent2: '4,40',
}
diff --git a/__tests__/testCases/uroky202307Input.ts b/__tests__/testCases/uroky202307Input.ts
index bdcad2e0..40b00c99 100644
--- a/__tests__/testCases/uroky202307Input.ts
+++ b/__tests__/testCases/uroky202307Input.ts
@@ -13,5 +13,5 @@ export const uroky202307Input: E2eTestUserInput = {
uroky_zaciatok_urocenia_mesiac: '5',
uroky_zaciatok_urocenia_rok: `${TAX_YEAR - UROKY_POCET_ROKOV}`,
uroky_dalsi_dlznik: false,
- r035_zaplatene_uroky: '698'
+ r035_zaplatene_uroky: '698',
}
diff --git a/__tests__/testCases/urokyEligibleInput.ts b/__tests__/testCases/urokyEligibleInput.ts
index c227e6b5..24194ba0 100644
--- a/__tests__/testCases/urokyEligibleInput.ts
+++ b/__tests__/testCases/urokyEligibleInput.ts
@@ -1,14 +1,14 @@
-import { UrokyUserInput } from "../../src/types/PageUserInputs"
+import { UrokyUserInput } from '../../src/types/PageUserInputs'
type UrokyEligibleInput = Pick<
- UrokyUserInput,
- 'uroky_dalsi_uver_uplatnuje' |
- 'uroky_splnam_vek_kriteria' |
- 'uroky_splnam_prijem'
+ UrokyUserInput,
+ | 'uroky_dalsi_uver_uplatnuje'
+ | 'uroky_splnam_vek_kriteria'
+ | 'uroky_splnam_prijem'
>
export const urokyEligibleInput: UrokyEligibleInput = {
- uroky_dalsi_uver_uplatnuje: false,
- uroky_splnam_vek_kriteria: true,
- uroky_splnam_prijem: true,
-}
\ No newline at end of file
+ uroky_dalsi_uver_uplatnuje: false,
+ uroky_splnam_vek_kriteria: true,
+ uroky_splnam_prijem: true,
+}
diff --git a/__tests__/testCases/with2percentInput.ts b/__tests__/testCases/with2percentInput.ts
index 15e1c6f3..af6eef3b 100644
--- a/__tests__/testCases/with2percentInput.ts
+++ b/__tests__/testCases/with2percentInput.ts
@@ -23,5 +23,5 @@ export const with2percentInput: E2eTestUserInput = {
XIIoddiel_suhlasZaslUdaje: true,
percent2: '9,23',
- percent3: '13,85'
+ percent3: '13,85',
}
diff --git a/__tests__/testCases/withHighIncome2Input.ts b/__tests__/testCases/withHighIncome2Input.ts
index ba57b726..2c9f4ae0 100644
--- a/__tests__/testCases/withHighIncome2Input.ts
+++ b/__tests__/testCases/withHighIncome2Input.ts
@@ -60,5 +60,5 @@ export const withHighIncome2Input: E2eTestUserInput = {
XIIoddiel_suhlasZaslUdaje: true,
percent2: '520,40',
- percent3: '780,60'
+ percent3: '780,60',
}
diff --git a/__tests__/testCases/withHighIncome3Input.ts b/__tests__/testCases/withHighIncome3Input.ts
index d442b930..cd9b2c0b 100644
--- a/__tests__/testCases/withHighIncome3Input.ts
+++ b/__tests__/testCases/withHighIncome3Input.ts
@@ -60,5 +60,5 @@ export const withHighIncome3Input: E2eTestUserInput = {
XIIoddiel_suhlasZaslUdaje: true,
percent2: '520,42',
- percent3: '780,63'
+ percent3: '780,63',
}
diff --git a/__tests__/testCases/withHighIncomeInput.ts b/__tests__/testCases/withHighIncomeInput.ts
index f84cff20..336a6b00 100644
--- a/__tests__/testCases/withHighIncomeInput.ts
+++ b/__tests__/testCases/withHighIncomeInput.ts
@@ -19,5 +19,5 @@ export const withHighIncomeInput: E2eTestUserInput = {
expectNgoDonationValue: true,
percent2: '140,13',
- percent3: '214,32'
+ percent3: '214,32',
}
diff --git a/__tests__/testCases/withTaxReturnInput.ts b/__tests__/testCases/withTaxReturnInput.ts
index 2e107330..f7b96336 100644
--- a/__tests__/testCases/withTaxReturnInput.ts
+++ b/__tests__/testCases/withTaxReturnInput.ts
@@ -25,5 +25,5 @@ export const withTaxReturnInput: E2eTestUserInput = {
expectNgoDonationValue: true,
percent2: '9,23',
- percent3: '15,39'
+ percent3: '15,39',
}
diff --git a/__tests__/utils.test.ts b/__tests__/utils.test.ts
index 3485de3a..13deff0e 100644
--- a/__tests__/utils.test.ts
+++ b/__tests__/utils.test.ts
@@ -19,7 +19,7 @@ import {
validateIbanCountry,
getRodneCisloAgeAtYearAndMonth,
boolToString,
- decimalToString
+ decimalToString,
} from '../src/lib/utils'
import Decimal from 'decimal.js'
diff --git a/cypress/e2e/casesBugs.spec.ts b/cypress/e2e/casesBugs.spec.ts
index b060e65c..416e87e8 100644
--- a/cypress/e2e/casesBugs.spec.ts
+++ b/cypress/e2e/casesBugs.spec.ts
@@ -28,6 +28,6 @@ describe('Cases', () => {
'bugReport21',
'bugReport22',
'bugReport23',
- 'employmentWrongChildBonus'
+ 'employmentWrongChildBonus',
])
})
diff --git a/cypress/e2e/executeCase.ts b/cypress/e2e/executeCase.ts
index 6cf774a1..d7fce103 100644
--- a/cypress/e2e/executeCase.ts
+++ b/cypress/e2e/executeCase.ts
@@ -135,9 +135,13 @@ const executeTestCase = (testCase: string) => {
)
if (child.wholeYear) {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-wholeyear"]`).click()
+ cy.get(
+ `[data-test="children[${index}]-bonus-interval-input-wholeyear"]`,
+ ).click()
} else {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-partyear"]`).click()
+ cy.get(
+ `[data-test="children[${index}]-bonus-interval-input-partyear"]`,
+ ).click()
cy.get(
`[data-test="children[${index}].monthFrom-select"]`,
).select(child.monthFrom)
@@ -151,21 +155,21 @@ const executeTestCase = (testCase: string) => {
}
})
next()
- cy.url().then(url => {
+ cy.url().then((url) => {
if (input.partner_bonus_na_deti) {
getInput('partner_bonus_na_deti_chce_uplatnit', '-yes').click()
getInput('partner_bonus_na_deti', '-yes').click()
typeToInput('r034_priezvisko_a_meno', input)
typeToInput('r034_rodne_cislo', input)
- cy.get(
- `[data-test="partner_bonus_na_deti_od-select"]`,
- ).select(input.partner_bonus_na_deti_od)
- cy.get(
- `[data-test="partner_bonus_na_deti_do-select"]`,
- ).select(input.partner_bonus_na_deti_do)
+ cy.get(`[data-test="partner_bonus_na_deti_od-select"]`).select(
+ input.partner_bonus_na_deti_od,
+ )
+ cy.get(`[data-test="partner_bonus_na_deti_do-select"]`).select(
+ input.partner_bonus_na_deti_do,
+ )
cy.get(
`[data-test="partner_bonus_na_deti_typ_prijmu-select"]`,
- ).select("1")
+ ).select('1')
typeToInput('r034a', input)
next()
} else {
@@ -174,7 +178,7 @@ const executeTestCase = (testCase: string) => {
next()
}
}
- });
+ })
} else {
getInput('hasChildren', '-no').click()
next()
@@ -389,33 +393,52 @@ const executeTestCase = (testCase: string) => {
cy.contains('Daň na úhradu')
- cy.get('[data-test="prijmy"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r036.plus(taxForm.r039).toNumber())
- )
-
- cy.get('[data-test="pausalneVydavky"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r040.minus(taxForm.vydavkyPoistPar6ods11_ods1a2).toNumber())
- )
-
- cy.get('[data-test="zakladDane"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r078_zaklad_dane_zo_zamestnania.plus(taxForm.r092).toNumber())
- )
-
- cy.get('[data-test="danSpolu"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r116_dan.toNumber())
- )
+ cy.get('[data-test="prijmy"]')
+ .should('have.length', 1)
+ .contains(formatCurrency(taxForm.r036.plus(taxForm.r039).toNumber()))
+
+ cy.get('[data-test="pausalneVydavky"]')
+ .should('have.length', 1)
+ .contains(
+ formatCurrency(
+ taxForm.r040
+ .minus(taxForm.vydavkyPoistPar6ods11_ods1a2)
+ .toNumber(),
+ ),
+ )
- cy.get('[data-test="danovyBonusNaDeti"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r117.toNumber())
- )
+ cy.get('[data-test="zakladDane"]')
+ .should('have.length', 1)
+ .contains(
+ formatCurrency(
+ taxForm.r078_zaklad_dane_zo_zamestnania
+ .plus(taxForm.r092)
+ .toNumber(),
+ ),
+ )
- cy.get('[data-test="danovyBonusPreplatokNaVyplatenie"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r121.plus(taxForm.r136_danovy_preplatok).plus(taxForm.r127).toNumber())
- )
+ cy.get('[data-test="danSpolu"]')
+ .should('have.length', 1)
+ .contains(formatCurrency(taxForm.r116_dan.toNumber()))
+
+ cy.get('[data-test="danovyBonusNaDeti"]')
+ .should('have.length', 1)
+ .contains(formatCurrency(taxForm.r117.toNumber()))
+
+ cy.get('[data-test="danovyBonusPreplatokNaVyplatenie"]')
+ .should('have.length', 1)
+ .contains(
+ formatCurrency(
+ taxForm.r121
+ .plus(taxForm.r136_danovy_preplatok)
+ .plus(taxForm.r127)
+ .toNumber(),
+ ),
+ )
- cy.get('[data-test="danNaUhradu"]').should('have.length', 1).contains(
- formatCurrency(taxForm.r135_dan_na_uhradu.toNumber())
- )
+ cy.get('[data-test="danNaUhradu"]')
+ .should('have.length', 1)
+ .contains(formatCurrency(taxForm.r135_dan_na_uhradu.toNumber()))
next()
/** SECTION Download */
diff --git a/cypress/e2e/pagePercent.spec.ts b/cypress/e2e/pagePercent.spec.ts
index 7c9f8f67..3c21f97e 100644
--- a/cypress/e2e/pagePercent.spec.ts
+++ b/cypress/e2e/pagePercent.spec.ts
@@ -93,20 +93,24 @@ describe('twoPercent page', () => {
getInput('hasChildren', '-yes').click()
input.children.forEach((child, index) => {
- cy.get(
- `[data-test="children[${index}].priezviskoMeno-input"]`,
- ).type(child.priezviskoMeno)
+ cy.get(`[data-test="children[${index}].priezviskoMeno-input"]`).type(
+ child.priezviskoMeno,
+ )
cy.get(`[data-test="children[${index}].rodneCislo-input"]`).type(
child.rodneCislo,
)
if (child.wholeYear) {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-wholeyear"]`).click()
+ cy.get(
+ `[data-test="children[${index}]-bonus-interval-input-wholeyear"]`,
+ ).click()
} else {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-partyear"]`).click()
cy.get(
- `[data-test="children[${index}].monthFrom-select"]`,
- ).select(child.monthFrom)
+ `[data-test="children[${index}]-bonus-interval-input-partyear"]`,
+ ).click()
+ cy.get(`[data-test="children[${index}].monthFrom-select"]`).select(
+ child.monthFrom,
+ )
cy.get(`[data-test="children[${index}].monthTo-select"]`).select(
child.monthTo,
)
@@ -154,7 +158,9 @@ describe('twoPercent page', () => {
getError().should('have.length', 2)
// Type to input
- getInput('r142_obchMeno').type('Domka - Združenie saleziánskej mládeže, stredisko Banská Bystrica')
+ getInput('r142_obchMeno').type(
+ 'Domka - Združenie saleziánskej mládeže, stredisko Banská Bystrica',
+ )
getInput('r142_ico').type('35983558')
cy.get('[data-test="XIIoddiel_suhlasZaslUdaje-input"]').click()
@@ -207,7 +213,10 @@ describe('twoPercent page', () => {
cy.get('#form-buttons-load-dialog-confirm > .ui-button-text').click()
cy.get('#cmbDic1').should('have.value', input.r001_dic) // validate the form has laoded by checking DIC value
cy.get('#tbico152').should('have.value', '35983558')
- cy.get('#tbObchMeno152').should('have.value', 'Domka - Združenie saleziánskej mládeže, stredisko Banská Bystrica')
+ cy.get('#tbObchMeno152').should(
+ 'have.value',
+ 'Domka - Združenie saleziánskej mládeže, stredisko Banská Bystrica',
+ )
cy.get('#form-button-validate').click().should(formSuccessful(stub))
cy.get('#errorsContainer')
.should((el) => expect(el.text()).to.be.empty)
@@ -268,20 +277,24 @@ describe('twoPercent page', () => {
getInput('hasChildren', '-yes').click()
input.children.forEach((child, index) => {
- cy.get(
- `[data-test="children[${index}].priezviskoMeno-input"]`,
- ).type(child.priezviskoMeno)
+ cy.get(`[data-test="children[${index}].priezviskoMeno-input"]`).type(
+ child.priezviskoMeno,
+ )
cy.get(`[data-test="children[${index}].rodneCislo-input"]`).type(
child.rodneCislo,
)
if (child.wholeYear) {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-wholeyear"]`).click()
+ cy.get(
+ `[data-test="children[${index}]-bonus-interval-input-wholeyear"]`,
+ ).click()
} else {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-partyear"]`).click()
cy.get(
- `[data-test="children[${index}].monthFrom-select"]`,
- ).select(child.monthFrom)
+ `[data-test="children[${index}]-bonus-interval-input-partyear"]`,
+ ).click()
+ cy.get(`[data-test="children[${index}].monthFrom-select"]`).select(
+ child.monthFrom,
+ )
cy.get(`[data-test="children[${index}].monthTo-select"]`).select(
child.monthTo,
)
@@ -439,20 +452,24 @@ describe('twoPercent page', () => {
getInput('hasChildren', '-yes').click()
input.children.forEach((child, index) => {
- cy.get(
- `[data-test="children[${index}].priezviskoMeno-input"]`,
- ).type(child.priezviskoMeno)
+ cy.get(`[data-test="children[${index}].priezviskoMeno-input"]`).type(
+ child.priezviskoMeno,
+ )
cy.get(`[data-test="children[${index}].rodneCislo-input"]`).type(
child.rodneCislo,
)
if (child.wholeYear) {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-wholeyear"]`).click()
+ cy.get(
+ `[data-test="children[${index}]-bonus-interval-input-wholeyear"]`,
+ ).click()
} else {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-partyear"]`).click()
cy.get(
- `[data-test="children[${index}].monthFrom-select"]`,
- ).select(child.monthFrom)
+ `[data-test="children[${index}]-bonus-interval-input-partyear"]`,
+ ).click()
+ cy.get(`[data-test="children[${index}].monthFrom-select"]`).select(
+ child.monthFrom,
+ )
cy.get(`[data-test="children[${index}].monthTo-select"]`).select(
child.monthTo,
)
@@ -491,7 +508,6 @@ describe('twoPercent page', () => {
cy.get('[data-test=dve_percenta_podporujem-input-no]').click()
next()
getError().should('have.length', 0)
-
})
it('works with Slovensko.Digital pre-fill', (done) => {
const input = with2percentInput
@@ -548,20 +564,24 @@ describe('twoPercent page', () => {
getInput('hasChildren', '-yes').click()
input.children.forEach((child, index) => {
- cy.get(
- `[data-test="children[${index}].priezviskoMeno-input"]`,
- ).type(child.priezviskoMeno)
+ cy.get(`[data-test="children[${index}].priezviskoMeno-input"]`).type(
+ child.priezviskoMeno,
+ )
cy.get(`[data-test="children[${index}].rodneCislo-input"]`).type(
child.rodneCislo,
)
if (child.wholeYear) {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-wholeyear"]`).click()
+ cy.get(
+ `[data-test="children[${index}]-bonus-interval-input-wholeyear"]`,
+ ).click()
} else {
- cy.get(`[data-test="children[${index}]-bonus-interval-input-partyear"]`).click()
cy.get(
- `[data-test="children[${index}].monthFrom-select"]`,
- ).select(child.monthFrom)
+ `[data-test="children[${index}]-bonus-interval-input-partyear"]`,
+ ).click()
+ cy.get(`[data-test="children[${index}].monthFrom-select"]`).select(
+ child.monthFrom,
+ )
cy.get(`[data-test="children[${index}].monthTo-select"]`).select(
child.monthTo,
)
diff --git a/cypress/e2e/pages.spec.ts b/cypress/e2e/pages.spec.ts
index 56e100ab..61047934 100644
--- a/cypress/e2e/pages.spec.ts
+++ b/cypress/e2e/pages.spec.ts
@@ -14,7 +14,11 @@ import { withPensionInput } from '../../__tests__/testCases/withPensionInput'
import { withPartnerInput } from '../../__tests__/testCases/withPartnerInput'
import { withBonusInput } from '../../__tests__/testCases/withBonusInput'
import { UserInput } from '../../src/types/UserInput'
-import { MAX_CHILD_AGE_BONUS, TAX_YEAR, UROKY_POCET_ROKOV } from '../../src/lib/calculation'
+import {
+ MAX_CHILD_AGE_BONUS,
+ TAX_YEAR,
+ UROKY_POCET_ROKOV,
+} from '../../src/lib/calculation'
function getInput
- Príjmom z príležitostnej činnosti je iba taký príjem, ktorý plynie fyzickej osobe bez zmluvne dohodnutých podmienok.
- Príležitostný príjem je zárobok, ktorý je občasný, je nepravidelný, to ale neznamená, že musí ísť o jednorazový príjem. Detailné informácie nájdete na stránke {' '}
-
- Váš priznaný príjem z prenájmu nehnuteľností bude {formatCurrency(priznanyPrijem.toNumber())}. -
- ) - } + {priznanyPrijem && ( ++ Váš priznaný príjem z prenájmu nehnuteľností bude{' '} + {formatCurrency(priznanyPrijem.toNumber())}. +
+ )} > ) } @@ -105,36 +139,56 @@ export const OslobodenieVyskaQuestion = ({ disabled }) => { export const VydavkyQuestion = ({ disabled }) => ( <>- V prípade nehnuteľnosti nezaradenej v obchodnom majetku je možné uplatniť nasledovné preukázateľné výdavky: + V prípade nehnuteľnosti nezaradenej v obchodnom majetku je možné + uplatniť nasledovné preukázateľné výdavky: