@tasenor/common-plugins 1.17.11 → 1.17.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-release.log +2 -2
- package/data/EstonianBalanceSheetReport.mjs +9 -0
- package/data/src/EstonianBalanceSheetReport - balance-sheet-detailed-fi.tsv +40 -0
- package/data/src/EstonianBalanceSheetReport - balance-sheet-en.tsv +25 -0
- package/data/src/EstonianBalanceSheetReport - balance-sheet-fi.tsv +25 -0
- package/package.json +5 -5
- package/src/EstonianBalanceSheetReport/backend/EstonianBalanceSheetReport - balance-sheet-detailed-fi.tsv +40 -0
- package/src/EstonianBalanceSheetReport/backend/balance-sheet-detailed-fi.tsv +40 -0
- package/src/EstonianBalanceSheetReport/backend/balance-sheet-fi.tsv +25 -0
- package/src/EstonianBalanceSheetReport/backend/index.ts +131 -0
- package/src/EstonianLimitedCompanyLite/backend/index.ts +1 -1
- package/src/EstonianLimitedCompanyLite/ui/index.tsx +1 -1
- package/src/FinnishBalanceSheetReport/backend/index.ts +1 -1
- package/src/FinnishBalanceSheetReportLite/backend/index.ts +1 -1
- package/src/FinnishIncomeStatementReportLite/backend/index.ts +1 -1
- package/src/VATEstonia/backend/index.ts +3 -3
package/.turbo/turbo-release.log
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @tasenor/common-plugins@1.17.
|
|
3
|
+
> @tasenor/common-plugins@1.17.12 release /home/wigy/project/tasenor-qa/tasenor-bookkeeper/packages/tasenor-common-plugins
|
|
4
4
|
> pnpm version patch && pnpm publish --force --access public --no-git-checks
|
|
5
5
|
|
|
6
6
|
[1mnpm[22m [33mwarn[39m [94mUnknown env config "auto-install-peers". This will stop working in the next major version of npm.[39m
|
|
7
|
-
v1.17.
|
|
7
|
+
v1.17.13
|
|
8
8
|
[43m[30m WARN [39m[49m using --force I sure hope you know what you are doing
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env -S npx tsx
|
|
2
|
+
import commonNode from '@tasenor/common-node'
|
|
3
|
+
const { readFile, saveText, trimCRLF } = commonNode.dataUtils
|
|
4
|
+
|
|
5
|
+
let tsv = trimCRLF(readFile('EstonianBalanceSheetReport - balance-sheet-fi.tsv'))
|
|
6
|
+
saveText('EstonianBalanceSheetReport', 'balance-sheet-fi.tsv', tsv)
|
|
7
|
+
|
|
8
|
+
tsv = trimCRLF(readFile('EstonianBalanceSheetReport - balance-sheet-detailed-fi.tsv'))
|
|
9
|
+
saveText('EstonianBalanceSheetReport', 'balance-sheet-detailed-fi.tsv', tsv)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# accounts title flags
|
|
2
|
+
1000-2999 VASTAAVAA HIDE_TOTAL REQUIRED BOLD
|
|
3
|
+
1000-1299 _PYSYVÄT VASTAAVAT
|
|
4
|
+
1000-1099 __Aineettomat hyödykkeet HIDE_TOTAL BOLD
|
|
5
|
+
1000-1099 ___Aineettomat hyödykkeet DETAILS
|
|
6
|
+
1000-1099 __Aineettomat hyödykkeet yhteensä BOLD
|
|
7
|
+
1100-1199 __Aineelliset hyödykkeet HIDE_TOTAL BOLD
|
|
8
|
+
1100-1199 ___Aineelliset hyödykkeet DETAILS
|
|
9
|
+
1100-1199 __Aineelliset hyödykkeet yhteensä BOLD
|
|
10
|
+
1200-1299 __Kertyneet poistot HIDE_TOTAL BOLD
|
|
11
|
+
1200-1299 ___Kertyneet poistot DETAILS
|
|
12
|
+
1200-1299 __Kertyneet poistot yhteensä BOLD
|
|
13
|
+
2000-2999 _VAIHTUVAT VASTAAVAT HIDE_TOTAL REQUIRED BOLD
|
|
14
|
+
2000-2099 __Saamiset HIDE_TOTAL
|
|
15
|
+
2010-2019 ___Myyntisaamiset HIDE_TOTAL BOLD
|
|
16
|
+
2010-2019 ____Myyntisaamiset DETAILS
|
|
17
|
+
2010-2019 ___Myyntisaamiset yhteensä BOLD
|
|
18
|
+
2020-2029 ___Siirtosaamiset HIDE_TOTAL BOLD
|
|
19
|
+
2020-2029 ____Siirtosaamiset DETAILS
|
|
20
|
+
2020-2029 ___Siirtosaamiset yhteensä BOLD
|
|
21
|
+
2000-2099 __Saamiset yhteensä BOLD
|
|
22
|
+
2100-2199 __Rahat ja pankkisaamiset HIDE_TOTAL BOLD
|
|
23
|
+
2100-2199 ___Rahat ja pankkisaamiset DETAILS
|
|
24
|
+
2100-2199 __Rahat ja pankkisaamiset yhteensä BOLD
|
|
25
|
+
2000-2999 _Vaihtuvat vastaavat yhteensä BOLD
|
|
26
|
+
1000-2999 Vastaavaa yhteensä REQUIRED BOLD
|
|
27
|
+
NEW_PAGE
|
|
28
|
+
VASTATTAVAA HIDE_TOTAL REQUIRED BOLD
|
|
29
|
+
3000-3199 5000-9999 _OMA PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
30
|
+
3000-3099 __Osakepääoma HIDE_TOTAL BOLD
|
|
31
|
+
3000-3099 __Osakepääoma DETAILS
|
|
32
|
+
3100-3199 __Edellisten tilikausien voitto (tappio)
|
|
33
|
+
5000-9999 __Tilikauden voitto (tappio)
|
|
34
|
+
3000-3199 5000-9999 _Oma pääoma yhteensä BOLD
|
|
35
|
+
4000-4999 _VIERAS PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
36
|
+
4000-4999 __Velat HIDE_TOTAL BOLD
|
|
37
|
+
4000-4999 ___Velat DETAILS
|
|
38
|
+
4000-4999 __Velat yhteensä BOLD
|
|
39
|
+
4000-4999 _Vieras pääoma yhteensä BOLD
|
|
40
|
+
3000-3199 4000-4999 5000-9999 Vastattavaa yhteensä REQUIRED BOLD
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# accounts title flags
|
|
2
|
+
1000-2999 ASSETS HIDE_TOTAL REQUIRED BOLD
|
|
3
|
+
1000-1299 _FIXED ASSETS
|
|
4
|
+
1000-1099 __Intanglible Assets HIDE_TOTAL
|
|
5
|
+
1100-1199 __Tanglible Assets HIDE_TOTAL
|
|
6
|
+
1200-1299 __Accumulated Depreciation HIDE_TOTAL
|
|
7
|
+
2000-2999 _CURRENT ASSETS HIDE_TOTAL REQUIRED BOLD
|
|
8
|
+
2000-2099 __Receivables HIDE_TOTAL
|
|
9
|
+
2010-2019 ___Trade Receivables
|
|
10
|
+
2020-2029 ___Accrued Income
|
|
11
|
+
2000-2099 __Total Receivables BOLD
|
|
12
|
+
2100-2199 __Disposable Assets
|
|
13
|
+
2000-2999 _Total Variable Assets BOLD
|
|
14
|
+
1000-2999 Total Assets REQUIRED BOLD
|
|
15
|
+
NEW_PAGE
|
|
16
|
+
CAPITAL, RESERVES & LIABILITIES HIDE_TOTAL REQUIRED BOLD
|
|
17
|
+
3000-3199 5000-9999 _CAPITAL & RESERVES HIDE_TOTAL REQUIRED BOLD
|
|
18
|
+
3000-3099 __Capital
|
|
19
|
+
3100-3199 __Retained Profits (Loss)
|
|
20
|
+
5000-9999 __Profit (Loss) for the financial year
|
|
21
|
+
3000-3199 5000-9999 _Total Equity BOLD
|
|
22
|
+
4000-4999 _CREDITORS HIDE_TOTAL REQUIRED BOLD
|
|
23
|
+
4000-4999 __Trade Creditors
|
|
24
|
+
4000-4999 _Total Liabilities BOLD
|
|
25
|
+
3000-3199 4000-4999 5000-9999 Total Liabilities REQUIRED BOLD
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# accounts title flags
|
|
2
|
+
1000-2999 VASTAAVAA HIDE_TOTAL REQUIRED BOLD
|
|
3
|
+
1000-1299 _PYSYVÄT VASTAAVAT
|
|
4
|
+
1000-1099 __Aineettomat hyödykkeet HIDE_TOTAL
|
|
5
|
+
1100-1199 __Aineelliset hyödykkeet HIDE_TOTAL
|
|
6
|
+
1200-1299 __Kertyneet poistot HIDE_TOTAL
|
|
7
|
+
2000-2999 _VAIHTUVAT VASTAAVAT HIDE_TOTAL REQUIRED BOLD
|
|
8
|
+
2000-2099 __Saamiset HIDE_TOTAL
|
|
9
|
+
2010-2019 ___Myyntisaamiset
|
|
10
|
+
2020-2029 ___Siirtosaamiset
|
|
11
|
+
2000-2099 __Saamiset yhteensä BOLD
|
|
12
|
+
2100-2199 __Rahat ja pankkisaamiset
|
|
13
|
+
2000-2999 _Vaihtuvat vastaavat yhteensä BOLD
|
|
14
|
+
1000-2999 Vastaavaa yhteensä REQUIRED BOLD
|
|
15
|
+
NEW_PAGE
|
|
16
|
+
VASTATTAVAA HIDE_TOTAL REQUIRED BOLD
|
|
17
|
+
3000-3199 5000-9999 _OMA PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
18
|
+
3000-3099 __Osakepääoma
|
|
19
|
+
3100-3199 __Edellisten tilikausien voitto (tappio)
|
|
20
|
+
5000-9999 __Tilikauden voitto (tappio)
|
|
21
|
+
3000-3199 5000-9999 _Oma pääoma yhteensä BOLD
|
|
22
|
+
4000-4999 _VIERAS PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
23
|
+
4000-4999 __Velat
|
|
24
|
+
4000-4999 _Vieras pääoma yhteensä BOLD
|
|
25
|
+
3000-3199 4000-4999 5000-9999 Vastattavaa yhteensä REQUIRED BOLD
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tasenor/common-plugins",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.13",
|
|
4
4
|
"description": "Shared common plugins of Tasenor project",
|
|
5
5
|
"repository": "git@github.com:dataplugoy/tasenor-bookkeeper.git",
|
|
6
6
|
"author": "Tommi Ronkainen <tommi.ronkainen@gmail.com>",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"dayjs": "1.10.8",
|
|
14
14
|
"sprintf-js": "^1.1.2",
|
|
15
15
|
"tsx": "^4.7.0",
|
|
16
|
-
"@tasenor/common": "1.17.
|
|
17
|
-
"@tasenor/common-
|
|
18
|
-
"@tasenor/common-
|
|
16
|
+
"@tasenor/common": "1.17.13",
|
|
17
|
+
"@tasenor/common-ui": "1.17.13",
|
|
18
|
+
"@tasenor/common-node": "1.17.13"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@mui/icons-material": "^5.14.1",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"react-i18next": "^14.0.5",
|
|
32
32
|
"react-router-dom": "^6.14.1",
|
|
33
33
|
"typescript": "^5.1.6",
|
|
34
|
-
"@tasenor/config": "1.17.
|
|
34
|
+
"@tasenor/config": "1.17.13",
|
|
35
35
|
"eslint-config-tasenor": "0.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# accounts title flags
|
|
2
|
+
1000-2999 VASTAAVAA HIDE_TOTAL REQUIRED BOLD
|
|
3
|
+
1000-1299 _PYSYVÄT VASTAAVAT
|
|
4
|
+
1000-1099 __Aineettomat hyödykkeet HIDE_TOTAL BOLD
|
|
5
|
+
1000-1099 ___Aineettomat hyödykkeet DETAILS
|
|
6
|
+
1000-1099 __Aineettomat hyödykkeet yhteensä BOLD
|
|
7
|
+
1100-1199 __Aineelliset hyödykkeet HIDE_TOTAL BOLD
|
|
8
|
+
1100-1199 ___Aineelliset hyödykkeet DETAILS
|
|
9
|
+
1100-1199 __Aineelliset hyödykkeet yhteensä BOLD
|
|
10
|
+
1200-1299 __Kertyneet poistot HIDE_TOTAL BOLD
|
|
11
|
+
1200-1299 ___Kertyneet poistot DETAILS
|
|
12
|
+
1200-1299 __Kertyneet poistot yhteensä BOLD
|
|
13
|
+
2000-2999 _VAIHTUVAT VASTAAVAT HIDE_TOTAL REQUIRED BOLD
|
|
14
|
+
2000-2099 __Saamiset HIDE_TOTAL
|
|
15
|
+
2010-2019 ___Myyntisaamiset HIDE_TOTAL BOLD
|
|
16
|
+
2010-2019 ____Myyntisaamiset DETAILS
|
|
17
|
+
2010-2019 ___Myyntisaamiset yhteensä BOLD
|
|
18
|
+
2020-2029 ___Siirtosaamiset HIDE_TOTAL BOLD
|
|
19
|
+
2020-2029 ____Siirtosaamiset DETAILS
|
|
20
|
+
2020-2029 ___Siirtosaamiset yhteensä BOLD
|
|
21
|
+
2000-2099 __Saamiset yhteensä BOLD
|
|
22
|
+
2100-2199 __Rahat ja pankkisaamiset HIDE_TOTAL BOLD
|
|
23
|
+
2100-2199 ___Rahat ja pankkisaamiset DETAILS
|
|
24
|
+
2100-2199 __Rahat ja pankkisaamiset yhteensä BOLD
|
|
25
|
+
2000-2999 _Vaihtuvat vastaavat yhteensä BOLD
|
|
26
|
+
1000-2999 Vastaavaa yhteensä REQUIRED BOLD
|
|
27
|
+
NEW_PAGE
|
|
28
|
+
VASTATTAVAA HIDE_TOTAL REQUIRED BOLD
|
|
29
|
+
3000-3199 5000-9999 _OMA PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
30
|
+
3000-3099 __Osakepääoma HIDE_TOTAL BOLD
|
|
31
|
+
3000-3099 __Osakepääoma DETAILS
|
|
32
|
+
3100-3199 __Edellisten tilikausien voitto (tappio)
|
|
33
|
+
5000-9999 __Tilikauden voitto (tappio)
|
|
34
|
+
3000-3199 5000-9999 _Oma pääoma yhteensä BOLD
|
|
35
|
+
4000-4999 _VIERAS PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
36
|
+
4000-4999 __Velat HIDE_TOTAL BOLD
|
|
37
|
+
4000-4999 ___Velat DETAILS
|
|
38
|
+
4000-4999 __Velat yhteensä BOLD
|
|
39
|
+
4000-4999 _Vieras pääoma yhteensä BOLD
|
|
40
|
+
3000-3199 4000-4999 5000-9999 Vastattavaa yhteensä REQUIRED BOLD
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# accounts title flags
|
|
2
|
+
1000-2999 VASTAAVAA HIDE_TOTAL REQUIRED BOLD
|
|
3
|
+
1000-1299 _PYSYVÄT VASTAAVAT
|
|
4
|
+
1000-1099 __Aineettomat hyödykkeet HIDE_TOTAL BOLD
|
|
5
|
+
1000-1099 ___Aineettomat hyödykkeet DETAILS
|
|
6
|
+
1000-1099 __Aineettomat hyödykkeet yhteensä BOLD
|
|
7
|
+
1100-1199 __Aineelliset hyödykkeet HIDE_TOTAL BOLD
|
|
8
|
+
1100-1199 ___Aineelliset hyödykkeet DETAILS
|
|
9
|
+
1100-1199 __Aineelliset hyödykkeet yhteensä BOLD
|
|
10
|
+
1200-1299 __Kertyneet poistot HIDE_TOTAL BOLD
|
|
11
|
+
1200-1299 ___Kertyneet poistot DETAILS
|
|
12
|
+
1200-1299 __Kertyneet poistot yhteensä BOLD
|
|
13
|
+
2000-2999 _VAIHTUVAT VASTAAVAT HIDE_TOTAL REQUIRED BOLD
|
|
14
|
+
2000-2099 __Saamiset HIDE_TOTAL
|
|
15
|
+
2010-2019 ___Myyntisaamiset HIDE_TOTAL BOLD
|
|
16
|
+
2010-2019 ____Myyntisaamiset DETAILS
|
|
17
|
+
2010-2019 ___Myyntisaamiset yhteensä BOLD
|
|
18
|
+
2020-2029 ___Siirtosaamiset HIDE_TOTAL BOLD
|
|
19
|
+
2020-2029 ____Siirtosaamiset DETAILS
|
|
20
|
+
2020-2029 ___Siirtosaamiset yhteensä BOLD
|
|
21
|
+
2000-2099 __Saamiset yhteensä BOLD
|
|
22
|
+
2100-2199 __Rahat ja pankkisaamiset HIDE_TOTAL BOLD
|
|
23
|
+
2100-2199 ___Rahat ja pankkisaamiset DETAILS
|
|
24
|
+
2100-2199 __Rahat ja pankkisaamiset yhteensä BOLD
|
|
25
|
+
2000-2999 _Vaihtuvat vastaavat yhteensä BOLD
|
|
26
|
+
1000-2999 Vastaavaa yhteensä REQUIRED BOLD
|
|
27
|
+
NEW_PAGE
|
|
28
|
+
VASTATTAVAA HIDE_TOTAL REQUIRED BOLD
|
|
29
|
+
3000-3199 5000-9999 _OMA PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
30
|
+
3000-3099 __Osakepääoma HIDE_TOTAL BOLD
|
|
31
|
+
3000-3099 __Osakepääoma DETAILS
|
|
32
|
+
3100-3199 __Edellisten tilikausien voitto (tappio)
|
|
33
|
+
5000-9999 __Tilikauden voitto (tappio)
|
|
34
|
+
3000-3199 5000-9999 _Oma pääoma yhteensä BOLD
|
|
35
|
+
4000-4999 _VIERAS PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
36
|
+
4000-4999 __Velat HIDE_TOTAL BOLD
|
|
37
|
+
4000-4999 ___Velat DETAILS
|
|
38
|
+
4000-4999 __Velat yhteensä BOLD
|
|
39
|
+
4000-4999 _Vieras pääoma yhteensä BOLD
|
|
40
|
+
3000-3199 4000-4999 5000-9999 Vastattavaa yhteensä REQUIRED BOLD
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# accounts title flags
|
|
2
|
+
1000-2999 VASTAAVAA HIDE_TOTAL REQUIRED BOLD
|
|
3
|
+
1000-1299 _PYSYVÄT VASTAAVAT
|
|
4
|
+
1000-1099 __Aineettomat hyödykkeet HIDE_TOTAL
|
|
5
|
+
1100-1199 __Aineelliset hyödykkeet HIDE_TOTAL
|
|
6
|
+
1200-1299 __Kertyneet poistot HIDE_TOTAL
|
|
7
|
+
2000-2999 _VAIHTUVAT VASTAAVAT HIDE_TOTAL REQUIRED BOLD
|
|
8
|
+
2000-2099 __Saamiset HIDE_TOTAL
|
|
9
|
+
2010-2019 ___Myyntisaamiset
|
|
10
|
+
2020-2029 ___Siirtosaamiset
|
|
11
|
+
2000-2099 __Saamiset yhteensä BOLD
|
|
12
|
+
2100-2199 __Rahat ja pankkisaamiset
|
|
13
|
+
2000-2999 _Vaihtuvat vastaavat yhteensä BOLD
|
|
14
|
+
1000-2999 Vastaavaa yhteensä REQUIRED BOLD
|
|
15
|
+
NEW_PAGE
|
|
16
|
+
VASTATTAVAA HIDE_TOTAL REQUIRED BOLD
|
|
17
|
+
3000-3199 5000-9999 _OMA PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
18
|
+
3000-3099 __Osakepääoma
|
|
19
|
+
3100-3199 __Edellisten tilikausien voitto (tappio)
|
|
20
|
+
5000-9999 __Tilikauden voitto (tappio)
|
|
21
|
+
3000-3199 5000-9999 _Oma pääoma yhteensä BOLD
|
|
22
|
+
4000-4999 _VIERAS PÄÄOMA HIDE_TOTAL REQUIRED BOLD
|
|
23
|
+
4000-4999 __Velat
|
|
24
|
+
4000-4999 _Vieras pääoma yhteensä BOLD
|
|
25
|
+
3000-3199 4000-4999 5000-9999 Vastattavaa yhteensä REQUIRED BOLD
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { AccountNumber, Language, PluginCode, ReportID, ReportLine, ReportOptions, Version } from '@tasenor/common'
|
|
2
|
+
import { ReportPlugin } from '@tasenor/common-node'
|
|
3
|
+
import dayjs from 'dayjs'
|
|
4
|
+
import quarterOfYear from 'dayjs/plugin/quarterOfYear'
|
|
5
|
+
dayjs.extend(quarterOfYear)
|
|
6
|
+
|
|
7
|
+
class EstonianBalanceSheetReport extends ReportPlugin {
|
|
8
|
+
constructor() {
|
|
9
|
+
super('balance-sheet-detailed' as ReportID, 'balance-sheet' as ReportID)
|
|
10
|
+
|
|
11
|
+
this.schemes = new Set(['EstonianLimitedCompanyLite'])
|
|
12
|
+
|
|
13
|
+
this.code = 'EstonianBalanceSheetReport' as PluginCode
|
|
14
|
+
this.title = 'Balance Sheet Report (Estonian)'
|
|
15
|
+
this.version = '1.0.14' as Version
|
|
16
|
+
this.icon = '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><path d="M0,0h24v24H0V0z" fill="none"/></g><g><g><path d="M14,5H5v14h14v-9h-5V5z M8,17c-0.55,0-1-0.45-1-1s0.45-1,1-1s1,0.45,1,1S8.55,17,8,17z M8,13 c-0.55,0-1-0.45-1-1s0.45-1,1-1s1,0.45,1,1S8.55,13,8,13z M8,9C7.45,9,7,8.55,7,8s0.45-1,1-1s1,0.45,1,1S8.55,9,8,9z" opacity=".3"/><circle cx="8" cy="8" r="1"/><path d="M15,3H5C3.9,3,3.01,3.9,3.01,5L3,19c0,1.1,0.89,2,1.99,2H19c1.1,0,2-0.9,2-2V9L15,3z M19,19H5V5h9v5h5V19z"/><circle cx="8" cy="12" r="1"/><circle cx="8" cy="16" r="1"/></g></g></svg>'
|
|
17
|
+
this.releaseDate = '2026-02-05'
|
|
18
|
+
this.use = 'backend'
|
|
19
|
+
this.type = 'report'
|
|
20
|
+
this.description = 'Balance sheet report translated in Finnish or English.'
|
|
21
|
+
|
|
22
|
+
this.languages = {
|
|
23
|
+
en: {
|
|
24
|
+
'report-balance-sheet-detailed': 'Detailed balance sheet',
|
|
25
|
+
'report-balance-sheet': 'Balance sheet'
|
|
26
|
+
},
|
|
27
|
+
fi: {
|
|
28
|
+
'report-balance-sheet-detailed': 'Tase tilierittelyin',
|
|
29
|
+
'report-balance-sheet': 'Tase'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
forceOptions() {
|
|
35
|
+
return {
|
|
36
|
+
negateAssetAndProfit: true,
|
|
37
|
+
addPreviousPeriod: true
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
getLanguages(): Language[] {
|
|
42
|
+
// return ['fi', 'en']
|
|
43
|
+
return ['fi']
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
getReportOptions(): ReportOptions {
|
|
47
|
+
return {
|
|
48
|
+
month1: 'radio:1',
|
|
49
|
+
month2: 'radio:1',
|
|
50
|
+
quarter1: 'radio:1',
|
|
51
|
+
month4: 'radio:1',
|
|
52
|
+
month5: 'radio:1',
|
|
53
|
+
quarter2: 'radio:1',
|
|
54
|
+
month7: 'radio:1',
|
|
55
|
+
month8: 'radio:1',
|
|
56
|
+
quarter3: 'radio:1',
|
|
57
|
+
month10: 'radio:1',
|
|
58
|
+
month11: 'radio:1',
|
|
59
|
+
full: 'radio:1:default',
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
columnTitle(id, period, options) {
|
|
64
|
+
const year = dayjs(period.start_date).year()
|
|
65
|
+
|
|
66
|
+
if (options.month1) {
|
|
67
|
+
return `{${dayjs(`${year}-02-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
68
|
+
} else if (options.month2) {
|
|
69
|
+
return `{${dayjs(`${year}-03-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
70
|
+
} else if (options.month4) {
|
|
71
|
+
return `{${dayjs(`${year}-05-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
72
|
+
} else if (options.month5) {
|
|
73
|
+
return `{${dayjs(`${year}-06-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
74
|
+
} else if (options.month7) {
|
|
75
|
+
return `{${dayjs(`${year}-08-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
76
|
+
} else if (options.month8) {
|
|
77
|
+
return `{${dayjs(`${year}-09-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
78
|
+
} else if (options.month10) {
|
|
79
|
+
return `{${dayjs(`${year}-11-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
80
|
+
} else if (options.month11) {
|
|
81
|
+
return `{${dayjs(`${year}-12-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
82
|
+
} else if (options.quarter1) {
|
|
83
|
+
return `{${dayjs(`${year}-04-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
84
|
+
} else if (options.quarter2) {
|
|
85
|
+
return `{${dayjs(`${year}-07-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
86
|
+
} else if (options.quarter3) {
|
|
87
|
+
return `{${dayjs(`${year}-10-01`).subtract(1, 'day').format('YYYY-MM-DD')}}`
|
|
88
|
+
} else {
|
|
89
|
+
return `{${this.time2str(period.end_date)}}`
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
async preProcess(id, entries, options, settings, columns): Promise<ReportLine[]> {
|
|
94
|
+
const columnNames = columns.map((col) => col.name)
|
|
95
|
+
|
|
96
|
+
// Summarize all totals from the entries.
|
|
97
|
+
const totals = {}
|
|
98
|
+
columnNames.forEach((column) => (totals[column] = {}))
|
|
99
|
+
const accountNames = {}
|
|
100
|
+
const accountNumbers = new Set<AccountNumber>()
|
|
101
|
+
entries.forEach((entry) => {
|
|
102
|
+
const column = 'period' + entry.periodId
|
|
103
|
+
totals[column][entry.number] = totals[column][entry.number] || 0
|
|
104
|
+
totals[column][entry.number] += entry.amount
|
|
105
|
+
accountNames[entry.number] = entry.name
|
|
106
|
+
accountNumbers.add(entry.number)
|
|
107
|
+
})
|
|
108
|
+
|
|
109
|
+
return this.parseAndCombineReport([...accountNumbers], accountNames, columns, options.format, totals)
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Mark mismatching Vastaavaa and Vastattavaa with red.
|
|
114
|
+
*/
|
|
115
|
+
async postProcess(id, data) {
|
|
116
|
+
const liabilities = data.find(line => line.name === 'Vastattavaa yhteensä')
|
|
117
|
+
const assets = data.find(line => line.name === 'Vastaavaa yhteensä')
|
|
118
|
+
if (liabilities && assets) {
|
|
119
|
+
Object.values(liabilities.values).forEach((value, idx) => {
|
|
120
|
+
if (Object.values(assets.values)[idx] !== value) {
|
|
121
|
+
assets.error = true
|
|
122
|
+
liabilities.error = true
|
|
123
|
+
}
|
|
124
|
+
})
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
return data
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export default EstonianBalanceSheetReport
|
|
@@ -11,7 +11,7 @@ class EstonianLimitedCompanyLite extends SchemePlugin {
|
|
|
11
11
|
this.title = 'Estonian Limited Company - Lite'
|
|
12
12
|
this.version = '1.0.0' as Version
|
|
13
13
|
this.icon = '<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.17 8l-.58-.59L9.17 6H4v12h16V8h-8z" opacity=".3"/><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l1.41 1.41.59.59H20v10z"/></svg>'
|
|
14
|
-
this.releaseDate = '
|
|
14
|
+
this.releaseDate = '2026-02-05'
|
|
15
15
|
this.use = 'both'
|
|
16
16
|
this.type = 'scheme'
|
|
17
17
|
this.description = 'Small accounting scheme for Estonian private limited company (OÜ). Finnish version only.'
|
|
@@ -6,7 +6,7 @@ class EstonianLimitedCompanyLite extends SchemePlugin {
|
|
|
6
6
|
static title = 'Estonian Limited Company - Lite'
|
|
7
7
|
static version = '1.0.0'
|
|
8
8
|
static icon = '<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.17 8l-.58-.59L9.17 6H4v12h16V8h-8z" opacity=".3"/><path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l1.41 1.41.59.59H20v10z"/></svg>'
|
|
9
|
-
static releaseDate = '
|
|
9
|
+
static releaseDate = '2026-02-05'
|
|
10
10
|
static use = 'both'
|
|
11
11
|
static type = 'scheme'
|
|
12
12
|
static description = 'Small accounting scheme for Estonian private limited company (OÜ). Finnish version only.'
|
|
@@ -17,7 +17,7 @@ class FinnishBalanceSheetReport extends ReportPlugin {
|
|
|
17
17
|
this.releaseDate = '2023-03-14'
|
|
18
18
|
this.use = 'backend'
|
|
19
19
|
this.type = 'report'
|
|
20
|
-
this.description = 'Balance sheet report translated in Finnish.'
|
|
20
|
+
this.description = 'Balance sheet report translated in Finnish or English.'
|
|
21
21
|
|
|
22
22
|
this.languages = {
|
|
23
23
|
en: {
|
|
@@ -17,7 +17,7 @@ class FinnishBalanceSheetReportLite extends ReportPlugin {
|
|
|
17
17
|
this.releaseDate = '2023-03-14'
|
|
18
18
|
this.use = 'backend'
|
|
19
19
|
this.type = 'report'
|
|
20
|
-
this.description = 'Compact version of balance sheet report translated in Finnish.'
|
|
20
|
+
this.description = 'Compact version of balance sheet report translated in Finnish or English.'
|
|
21
21
|
|
|
22
22
|
this.languages = {
|
|
23
23
|
en: {
|
|
@@ -18,7 +18,7 @@ class FinnishIncomeStatementReportLite extends ReportPlugin {
|
|
|
18
18
|
this.releaseDate = '2023-03-14'
|
|
19
19
|
this.use = 'backend'
|
|
20
20
|
this.type = 'report'
|
|
21
|
-
this.description = 'Compact version of income statement report translated in Finnish.'
|
|
21
|
+
this.description = 'Compact version of income statement report translated in Finnish or English.'
|
|
22
22
|
|
|
23
23
|
this.languages = {
|
|
24
24
|
en: {
|
|
@@ -6,10 +6,10 @@ class VATEstonia extends DataPlugin {
|
|
|
6
6
|
super({ common: ['vat'], backend: [] })
|
|
7
7
|
|
|
8
8
|
this.code = 'VATEstonia'as PluginCode
|
|
9
|
-
this.title = 'VAT Data for
|
|
10
|
-
this.version = '1.0.
|
|
9
|
+
this.title = 'VAT Data for Estonia'
|
|
10
|
+
this.version = '1.0.1' as Version
|
|
11
11
|
this.icon = '<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><g><rect fill="none" height="24" width="24"/></g><g><g><g><path d="M7.5,4C5.57,4,4,5.57,4,7.5S5.57,11,7.5,11S11,9.43,11,7.5S9.43,4,7.5,4z M7.5,9C6.67,9,6,8.33,6,7.5S6.67,6,7.5,6 S9,6.67,9,7.5S8.33,9,7.5,9z M16.5,13c-1.93,0-3.5,1.57-3.5,3.5s1.57,3.5,3.5,3.5s3.5-1.57,3.5-3.5S18.43,13,16.5,13z M16.5,18 c-0.83,0-1.5-0.67-1.5-1.5s0.67-1.5,1.5-1.5s1.5,0.67,1.5,1.5S17.33,18,16.5,18z M5.41,20L4,18.59L18.59,4L20,5.41L5.41,20z"/></g></g></g></svg>'
|
|
12
|
-
this.releaseDate = '
|
|
12
|
+
this.releaseDate = '2026-02-05'
|
|
13
13
|
this.use = 'backend'
|
|
14
14
|
this.type = 'data'
|
|
15
15
|
this.description = 'This plugin provides data needed for VAT handling in Estonia.'
|