ekwo-os 0.25.2 → 0.26.0
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/README.md +8 -1
- package/dist/assets/expected-objects.json +324 -4
- package/dist/assets/migrations/20261107100000_a_control_account_reads_contact_by_contact.sql +269 -0
- package/dist/assets/migrations/20261108120000_an_electronic_invoice_arrives_by_the_same_door.sql +150 -0
- package/dist/assets/migrations/20261108152128_a_bank_account_keeps_the_profile_of_its_csv_statements.sql +26 -0
- package/dist/assets/migrations/20261110124117_the_socle_policies_ask_once.sql +177 -0
- package/dist/assets/migrations/20261115070000_a_financial_year_opens_on_any_month.sql +86 -0
- package/dist/assets/migrations/20261115080000_the_portfolio_reads_what_is_overdue.sql +119 -0
- package/dist/assets/migrations/20261115100000_a_declaration_has_a_short_name.sql +256 -0
- package/dist/assets/migrations/20261118144012_a_quote_carries_its_answer.sql +397 -0
- package/dist/assets/migrations/20261118170000_schema_version_0_26_0.sql +49 -0
- package/dist/assets/modules/budgets/supabase/migrations/20261109153212_budgets_policies_ask_once.sql +93 -0
- package/dist/assets/modules/consolidation/supabase/migrations/20261109154107_consolidation_policies_ask_once.sql +93 -0
- package/dist/assets/modules/contracts/supabase/migrations/20261109154842_contracts_policies_ask_once.sql +93 -0
- package/dist/assets/modules/corporate-tax/supabase/migrations/20261109160318_tax_policies_ask_once.sql +93 -0
- package/dist/assets/modules/crm/supabase/migrations/20261109120000_crm_reads_hold_at_volume.sql +95 -0
- package/dist/assets/modules/crm/supabase/migrations/20261115090000_crm_contact_vcard.sql +159 -0
- package/dist/assets/modules/crm/supabase/migrations/20261118145000_crm_deal_documents.sql +569 -0
- package/dist/assets/modules/einvoicing/supabase/migrations/20261109155021_einvoicing_policies_ask_once.sql +93 -0
- package/dist/assets/modules/fixed-assets/supabase/migrations/20261109155512_assets_policies_ask_once.sql +93 -0
- package/dist/assets/seed/00_currencies.sql +5 -0
- package/dist/assets/seed/00_territories.sql +57 -0
- package/dist/assets/seed/10_pack_be.sql +1 -1
- package/dist/assets/seed/11_pack_fr.sql +1 -1
- package/dist/assets/seed/13_pack_ee.sql +9 -4
- package/dist/assets/seed/15_pack_us.sql +1 -1
- package/dist/assets/seed/220_pack_ad.sql +666 -0
- package/dist/assets/seed/224_pack_pw.sql +642 -0
- package/dist/assets/seed/226_pack_sb.sql +614 -0
- package/dist/assets/seed/43_pack_pt.sql +14 -5
- package/dist/assets/seed/500_pack_nr.sql +468 -0
- package/dist/assets/seed/61_pack_se.sql +9 -5
- package/dist/assets/seed/64_pack_pl.sql +5 -2
- package/dist/assets/seed/65_pack_dk.sql +7 -4
- package/dist/assets/seed/67_pack_fi.sql +7 -2
- package/dist/assets/seed/68_pack_cz.sql +8 -2
- package/dist/assets/seed/70_pack_hu.sql +11 -7
- package/dist/assets/seed/72_pack_ro.sql +11 -7
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +44 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands/bank.d.ts +16 -0
- package/dist/commands/bank.d.ts.map +1 -0
- package/dist/commands/bank.js +82 -0
- package/dist/commands/bank.js.map +1 -0
- package/dist/commands/close.d.ts +33 -0
- package/dist/commands/close.d.ts.map +1 -0
- package/dist/commands/close.js +213 -0
- package/dist/commands/close.js.map +1 -0
- package/dist/commands/crm.d.ts +5 -4
- package/dist/commands/crm.d.ts.map +1 -1
- package/dist/commands/crm.js +70 -5
- package/dist/commands/crm.js.map +1 -1
- package/dist/commands/document.d.ts +2 -1
- package/dist/commands/document.d.ts.map +1 -1
- package/dist/commands/document.js +58 -4
- package/dist/commands/document.js.map +1 -1
- package/dist/commands/import.d.ts +3 -0
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +81 -6
- package/dist/commands/import.js.map +1 -1
- package/dist/company-choices.d.ts +2 -1
- package/dist/company-choices.d.ts.map +1 -1
- package/dist/company-choices.js +2 -1
- package/dist/company-choices.js.map +1 -1
- package/dist/inventory.d.ts.map +1 -1
- package/dist/inventory.js +8 -0
- package/dist/inventory.js.map +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/output.js +5 -2
- package/dist/output.js.map +1 -1
- package/dist/pack/certification.js +1 -1
- package/dist/pack/certification.js.map +1 -1
- package/dist/pack/compile.js +10 -2
- package/dist/pack/compile.js.map +1 -1
- package/dist/pack/describe.d.ts +3 -1
- package/dist/pack/describe.d.ts.map +1 -1
- package/dist/pack/describe.js +3 -2
- package/dist/pack/describe.js.map +1 -1
- package/dist/pack/read.d.ts +7 -0
- package/dist/pack/read.d.ts.map +1 -1
- package/dist/pack/read.js +1 -0
- package/dist/pack/read.js.map +1 -1
- package/package.json +2 -2
- package/schema/output.1.json +105 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
-- Ekwo — the `assets` module: its policies ask once per statement, not once
|
|
2
|
+
-- per row.
|
|
3
|
+
--
|
|
4
|
+
-- Every policy of the module that guards a table of a company read
|
|
5
|
+
--
|
|
6
|
+
-- using (public.module_enabled(company_id, 'assets')
|
|
7
|
+
-- and public.has_capability(company_id, 'assets.…'))
|
|
8
|
+
--
|
|
9
|
+
-- With a column as its argument each function runs for every row a scan
|
|
10
|
+
-- visits, and neither is inlined: `has_capability()` is security definer, and
|
|
11
|
+
-- `module_enabled()` carries a search_path since the socle moved to its own
|
|
12
|
+
-- schema. On a company with many rows here, nearly all the time of a read is
|
|
13
|
+
-- the policy. `scripts/inventory-policies.mjs` found it on its three tables of a company, `fixed_assets`, `depreciation_lines` and `disposals`.
|
|
14
|
+
--
|
|
15
|
+
-- The `crm` module measured it and changed its own policies in
|
|
16
|
+
-- `20261109120000_crm_reads_hold_at_volume.sql`; the socle did the same for
|
|
17
|
+
-- its tables in `20260918141627_a_policy_asks_once.sql`. This file is that
|
|
18
|
+
-- change, made here: the policy compares `company_id` with the companies
|
|
19
|
+
-- where the answer is yes, worked out in a sub-select that depends on no
|
|
20
|
+
-- column — an InitPlan, run once per statement:
|
|
21
|
+
--
|
|
22
|
+
-- company_id = any ((select array(
|
|
23
|
+
-- select x from unnest(public.companies_with_capability('assets.read')) x
|
|
24
|
+
-- where public.module_enabled(x, 'assets')))::uuid[])
|
|
25
|
+
--
|
|
26
|
+
-- **The same question, asked the other way round.** `companies_with_capability()`
|
|
27
|
+
-- lists the companies where `has_capability()` answers yes — a test of the
|
|
28
|
+
-- socle compares the two over every preset and a machine key — and
|
|
29
|
+
-- `module_enabled()` is then asked about each of those, by name, so the
|
|
30
|
+
-- policy still routes through it as `tests/modules.test.ts` requires. A row
|
|
31
|
+
-- passes exactly when it passed before. A condition a policy adds to the two
|
|
32
|
+
-- (`and computation_id is null`) is carried over as Postgres wrote it.
|
|
33
|
+
-- `with check` is left as it was: it is evaluated once per row written, which
|
|
34
|
+
-- is what a check is for.
|
|
35
|
+
--
|
|
36
|
+
-- **Read from the catalogue.** The policies are found by their shape in
|
|
37
|
+
-- `pg_policies` rather than listed, so the capability each one names is
|
|
38
|
+
-- carried over and cannot be mistyped here. Run twice, it changes nothing the
|
|
39
|
+
-- second time. It refuses to finish if it found neither the old shape nor the
|
|
40
|
+
-- new one — the policies changed and this file has to be read again — or if
|
|
41
|
+
-- a policy of the schema still asks either function about `company_id` row by
|
|
42
|
+
-- row.
|
|
43
|
+
--
|
|
44
|
+
-- **Older files, older socle.** Names of the socle are written `public.`, as
|
|
45
|
+
-- the module's first migrations wrote them; the installer reads the file for
|
|
46
|
+
-- the socle's schema of the day, `ekwo.` since 20261028040000.
|
|
47
|
+
|
|
48
|
+
do $$
|
|
49
|
+
declare
|
|
50
|
+
v_schema constant text := 'fixed_assets';
|
|
51
|
+
v_module constant text := 'assets';
|
|
52
|
+
v_shape constant text :=
|
|
53
|
+
'^\((?:[a-z_]+\.)?module_enabled\(company_id, ''' || v_module || '''::text\) AND '
|
|
54
|
+
'(?:[a-z_]+\.)?has_capability\(company_id, ''([a-z_.]+)''::text\)( AND .+)?\)$';
|
|
55
|
+
r record;
|
|
56
|
+
v_changed integer := 0;
|
|
57
|
+
v_left integer;
|
|
58
|
+
begin
|
|
59
|
+
for r in
|
|
60
|
+
select p.tablename, p.policyname, m[1] as capability, coalesce(m[2], '') as rest
|
|
61
|
+
from pg_policies p
|
|
62
|
+
cross join lateral regexp_match(p.qual, v_shape) as m
|
|
63
|
+
where p.schemaname = v_schema
|
|
64
|
+
and m is not null
|
|
65
|
+
order by p.tablename, p.policyname
|
|
66
|
+
loop
|
|
67
|
+
execute format(
|
|
68
|
+
'alter policy %I on %I.%I using (company_id = any ((select array('
|
|
69
|
+
'select x from unnest(public.companies_with_capability(%L)) as x where public.module_enabled(x, %L)'
|
|
70
|
+
'))::uuid[])%s)',
|
|
71
|
+
r.policyname, v_schema, r.tablename, r.capability, v_module, r.rest);
|
|
72
|
+
v_changed := v_changed + 1;
|
|
73
|
+
end loop;
|
|
74
|
+
|
|
75
|
+
-- Run a second time, it finds the policies already rewritten and changes
|
|
76
|
+
-- nothing; finding neither shape means the policies changed and this file
|
|
77
|
+
-- has to be read again.
|
|
78
|
+
if v_changed = 0 and not exists (
|
|
79
|
+
select 1 from pg_policies p
|
|
80
|
+
where p.schemaname = v_schema and p.qual like '%companies_with_capability(%'
|
|
81
|
+
) then
|
|
82
|
+
raise exception 'no policy of % has the shape module_enabled(company_id, …) and has_capability(company_id, …), and none was rewritten: the policies changed shape and this migration has to be read again', v_schema;
|
|
83
|
+
end if;
|
|
84
|
+
|
|
85
|
+
select count(*) into v_left
|
|
86
|
+
from pg_policies p
|
|
87
|
+
where p.schemaname = v_schema
|
|
88
|
+
and p.qual ~ '(module_enabled|has_capability)\(company_id,';
|
|
89
|
+
if v_left > 0 then
|
|
90
|
+
raise exception '% policies of % still ask module_enabled() or has_capability() once per row', v_left, v_schema;
|
|
91
|
+
end if;
|
|
92
|
+
end;
|
|
93
|
+
$$;
|
|
@@ -220,3 +220,8 @@ on conflict (code) do nothing;
|
|
|
220
220
|
insert into currencies (code, name, symbol, decimal_places) values
|
|
221
221
|
('VUV', 'Vanuatu vatu', 'VT', 0)
|
|
222
222
|
on conflict (code) do nothing;
|
|
223
|
+
|
|
224
|
+
-- Solomon Islands dollar, ISO 4217 list one, two decimals (packs/sb/).
|
|
225
|
+
insert into currencies (code, name, symbol, decimal_places) values
|
|
226
|
+
('SBD', 'Solomon Islands dollar', 'SI$', 2)
|
|
227
|
+
on conflict (code) do nothing;
|
|
@@ -3218,3 +3218,60 @@ on conflict (code) do update set
|
|
|
3218
3218
|
eu_vat_to = excluded.eu_vat_to,
|
|
3219
3219
|
vat_prefix = excluded.vat_prefix,
|
|
3220
3220
|
legal_reference = excluded.legal_reference;
|
|
3221
|
+
insert into territories (code, code_source, name, parent_code, eu_vat_scope, eu_vat_from, eu_vat_to, vat_prefix, legal_reference) values
|
|
3222
|
+
('AD', 'iso_3166_1', 'Andorra', null, 'none', null, null, null,
|
|
3223
|
+
'Directive 2006/112/EC, article 5(2): the common system of VAT applies in the territory of the Community as defined by the Treaties, and a State outside it is a third country for every rule the Directive carries. Andorra levies an indirect tax of its own, the impost general indirecte, under Law 11/2012 of 21 June 2012 as amended: article 57 sets the general rate at 4.5 per cent, articles 58 and 59 the 1 and 0 per cent rates, article 60 the 9.5 per cent rate on banking and financial services, article 14 exempts exports, and article 78 has the taxable person file a monthly, quarterly or semi-annual declaration by the turnover of the year before.')
|
|
3224
|
+
on conflict (code) do update set
|
|
3225
|
+
code_source = excluded.code_source,
|
|
3226
|
+
name = excluded.name,
|
|
3227
|
+
parent_code = excluded.parent_code,
|
|
3228
|
+
eu_vat_scope = excluded.eu_vat_scope,
|
|
3229
|
+
eu_vat_from = excluded.eu_vat_from,
|
|
3230
|
+
eu_vat_to = excluded.eu_vat_to,
|
|
3231
|
+
vat_prefix = excluded.vat_prefix,
|
|
3232
|
+
legal_reference = excluded.legal_reference;
|
|
3233
|
+
|
|
3234
|
+
insert into territories (code, code_source, name, parent_code, eu_vat_scope, eu_vat_from, eu_vat_to, vat_prefix, legal_reference) values
|
|
3235
|
+
('PW', 'iso_3166_1', 'Palau', null, 'none', null, null, null,
|
|
3236
|
+
'Directive 2006/112/EC, article 5(2): the common system of VAT applies in the territory of the Community as defined by the Treaties, and a State outside it is a third country for every rule the Directive carries. Palau levies a goods and services tax of its own under Chapter 12 of Title 40 of the Palau National Code, as replaced by RPPL 11-11: the Palau Goods and Services Tax (PGST) is charged at 10 per cent from 1 January 2023, zero-rated supplies bear 0 per cent, financial services are exempt, and a registered person files a monthly return on form Tax 500 with the Bureau of Revenue and Taxation.')
|
|
3237
|
+
on conflict (code) do update set
|
|
3238
|
+
code_source = excluded.code_source,
|
|
3239
|
+
name = excluded.name,
|
|
3240
|
+
parent_code = excluded.parent_code,
|
|
3241
|
+
eu_vat_scope = excluded.eu_vat_scope,
|
|
3242
|
+
eu_vat_from = excluded.eu_vat_from,
|
|
3243
|
+
eu_vat_to = excluded.eu_vat_to,
|
|
3244
|
+
vat_prefix = excluded.vat_prefix,
|
|
3245
|
+
legal_reference = excluded.legal_reference;
|
|
3246
|
+
insert into territories (code, code_source, name, parent_code, eu_vat_scope, eu_vat_from, eu_vat_to, vat_prefix, legal_reference) values
|
|
3247
|
+
('SB', 'iso_3166_1', 'Solomon Islands', null, 'none', null, null, null,
|
|
3248
|
+
'Directive 2006/112/EC, article 5(2): the common system of VAT applies in the territory of the Community as defined by the Treaties, and a State outside it is a third country for every rule the Directive carries. Solomon Islands levies no value added tax: the Inland Revenue Division administers a goods tax under the Goods Tax Act (Cap. 122), at 10 per cent on prescribed locally manufactured goods and 15 per cent on imported goods, and a sales tax under the Sales Tax Act (Cap. 125) on the goods and services of its Schedule One, and a registered person files a monthly return for each, form GT4 and form ST4, within 30 days of the end of the month.')
|
|
3249
|
+
on conflict (code) do update set
|
|
3250
|
+
code_source = excluded.code_source,
|
|
3251
|
+
name = excluded.name,
|
|
3252
|
+
parent_code = excluded.parent_code,
|
|
3253
|
+
eu_vat_scope = excluded.eu_vat_scope,
|
|
3254
|
+
eu_vat_from = excluded.eu_vat_from,
|
|
3255
|
+
eu_vat_to = excluded.eu_vat_to,
|
|
3256
|
+
vat_prefix = excluded.vat_prefix,
|
|
3257
|
+
legal_reference = excluded.legal_reference;
|
|
3258
|
+
|
|
3259
|
+
-- ---------------------------------------------------------------------------
|
|
3260
|
+
-- Nauru
|
|
3261
|
+
--
|
|
3262
|
+
-- Not a Member State and a third country of the Directive: the common system
|
|
3263
|
+
-- of VAT reaches a defined territory of the European Union and nowhere else.
|
|
3264
|
+
-- ---------------------------------------------------------------------------
|
|
3265
|
+
|
|
3266
|
+
insert into territories (code, code_source, name, parent_code, eu_vat_scope, eu_vat_from, eu_vat_to, vat_prefix, legal_reference) values
|
|
3267
|
+
('NR', 'iso_3166_1', 'Nauru', null, 'none', null, null, null,
|
|
3268
|
+
'Directive 2006/112/EC, article 5(2): the common system of VAT applies in the territory of the Community as defined by the Treaties, and Nauru is a third country to it. The Nauru Revenue Office''s list of the legislation it administers holds no value added tax, goods and services tax or general sales tax; what it levies instead is business tax under the Business Tax Act 2016, employment and services tax withheld at payment under the Employment and Services Tax Act 2014, and a telecommunications service tax on one sector.')
|
|
3269
|
+
on conflict (code) do update set
|
|
3270
|
+
code_source = excluded.code_source,
|
|
3271
|
+
name = excluded.name,
|
|
3272
|
+
parent_code = excluded.parent_code,
|
|
3273
|
+
eu_vat_scope = excluded.eu_vat_scope,
|
|
3274
|
+
eu_vat_from = excluded.eu_vat_from,
|
|
3275
|
+
eu_vat_to = excluded.eu_vat_to,
|
|
3276
|
+
vat_prefix = excluded.vat_prefix,
|
|
3277
|
+
legal_reference = excluded.legal_reference;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
-- Change the pack and run `ekwo pack build be`; `ekwo pack check --all`
|
|
5
5
|
-- refuses a seed that is not the exact output of its pack, and the CI runs it.
|
|
6
6
|
--
|
|
7
|
-
-- Proven on the real
|
|
7
|
+
-- Proven on the real data of a company — not yet reviewed by an accountant.
|
|
8
8
|
-- Written from:
|
|
9
9
|
-- Arrêté royal du 21 octobre 2018 portant exécution des articles III.82 à III.95 du Code de droit économique, annexe 1 — plan comptable minimum normalisé (SPF Justice — Moniteur belge (Justel))
|
|
10
10
|
-- https://www.ejustice.just.fgov.be/eli/arrete/2018/10/21/2018014350/justel
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
-- Change the pack and run `ekwo pack build fr`; `ekwo pack check --all`
|
|
5
5
|
-- refuses a seed that is not the exact output of its pack, and the CI runs it.
|
|
6
6
|
--
|
|
7
|
-
-- Proven on the real
|
|
7
|
+
-- Proven on the real data of a company — not yet reviewed by an accountant.
|
|
8
8
|
-- Written from:
|
|
9
9
|
-- Règlement ANC n° 2014-03 du 5 juin 2014 relatif au plan comptable général, dans sa version consolidée (Autorité des normes comptables)
|
|
10
10
|
-- https://www.anc.gouv.fr/pcg-reglement-ndeg-2014-03-du-5-juin-2014-relatif-au-plan-comptable-general
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
-- Ekwo OS — Estonia: chart of accounts, journals, taxes and defaults.
|
|
2
2
|
--
|
|
3
|
-
-- Generated from packs/ee at version 1.
|
|
3
|
+
-- Generated from packs/ee at version 1.15.0, do not edit.
|
|
4
4
|
-- Change the pack and run `ekwo pack build ee`; `ekwo pack check --all`
|
|
5
5
|
-- refuses a seed that is not the exact output of its pack, and the CI runs it.
|
|
6
6
|
--
|
|
7
|
-
-- Proven on the real
|
|
7
|
+
-- Proven on the real data of a company — not yet reviewed by an accountant.
|
|
8
8
|
-- Written from:
|
|
9
9
|
-- Käibemaksuseadus (Riigi Teataja)
|
|
10
10
|
-- https://www.riigiteataja.ee/akt/kms
|
|
11
|
-
-- Käibemaksuseadus Rahandusministeeriumi kommentaaridega, seisuga jaanuar 2026 — § 27, § 29 ja § 34 (Rahandusministeerium)
|
|
11
|
+
-- Käibemaksuseadus Rahandusministeeriumi kommentaaridega, seisuga jaanuar 2026 — § 1, § 10, § 15, § 27, § 29 ja § 34 (Rahandusministeerium)
|
|
12
12
|
-- https://fin.ee/sites/default/files/documents/2026-01/K%C3%A4ibemaksuseaduse%20kommentaarid%20jaanuar%202026.pdf
|
|
13
13
|
-- Raamatupidamise seadus (Riigi Teataja)
|
|
14
14
|
-- https://www.riigiteataja.ee/akt/rps
|
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
-- https://www.riigiteataja.ee/akt/119022025012
|
|
23
23
|
-- Käibedeklaratsiooni ja aruannete esitamine — vormi KMD ja selle lisa täitmine (Maksu- ja Tolliamet)
|
|
24
24
|
-- https://www.emta.ee/ariklient/maksud-ja-tasumine/kaibemaks/kaibedeklaratsiooni-ja-aruannete-esitamine
|
|
25
|
+
-- Käibedeklaratsiooni täitmine — lahtrid 3 ja 3.1: teise liikmesriigi maksukohustuslasele osutatud teenused lahtris 3.1, ülejäänud nullmääraga teenused üksnes lahtris 3 (Maksu- ja Tolliamet)
|
|
26
|
+
-- https://www.emta.ee/ariklient/maksud-ja-tasumine/kaibemaks/kaibedeklaratsiooni-ja-aruannete-esitamine/kaibedeklaratsiooni-taitmine
|
|
25
27
|
-- e-MTA — keskkond, kus käibedeklaratsioon esitatakse (Maksu- ja Tolliamet)
|
|
26
28
|
-- https://maasikas.emta.ee/
|
|
27
29
|
-- EN 16931-1 — Euroopa e-arve semantiline andmemudel ja direktiivist 2014/55/EL tulenev vastavus (Euroopa Komisjon)
|
|
@@ -43,7 +45,7 @@ insert into country_packs
|
|
|
43
45
|
(country, name, version, released_at, schema_min, certification_status,
|
|
44
46
|
certified_by, certified_at, checksum, sources, evidence)
|
|
45
47
|
values
|
|
46
|
-
('EE', 'Estonia', '1.
|
|
48
|
+
('EE', 'Estonia', '1.15.0', date '2026-11-09', '20261023124650', 'proven', null, null, '7f96ab714e994688b7dc65102f1d984c535d29766d5ccb420c2c8a73198afbea', '[{"key":"kms","title":"Käibemaksuseadus","publisher":"Riigi Teataja","url":"https://www.riigiteataja.ee/akt/kms","consulted_on":"2026-09-16","kind":"law"},{"key":"kms-kommentaarid","title":"Käibemaksuseadus Rahandusministeeriumi kommentaaridega, seisuga jaanuar 2026 — § 1, § 10, § 15, § 27, § 29 ja § 34","publisher":"Rahandusministeerium","url":"https://fin.ee/sites/default/files/documents/2026-01/K%C3%A4ibemaksuseaduse%20kommentaarid%20jaanuar%202026.pdf","consulted_on":"2026-11-09","kind":"guidance"},{"key":"rps","title":"Raamatupidamise seadus","publisher":"Riigi Teataja","url":"https://www.riigiteataja.ee/akt/rps","consulted_on":"2026-09-15","kind":"law"},{"key":"e-arved","title":"Nõuded raamatupidamise korraldamiseks ja majandustehingute dokumenteerimiseks — algdokumendid, arved ja e-arved","publisher":"Rahandusministeerium","url":"https://fin.ee/finantspoliitika-valissuhted/arvestusvaldkond/raamatupidamise-algdokumendid-arved-e-arved","consulted_on":"2026-09-21","kind":"guidance"},{"key":"vos","title":"Võlaõigusseadus","publisher":"Riigi Teataja","url":"https://www.riigiteataja.ee/akt/120062026018","consulted_on":"2026-09-15","kind":"law"},{"key":"kmd-vorm","title":"Rahandusministri 10.06.2014 määrus nr 17 „Käibedeklaratsiooni vorm“, lisa 1 (vorm KMD) ja lisa 2 (vorm KMD INF)","publisher":"Riigi Teataja","url":"https://www.riigiteataja.ee/akt/130052025008","consulted_on":"2026-09-15","kind":"regulation"},{"key":"rtj-2","title":"Raamatupidamise Toimkonna juhend RTJ 2 „Nõuded informatsiooni esitusviisile raamatupidamise aastaaruandes“, rahandusministri 22.12.2017 määruse nr 105 lisa 2","publisher":"Riigi Teataja","url":"https://www.riigiteataja.ee/akt/119022025012","consulted_on":"2026-09-15","kind":"guidance"},{"key":"kmd-esitamine","title":"Käibedeklaratsiooni ja aruannete esitamine — vormi KMD ja selle lisa täitmine","publisher":"Maksu- ja Tolliamet","url":"https://www.emta.ee/ariklient/maksud-ja-tasumine/kaibemaks/kaibedeklaratsiooni-ja-aruannete-esitamine","consulted_on":"2026-09-15","kind":"form"},{"key":"kmd-taitmine","title":"Käibedeklaratsiooni täitmine — lahtrid 3 ja 3.1: teise liikmesriigi maksukohustuslasele osutatud teenused lahtris 3.1, ülejäänud nullmääraga teenused üksnes lahtris 3","publisher":"Maksu- ja Tolliamet","url":"https://www.emta.ee/ariklient/maksud-ja-tasumine/kaibemaks/kaibedeklaratsiooni-ja-aruannete-esitamine/kaibedeklaratsiooni-taitmine","consulted_on":"2026-11-09","kind":"guidance"},{"key":"e-mta","title":"e-MTA — keskkond, kus käibedeklaratsioon esitatakse","publisher":"Maksu- ja Tolliamet","url":"https://maasikas.emta.ee/","consulted_on":"2026-09-15","kind":"portal"},{"key":"en-16931","title":"EN 16931-1 — Euroopa e-arve semantiline andmemudel ja direktiivist 2014/55/EL tulenev vastavus","publisher":"Euroopa Komisjon","url":"https://ec.europa.eu/digital-building-blocks/sites/spaces/DIGITAL/pages/467108950/EN+16931+compliance","consulted_on":"2026-09-15","kind":"standard"},{"key":"uncl5305","title":"UNCL5305 — käibemaksu kategooria koodide loend (BT-118 ja BT-151), EN 16931 jaoks avaldatud alamhulk","publisher":"OpenPEPPOL — nimekirja avaldab Euroopa Komisjon","url":"https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/","consulted_on":"2026-09-15","kind":"standard"},{"key":"vatex","title":"VATEX — käibemaksuvabastuse põhjuse koodide loend (BT-121)","publisher":"OpenPEPPOL — nimekirja avaldab Euroopa Komisjon","url":"https://docs.peppol.eu/poacc/billing/3.0/codelist/vatex/","consulted_on":"2026-09-15","kind":"standard"}]'::jsonb, '[{"scope":"balance_sheet","result":"reproduced","fiscal_year":2025,"filing":"Estonian annual report (majandusaasta aruanne) filed with the e-Business Register","summary":"On the books of an Estonian OÜ rebuilt from the exports of its accounting provider — the balance sheet at 31 December 2024 as the opening entry, then every sale, purchase and bank movement of 2025 as documents and statement lines — each of the eight non-empty lines of the balance sheet it filed for 2025 matches to the cent: cash, short-term financial investments, receivables and prepayments, payables and prepayments, share capital, unpaid capital, retained earnings and the profit of the year.","checked_on":"2026-10-16"},{"scope":"income_statement","result":"reproduced","fiscal_year":2025,"filing":"Estonian annual report (majandusaasta aruanne) filed with the e-Business Register","summary":"Every non-empty line of the income statement (scheme 1) of the same annual report matches to the cent: revenue, other operating expenses, employee expenses, profit from financial investments, interest income and the profit of the year.","checked_on":"2026-10-16"},{"scope":"vat_return","result":"not_tested","fiscal_year":2025,"filing":"Estonian VAT return (vorm KMD) on e-MTA","summary":"Not tested against the returns the accountant filed: the monthly KMD of July 2025 to September 2026 were computed from the books, frozen and recorded as filed through the accountant''s portal, but the figures as filed were not retrieved for comparison. Months before July 2025 are refused by name, because the pack carries the form in its wording in force from 1 July 2025 only.","checked_on":"2026-10-16"}]'::jsonb)
|
|
47
49
|
on conflict (country) do update set
|
|
48
50
|
name = excluded.name,
|
|
49
51
|
version = excluded.version,
|
|
@@ -244,6 +246,7 @@ values
|
|
|
244
246
|
('EE', 'EE-P-SA100-24', 'Sõiduauto 100% ettevõtluses 24%', '{"en":"Passenger car used wholly for business 24%"}'::jsonb, 'KMS § 30 lg 4 p 3–5 erand: mahaarvamine täies ulatuses, vormil KMD lahter 5.3', 'percent', 24, 'purchase', 'domestic', date '2025-07-01', null, 'KMS § 30 lg 4 p 3–5 — takso, sõiduõpe ja üksnes ettevõtluses kasutatav sõiduauto; § 30 lg 7 — kaheaastane kasutamise tingimus; § 30 lg 9 — maksukohustuslane peab tagama, et autot muul otstarbel ei kasutata. Vormil KMD lahter 5.3.', 'S', null, 270, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kms', null, null, null, null),
|
|
245
247
|
('EE', 'EE-P-VABA', 'Maksuvaba soetamine', '{"en":"Acquisition exempt from tax"}'::jsonb, 'Arve ilma käibemaksuta', 'percent', 0, 'purchase', 'exempt', date '2004-05-01', null, 'KMS § 16 — maksuvaba käive; soetaja arvel käibemaksu ei ole', 'E', 'VATEX-EU-132', 290, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kms', null, null, null, null),
|
|
246
248
|
('EE', 'EE-P-VS-24', 'Teenuse saamine ühendusevälise isikult 24%', '{"en":"Services received from a person outside the Union 24%"}'::jsonb, 'Pöördmaksustamine, lahtrid 7, 4 ja 5', 'percent', 24, 'purchase', 'foreign_services_received', date '2025-07-01', null, 'KMS § 3 lg 4 p 2 ja § 10 lg 1 — teenuse saamine ettevõtlusega tegelevalt välisriigi isikult, kes ei ole Eestis registreeritud; § 29 lg 3 p 3. Nõukogu direktiivi 2006/112/EÜ artiklid 44 ja 196.', null, null, 220, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kms', null, null, null, null),
|
|
249
|
+
('EE', 'EE-S-00-3RIIK', 'Teenuse käive ühendusevälise riigi ettevõtjale', '{"en":"Supply of services to a business outside the European Union"}'::jsonb, 'Teenus ettevõtlusega tegelevale ühendusevälise riigi isikule: käibe tekkimise koht ei ole Eesti, Eesti käibemaksu ei arvestata; üksnes lahter 3', 'percent', 0, 'sale', 'not_subject', date '2010-01-01', null, 'KMS § 10 lg 4 p 9 — teenuse käibe tekkimise koht ei ole Eesti, kui teenust osutatakse ettevõtlusega tegelevale ühendusevälise riigi isikule (nõukogu direktiivi 2006/112/EÜ artikkel 44); KMS § 1 lg 1 p 3 ja § 15 lg 4 p 1 — selline teenus deklareeritakse Eestis nullmääraga, reaalne maksukohustus lasub saajal välisriigis. Maksu- ja Tolliameti juhend vormi KMD täitmiseks: lahtris 3.1 deklareeritakse üksnes teise liikmesriigi maksukohustuslasele osutatud teenused, ülejäänud nullmääraga teenused üksnes lahtris 3.', 'O', 'VATEX-EU-O', 95, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kmd-taitmine', null, null, null, null),
|
|
247
250
|
('EE', 'EE-S-00-EXP', 'Kauba eksport', '{"en":"Export of goods"}'::jsonb, 'Maksustatav 0% määraga', 'percent', 0, 'sale', 'export', date '2004-05-01', null, 'KMS § 15 lg 3 p 1 — kauba eksport; § 37 lg 8 p 1 viimane lause vabastab ekspordiarve maksumäära aluse viitamise kohustusest', 'G', 'VATEX-EU-G', 100, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kms', null, null, null, null),
|
|
248
251
|
('EE', 'EE-S-00-ICG', 'Kauba ühendusesisene käive', '{"en":"Intra-Community supply of goods"}'::jsonb, 'Maksustatav 0% määraga', 'percent', 0, 'sale', 'intracom_goods', date '2004-05-01', null, 'KMS § 15 lg 3 p 2 ja § 7 lg 1 — kauba ühendusesisene käive; § 15 lg 3¹ seab tingimuseks soetaja kehtiva maksukohustuslasena registreerimise numbri ja ühendusesisese käibe aruandes kajastamise', 'K', 'VATEX-EU-IC', 80, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kms', null, null, null, null),
|
|
249
252
|
('EE', 'EE-S-00-ICS', 'Teenuse käive teise liikmesriigi maksukohustuslasele', '{"en":"Supply of services to a taxable person of another Member State"}'::jsonb, 'Pöördmaksustamine saaja poolt', 'percent', 0, 'sale', 'intracom_services', date '2010-01-01', null, 'KMS § 10 lg 4 p 9 ja § 15 lg 4 p 1 — teenus, mille käibe tekkimise koht ei ole Eesti; nõukogu direktiivi 2006/112/EÜ artiklid 44 ja 196', 'K', 'VATEX-EU-IC', 90, 'vat', true, '{}'::tax_condition[], null, false, false, null, 'kms', null, null, null, null),
|
|
@@ -353,6 +356,8 @@ select t.id,
|
|
|
353
356
|
('EE-P-VS-24', 'credit_note', 'base', 100, null, '1', array['1', '7']::text[], -100, 'EE-KMD', 10),
|
|
354
357
|
('EE-P-VS-24', 'credit_note', 'tax', 100, '2311', '5', array['5']::text[], -100, 'EE-KMD', 20),
|
|
355
358
|
('EE-P-VS-24', 'credit_note', 'tax', -100, '2310', '4', array['4']::text[], -100, 'EE-KMD', 30),
|
|
359
|
+
('EE-S-00-3RIIK', 'invoice', 'base', 100, null, '3', array['3']::text[], 100, 'EE-KMD', 10),
|
|
360
|
+
('EE-S-00-3RIIK', 'credit_note', 'base', 100, null, '3', array['3']::text[], -100, 'EE-KMD', 10),
|
|
356
361
|
('EE-S-00-EXP', 'invoice', 'base', 100, null, '3', array['3', '32']::text[], 100, 'EE-KMD', 10),
|
|
357
362
|
('EE-S-00-EXP', 'credit_note', 'base', 100, null, '3', array['3', '32']::text[], -100, 'EE-KMD', 10),
|
|
358
363
|
('EE-S-00-ICG', 'invoice', 'base', 100, null, '3', array['3', '31', '311']::text[], 100, 'EE-KMD', 10),
|
|
@@ -74,7 +74,7 @@ insert into country_packs
|
|
|
74
74
|
(country, name, version, released_at, schema_min, certification_status,
|
|
75
75
|
certified_by, certified_at, checksum, sources)
|
|
76
76
|
values
|
|
77
|
-
('US', 'United States', '0.11.0', date '2026-10-23', '20261023124650', 'community', null, null, '6cf12c4f0d84bb314292df834de054ba6b2c655cc9e332e5573a65ba93c2814f', '[{"key":"reg-s-x","title":"Regulation S-X — 17 CFR part 210, Form and Content of and Requirements for Financial Statements; rule 4-01 on form, order and terminology, rule 5-02 on balance sheets and rule 5-03 on statements of comprehensive income","publisher":"United States National Archives and Records Administration — Electronic Code of Federal Regulations","url":"https://www.ecfr.gov/current/title-17/part-210","consulted_on":"2026-09-16","kind":"regulation"},{"key":"fasb-asc","title":"FASB Accounting Standards Codification — the single source of authoritative generally accepted accounting principles in the United States, including topic 360 on property, plant and equipment and topic 350 on intangibles","publisher":"Financial Accounting Standards Board","url":"https://asc.fasb.org/","consulted_on":"2026-09-16","kind":"standard"},{"key":"irs-tax-years","title":"Tax years — what a tax year is, and the three an entity may keep: the calendar year, a fiscal year ending on the last day of any month except December, and a 52-53-week year","publisher":"Internal Revenue Service","url":"https://www.irs.gov/businesses/small-businesses-self-employed/tax-years","consulted_on":"2026-09-16","kind":"guidance"},{"key":"irs-pub-538","title":"Publication 538, Accounting Periods and Methods","publisher":"Internal Revenue Service","url":"https://www.irs.gov/publications/p538","consulted_on":"2026-09-16","kind":"guidance"},{"key":"irs-pub-946","title":"Publication 946, How To Depreciate Property — the Modified Accelerated Cost Recovery System, which is a tax computation and never the accounting charge","publisher":"Internal Revenue Service","url":"https://www.irs.gov/publications/p946","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ca-rtc","title":"California Revenue and Taxation Code — division 2, part 1, the Sales and Use Tax Law: section 6051 imposes the sales tax, 6091 the resale certificate presumption, 6201 and 6202 the use tax and the purchaser''s liability for it, 6359 the food exemption, 6381 sales to the United States, 6396 sales shipped out of state, 6452 and 6455 the return and its period, and 7202, 7203 and 7261 the local and district taxes","publisher":"California Legislative Information — Office of Legislative Counsel","url":"https://leginfo.legislature.ca.gov/faces/codesTOCSelected.xhtml?tocCode=RTC","consulted_on":"2026-09-16","kind":"law"},{"key":"ca-rtc-6901","title":"Revenue and Taxation Code, section 6901, Credits and refunds — the Sales and Use Tax Law as the Business Taxes Law Guide, revision 2026, prints it","publisher":"California Department of Tax and Fee Administration — Business Taxes Law Guide","url":"https://www.cdtfa.ca.gov/lawguides/vol1/sutl/6901.html","consulted_on":"2026-09-21","kind":"law"},{"key":"cdtfa-rates","title":"Detailed Description of the Sales & Use Tax Rate — what the 7.25 per cent statewide rate is made of, rate by rate and section by section, and what a district tax adds to it","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/taxes-and-fees/sut-rates-description.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"cdtfa-401-a","title":"CDTFA-401-A, State, Local, and District Sales and Use Tax Return, revision 1-26","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/formspubs/cdtfa401a.pdf","consulted_on":"2026-09-16","kind":"form"},{"key":"cdtfa-401-inst","title":"CDTFA-401-INST, Instructions for Completing CDTFA-401-A, revision 34 (1-26) — which amount goes on which line","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/formspubs/cdtfa401inst.pdf","consulted_on":"2026-09-16","kind":"form"},{"key":"cdtfa-531-a2","title":"CDTFA-531-A2, Schedule A2 — Computation Schedule for District Tax, Long Form, revision 56 (4-26): every district, its reporting code and its rate","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/formspubs/cdtfa531a2.pdf","consulted_on":"2026-09-16","kind":"form"},{"key":"cdtfa-reg-1668","title":"Sales and Use Tax Regulation 1668, Sales for Resale — title 18, division 2, chapter 4, article 16 of the California Code of Regulations","publisher":"California Department of Tax and Fee Administration — Business Taxes Law Guide","url":"https://www.cdtfa.ca.gov/lawguides/vol1/sutr/1668.html","consulted_on":"2026-09-16","kind":"regulation"},{"key":"cdtfa-wayfair","title":"Tax Guide for Out-of-State Retailers — the effect of South Dakota v. Wayfair and of Assembly Bill 147 on the duty to register and collect, with the 500,000 dollar threshold operative 1 April 2019","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/industry/wayfair.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"cdtfa-portal","title":"CDTFA Online Services — where a California sales and use tax return is filed and paid","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/services/","consulted_on":"2026-09-16","kind":"portal"},{"key":"wayfair","title":"South Dakota v. Wayfair, Inc., No. 17-494, decided 21 June 2018 — the slip opinion overruling the physical presence rule of Quill Corp. v. North Dakota","publisher":"Supreme Court of the United States","url":"https://www.supremecourt.gov/opinions/17pdf/17-494_j4el.pdf","consulted_on":"2026-09-16","kind":"law"},{"key":"ny-tb-st-825","title":"Tax Bulletin ST-825 (TB-ST-825), Sales Tax Rates, Additional Sales Taxes, and Fees — the combined rate is the state rate plus the local rate plus the Metropolitan Commuter Transportation District rate, and the jurisdiction of delivery decides the local one","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/pubs_and_bulls/tg_bulletins/st/sales_tax_rates_additional_sales_taxes_and_fees.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ny-pub-718","title":"Publication 718 (2/25), New York State Sales and Use Tax Rates by Jurisdiction, effective 1 March 2025 — the combined rate and the reporting code of every county and city","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/pdf/publications/sales/pub718.pdf","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ny-tb-st-275","title":"Tax Bulletin ST-275 (TB-ST-275), Filing Requirements for Sales and Use Tax Returns — quarterly, part-quarterly and annual filers, and the web filing mandate","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/pubs_and_bulls/tg_bulletins/st/filing_requirements_for_sales_and_use_tax_returns.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ny-forms","title":"Sales tax forms, current periods — form ST-100, the quarterly New York State and Local Sales and Use Tax Return, and the schedules that go with it","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/forms/sales_cur_forms.htm","consulted_on":"2026-09-16","kind":"form"},{"key":"oregon-dor","title":"Sales tax in Oregon — Oregon has no general sales or use tax, and what the Wayfair decision does and does not change for an Oregon buyer","publisher":"Oregon Department of Revenue","url":"https://www.oregon.gov/dor/programs/businesses/pages/sales-tax.aspx","consulted_on":"2026-09-16","kind":"guidance"},{"key":"dbn-alliance","title":"Digital Business Networks Alliance — the open exchange network for business documents in the United States, membership-based and imposed on nobody","publisher":"Digital Business Networks Alliance","url":"https://dbnalliance.org/","consulted_on":"2026-09-16","kind":"standard"},{"key":"irc-11","title":"Internal Revenue Code, 26 U.S.C. § 11 — tax imposed on corporations; subsection (b), the amount of the tax is 21 percent of taxable income","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/11","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-162","title":"Internal Revenue Code, 26 U.S.C. § 162(f) — fines, penalties and other amounts paid to a government, and the exception for restitution and compliance","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/162","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-164","title":"Internal Revenue Code, 26 U.S.C. § 164(a) — taxes allowed as a deduction in the year paid or accrued, including state and local income taxes","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/164","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-172","title":"Internal Revenue Code, 26 U.S.C. § 172 — the net operating loss deduction: carryovers, and the 80 percent limit for years beginning after 31 December 2020","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/172","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-274","title":"Internal Revenue Code, 26 U.S.C. § 274 — disallowance of entertainment, amusement and recreation (subsection (a)) and the 50 percent limit on food and beverages (subsection (n))","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/274","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-275","title":"Internal Revenue Code, 26 U.S.C. § 275(a)(1) — no deduction for federal income taxes","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/275","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-6655","title":"Internal Revenue Code, 26 U.S.C. § 6655 — failure by a corporation to pay estimated income tax: four installments and the required annual payment","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/6655","consulted_on":"2026-10-01","kind":"law"},{"key":"irs-i1120","title":"Instructions for Form 1120 (2025) — Schedule J, Tax Computation and Payment: the income tax is taxable income multiplied by 21 percent","publisher":"Internal Revenue Service","url":"https://www.irs.gov/instructions/i1120","consulted_on":"2026-10-01","kind":"form"},{"key":"cdtfa-reg-1502","title":"Sales and Use Tax Regulation 1502, Computers, Programs, and Data Processing — title 18, division 2, chapter 4, article 2 of the California Code of Regulations; subdivision (f)(1)(D), a prewritten program transferred by remote telecommunications","publisher":"California Department of Tax and Fee Administration — Business Taxes Law Guide","url":"https://www.cdtfa.ca.gov/lawguides/vol1/sutr/1502.html","consulted_on":"2026-10-10","kind":"regulation"}]'::jsonb)
|
|
77
|
+
('US', 'United States', '0.11.0', date '2026-10-23', '20261023124650', 'community', null, null, '85a4ee8fadf5e2cbeac2f5627c96c345a8bf7210a573dca20b5cf7af259e41c8', '[{"key":"reg-s-x","title":"Regulation S-X — 17 CFR part 210, Form and Content of and Requirements for Financial Statements; rule 4-01 on form, order and terminology, rule 5-02 on balance sheets and rule 5-03 on statements of comprehensive income","publisher":"United States National Archives and Records Administration — Electronic Code of Federal Regulations","url":"https://www.ecfr.gov/current/title-17/part-210","consulted_on":"2026-09-16","kind":"regulation"},{"key":"fasb-asc","title":"FASB Accounting Standards Codification — the single source of authoritative generally accepted accounting principles in the United States, including topic 360 on property, plant and equipment and topic 350 on intangibles","publisher":"Financial Accounting Standards Board","url":"https://asc.fasb.org/","consulted_on":"2026-09-16","kind":"standard"},{"key":"irs-tax-years","title":"Tax years — what a tax year is, and the three an entity may keep: the calendar year, a fiscal year ending on the last day of any month except December, and a 52-53-week year","publisher":"Internal Revenue Service","url":"https://www.irs.gov/businesses/small-businesses-self-employed/tax-years","consulted_on":"2026-09-16","kind":"guidance"},{"key":"irs-pub-538","title":"Publication 538, Accounting Periods and Methods","publisher":"Internal Revenue Service","url":"https://www.irs.gov/publications/p538","consulted_on":"2026-09-16","kind":"guidance"},{"key":"irs-pub-946","title":"Publication 946, How To Depreciate Property — the Modified Accelerated Cost Recovery System, which is a tax computation and never the accounting charge","publisher":"Internal Revenue Service","url":"https://www.irs.gov/publications/p946","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ca-rtc","title":"California Revenue and Taxation Code — division 2, part 1, the Sales and Use Tax Law: section 6051 imposes the sales tax, 6091 the resale certificate presumption, 6201 and 6202 the use tax and the purchaser''s liability for it, 6359 the food exemption, 6381 sales to the United States, 6396 sales shipped out of state, 6452 and 6455 the return and its period, and 7202, 7203 and 7261 the local and district taxes","publisher":"California Legislative Information — Office of Legislative Counsel","url":"https://leginfo.legislature.ca.gov/faces/codesTOCSelected.xhtml?tocCode=RTC","consulted_on":"2026-09-16","kind":"law"},{"key":"ca-rtc-6901","title":"Revenue and Taxation Code, section 6901, Credits and refunds — the Sales and Use Tax Law as the Business Taxes Law Guide, revision 2026, prints it","publisher":"California Department of Tax and Fee Administration — Business Taxes Law Guide","url":"https://www.cdtfa.ca.gov/lawguides/vol1/sutl/6901.html","consulted_on":"2026-09-21","kind":"law"},{"key":"cdtfa-rates","title":"Detailed Description of the Sales & Use Tax Rate — what the 7.25 per cent statewide rate is made of, rate by rate and section by section, and what a district tax adds to it","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/taxes-and-fees/sut-rates-description.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"cdtfa-401-a","title":"CDTFA-401-A, State, Local, and District Sales and Use Tax Return, revision 1-26","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/formspubs/cdtfa401a.pdf","consulted_on":"2026-09-16","kind":"form"},{"key":"cdtfa-401-inst","title":"CDTFA-401-INST, Instructions for Completing CDTFA-401-A, revision 34 (1-26) — which amount goes on which line","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/formspubs/cdtfa401inst.pdf","consulted_on":"2026-09-16","kind":"form"},{"key":"cdtfa-531-a2","title":"CDTFA-531-A2, Schedule A2 — Computation Schedule for District Tax, Long Form, revision 56 (4-26): every district, its reporting code and its rate","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/formspubs/cdtfa531a2.pdf","consulted_on":"2026-09-16","kind":"form"},{"key":"cdtfa-reg-1668","title":"Sales and Use Tax Regulation 1668, Sales for Resale — title 18, division 2, chapter 4, article 16 of the California Code of Regulations","publisher":"California Department of Tax and Fee Administration — Business Taxes Law Guide","url":"https://www.cdtfa.ca.gov/lawguides/vol1/sutr/1668.html","consulted_on":"2026-09-16","kind":"regulation"},{"key":"cdtfa-wayfair","title":"Tax Guide for Out-of-State Retailers — the effect of South Dakota v. Wayfair and of Assembly Bill 147 on the duty to register and collect, with the 500,000 dollar threshold operative 1 April 2019","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/industry/wayfair.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"cdtfa-portal","title":"CDTFA Online Services — where a California sales and use tax return is filed and paid","publisher":"California Department of Tax and Fee Administration","url":"https://www.cdtfa.ca.gov/services/","consulted_on":"2026-09-16","kind":"portal"},{"key":"wayfair","title":"South Dakota v. Wayfair, Inc., No. 17-494, decided 21 June 2018 — the slip opinion overruling the physical presence rule of Quill Corp. v. North Dakota","publisher":"Supreme Court of the United States","url":"https://www.supremecourt.gov/opinions/17pdf/17-494_j4el.pdf","consulted_on":"2026-09-16","kind":"law"},{"key":"ny-tb-st-825","title":"Tax Bulletin ST-825 (TB-ST-825), Sales Tax Rates, Additional Sales Taxes, and Fees — the combined rate is the state rate plus the local rate plus the Metropolitan Commuter Transportation District rate, and the jurisdiction of delivery decides the local one","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/pubs_and_bulls/tg_bulletins/st/sales_tax_rates_additional_sales_taxes_and_fees.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ny-pub-718","title":"Publication 718 (2/25), New York State Sales and Use Tax Rates by Jurisdiction, effective 1 March 2025 — the combined rate and the reporting code of every county and city","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/pdf/publications/sales/pub718.pdf","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ny-tb-st-275","title":"Tax Bulletin ST-275 (TB-ST-275), Filing Requirements for Sales and Use Tax Returns — quarterly, part-quarterly and annual filers, and the web filing mandate","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/pubs_and_bulls/tg_bulletins/st/filing_requirements_for_sales_and_use_tax_returns.htm","consulted_on":"2026-09-16","kind":"guidance"},{"key":"ny-forms","title":"Sales tax forms, current periods — form ST-100, the quarterly New York State and Local Sales and Use Tax Return, and the schedules that go with it","publisher":"New York State Department of Taxation and Finance","url":"https://www.tax.ny.gov/forms/sales_cur_forms.htm","consulted_on":"2026-09-16","kind":"form"},{"key":"oregon-dor","title":"Sales tax in Oregon — Oregon has no general sales or use tax, and what the Wayfair decision does and does not change for an Oregon buyer","publisher":"Oregon Department of Revenue","url":"https://www.oregon.gov/dor/programs/businesses/pages/sales-tax.aspx","consulted_on":"2026-09-16","kind":"guidance"},{"key":"dbn-alliance","title":"Digital Business Networks Alliance — the open exchange network for business documents in the United States, membership-based and imposed on nobody","publisher":"Digital Business Networks Alliance","url":"https://dbnalliance.org/","consulted_on":"2026-09-16","kind":"standard"},{"key":"irc-11","title":"Internal Revenue Code, 26 U.S.C. § 11 — tax imposed on corporations; subsection (b), the amount of the tax is 21 percent of taxable income","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/11","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-162","title":"Internal Revenue Code, 26 U.S.C. § 162(f) — fines, penalties and other amounts paid to a government, and the exception for restitution and compliance","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/162","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-164","title":"Internal Revenue Code, 26 U.S.C. § 164(a) — taxes allowed as a deduction in the year paid or accrued, including state and local income taxes","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/164","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-172","title":"Internal Revenue Code, 26 U.S.C. § 172 — the net operating loss deduction: carryovers, and the 80 percent limit for years beginning after 31 December 2020","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/172","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-274","title":"Internal Revenue Code, 26 U.S.C. § 274 — disallowance of entertainment, amusement and recreation (subsection (a)) and the 50 percent limit on food and beverages (subsection (n))","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/274","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-275","title":"Internal Revenue Code, 26 U.S.C. § 275(a)(1) — no deduction for federal income taxes","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/275","consulted_on":"2026-10-01","kind":"law"},{"key":"irc-6655","title":"Internal Revenue Code, 26 U.S.C. § 6655 — failure by a corporation to pay estimated income tax: four installments and the required annual payment","publisher":"Legal Information Institute, Cornell Law School — United States Code, as amended through Pub. L. 119-21","url":"https://www.law.cornell.edu/uscode/text/26/6655","consulted_on":"2026-10-01","kind":"law"},{"key":"irs-i1120","title":"Instructions for Form 1120 (2025) — Schedule J, Tax Computation and Payment: the income tax is taxable income multiplied by 21 percent","publisher":"Internal Revenue Service","url":"https://www.irs.gov/instructions/i1120","consulted_on":"2026-10-01","kind":"form"},{"key":"cdtfa-reg-1502","title":"Sales and Use Tax Regulation 1502, Computers, Programs, and Data Processing — title 18, division 2, chapter 4, article 2 of the California Code of Regulations; subdivision (f)(1)(D), a prewritten program transferred by remote telecommunications","publisher":"California Department of Tax and Fee Administration — Business Taxes Law Guide","url":"https://www.cdtfa.ca.gov/lawguides/vol1/sutr/1502.html","consulted_on":"2026-10-10","kind":"regulation"}]'::jsonb)
|
|
78
78
|
on conflict (country) do update set
|
|
79
79
|
name = excluded.name,
|
|
80
80
|
version = excluded.version,
|