saft 0.1.1

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.
@@ -0,0 +1,31 @@
1
+ Code;DescriptionNOB;DescriptionENG;TaxRate;Compensation
2
+ 0;Ingen merverdiavgiftsbehandling (anskaffelser);No VAT treatment;;TRUE
3
+ 1;Fradragsberettiget innenlands inngående merverdiavgift;Input VAT deductible (domestic);Regular rate;TRUE
4
+ 11;Fradragsberettiget innenlands inngående merverdiavgift;Input VAT deductible (domestic);Reduced rate, middle;TRUE
5
+ 12;Fradragsberettiget innenlands inngående merverdiavgift;Input VAT deductible (domestic);Reduced rate, raw fish;
6
+ 13;Fradragsberettiget innenlands inngående merverdiavgift;Input VAT deductible (domestic);Reduced rate, low;TRUE
7
+ 14;Fradragsberettiget innførselsmerverdiavgift;Input VAT deductible (payed on import);Regular rate;TRUE
8
+ 15;Fradragsberettiget innførselsmerverdiavgift;Input VAT deductible (payed on import);Reduced rate, middle;TRUE
9
+ 20;Kostnad ved innførsel av varer, ingen merverdiavgiftsbehandling;No VAT treatment;;TRUE
10
+ 21;Kostnad ved innførsel av varer;Basis on import of goods;Regular rate;TRUE
11
+ 22;Kostnad ved innførsel av varer;Basis on import of goods;Reduced rate, middle;TRUE
12
+ 3;Utgående merverdiavgift;Output VAT;Regular rate;
13
+ 31;Utgående merverdiavgift;Output VAT;Reduced rate, middle;
14
+ 32;Utgående merverdiavgift;Output VAT;Reduced rate, raw fish;
15
+ 33;Utgående merverdiavgift;Output VAT;Reduced rate, low;
16
+ 5;Innenlands omsetning og uttak fritatt for merverdiavgift;No output VAT;Zero rate;
17
+ 51;Innenlandsk omsetning med omvendt avgiftplikt;Domestic sales of reverce charge /VAT obligation;Zero rate;
18
+ 52;Utførsel av varer og tjenester;Export of goods and services;Zero rate;
19
+ 6;Omsetning og uttak utenfor merverdiavgiftsloven;Not liable to VAT treatment, turnover and withdrawals outside the scope of the VAT legislation;;
20
+ 7;Ingen merverdiavgiftsbehandling (inntekter);No VAT treatment - no turnover according to the VAT legislation;;
21
+ 81;Grunnlag innførsel av varer med fradragsrett for innførselsmerverdiavgift;Importation of goods, VAT deductible;Regular rate;TRUE
22
+ 82;Grunnlag innførsel av varer uten fradragsrett for innførselsmerverdiavgift;Importation of goods, without deduction of VAT;Regular rate;TRUE
23
+ 83;Grunnlag innførsel av varer med fradragsrett for innførselsmerverdiavgift;Importation of goods, VAT deductible;Reduced rate, middle;TRUE
24
+ 84;Grunnlag innførsel av varer uten fradragsrett for innførselsmerverdiavgift;Importation of goods, without deduction of VAT;Reduced rate, middle;TRUE
25
+ 85;Grunnlag innførsel av varer som det ikke skal beregnes merverdiavgift av;Importation of goods, not applicable for VAT;Zero rate;TRUE
26
+ 86;Tjenester kjøpt fra utlandet med fradragsrett for merverdiavgift;Services purchased from abroad, VAT deductible;Regular rate;TRUE
27
+ 87;Tjenester kjøpt fra utlandet uten fradragsrett for merverdiavgift;Services purchased from abroad, without deduction of VAT;Regular rate;TRUE
28
+ 88;Tjenester kjøpt fra utlandet med fradragsrett for merverdiavgift;Services purchased from abroad, VAT deductible;Reduced rate, low;TRUE
29
+ 89;Tjenester kjøpt fra utlandet uten fradragsrett for merverdiavgift;Services purchased from abroad, without deduction of VAT;Reduced rate, low;TRUE
30
+ 91;Kjøp av klimakvoter eller gull med fradragsrett for merverdiavgift;Purchase of emissions trading or gold, VAT deductible;Regular rate;TRUE
31
+ 92;Kjøp av klimakvoter eller gull uten fradragsrett for merverdiavgift;Purchase of emissions trading or gold, without deduction of VAT;Regular rate;TRUE
@@ -0,0 +1,199 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <StandardTaxCodes xsi:noNamespaceSchemaLocation="Standard_Tax_Codes.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
+ <TaxCode>
4
+ <ID>0</ID>
5
+ <Description ISOLanguageCode="NOB">Ingen merverdiavgiftsbehandling (anskaffelser)</Description>
6
+ <Description ISOLanguageCode="ENG">No VAT treatment</Description>
7
+ <Compensation>true</Compensation>
8
+ </TaxCode>
9
+ <TaxCode>
10
+ <ID>1</ID>
11
+ <Description ISOLanguageCode="NOB">Fradragsberettiget innenlands inngående merverdiavgift</Description>
12
+ <Description ISOLanguageCode="ENG">Input VAT deductible (domestic)</Description>
13
+ <TaxRate>Regular rate</TaxRate>
14
+ <Compensation>true</Compensation>
15
+ </TaxCode>
16
+ <TaxCode>
17
+ <ID>11</ID>
18
+ <Description ISOLanguageCode="NOB">Fradragsberettiget innenlands inngående merverdiavgift</Description>
19
+ <Description ISOLanguageCode="ENG">Input VAT deductible (domestic)</Description>
20
+ <TaxRate>Reduced rate, middle</TaxRate>
21
+ <Compensation>true</Compensation>
22
+ </TaxCode>
23
+ <TaxCode>
24
+ <ID>12</ID>
25
+ <Description ISOLanguageCode="NOB">Fradragsberettiget innenlands inngående merverdiavgift</Description>
26
+ <Description ISOLanguageCode="ENG">Input VAT deductible (domestic)</Description>
27
+ <TaxRate>Reduced rate, raw fish</TaxRate>
28
+ </TaxCode>
29
+ <TaxCode>
30
+ <ID>13</ID>
31
+ <Description ISOLanguageCode="NOB">Fradragsberettiget innenlands inngående merverdiavgift</Description>
32
+ <Description ISOLanguageCode="ENG">Input VAT deductible (domestic)</Description>
33
+ <TaxRate>Reduced rate, low</TaxRate>
34
+ <Compensation>true</Compensation>
35
+ </TaxCode>
36
+ <TaxCode>
37
+ <ID>14</ID>
38
+ <Description ISOLanguageCode="NOB">Fradragsberettiget innførselsmerverdiavgift</Description>
39
+ <Description ISOLanguageCode="ENG">Input VAT deductible (payed on import)</Description>
40
+ <TaxRate>Regular rate</TaxRate>
41
+ <Compensation>true</Compensation>
42
+ </TaxCode>
43
+ <TaxCode>
44
+ <ID>15</ID>
45
+ <Description ISOLanguageCode="NOB">Fradragsberettiget innførselsmerverdiavgift</Description>
46
+ <Description ISOLanguageCode="ENG">Input VAT deductible (payed on import)</Description>
47
+ <TaxRate>Reduced rate, middle</TaxRate>
48
+ <Compensation>true</Compensation>
49
+ </TaxCode>
50
+ <TaxCode>
51
+ <ID>20</ID>
52
+ <Description ISOLanguageCode="NOB">Kostnad ved innførsel av varer, ingen merverdiavgiftsbehandling</Description>
53
+ <Description ISOLanguageCode="ENG">No VAT treatment</Description>
54
+ <Compensation>true</Compensation>
55
+ </TaxCode>
56
+ <TaxCode>
57
+ <ID>21</ID>
58
+ <Description ISOLanguageCode="NOB">Kostnad ved innførsel av varer</Description>
59
+ <Description ISOLanguageCode="ENG">Basis on import of goods</Description>
60
+ <TaxRate>Regular rate</TaxRate>
61
+ <Compensation>true</Compensation>
62
+ </TaxCode>
63
+ <TaxCode>
64
+ <ID>22</ID>
65
+ <Description ISOLanguageCode="NOB">Kostnad ved innførsel av varer</Description>
66
+ <Description ISOLanguageCode="ENG">Basis on import of goods</Description>
67
+ <TaxRate>Reduced rate, middle</TaxRate>
68
+ <Compensation>true</Compensation>
69
+ </TaxCode>
70
+ <TaxCode>
71
+ <ID>3</ID>
72
+ <Description ISOLanguageCode="NOB">Utgående merverdiavgift</Description>
73
+ <Description ISOLanguageCode="ENG">Output VAT</Description>
74
+ <TaxRate>Regular rate</TaxRate>
75
+ </TaxCode>
76
+ <TaxCode>
77
+ <ID>31</ID>
78
+ <Description ISOLanguageCode="NOB">Utgående merverdiavgift</Description>
79
+ <Description ISOLanguageCode="ENG">Output VAT</Description>
80
+ <TaxRate>Reduced rate, middle</TaxRate>
81
+ </TaxCode>
82
+ <TaxCode>
83
+ <ID>32</ID>
84
+ <Description ISOLanguageCode="NOB">Utgående merverdiavgift</Description>
85
+ <Description ISOLanguageCode="ENG">Output VAT</Description>
86
+ <TaxRate>Reduced rate, raw fish</TaxRate>
87
+ </TaxCode>
88
+ <TaxCode>
89
+ <ID>33</ID>
90
+ <Description ISOLanguageCode="NOB">Utgående merverdiavgift</Description>
91
+ <Description ISOLanguageCode="ENG">Output VAT</Description>
92
+ <TaxRate>Reduced rate, low</TaxRate>
93
+ </TaxCode>
94
+ <TaxCode>
95
+ <ID>5</ID>
96
+ <Description ISOLanguageCode="NOB">Innenlands omsetning og uttak fritatt for merverdiavgift</Description>
97
+ <Description ISOLanguageCode="ENG">No output VAT</Description>
98
+ <TaxRate>Zero rate</TaxRate>
99
+ </TaxCode>
100
+ <TaxCode>
101
+ <ID>51</ID>
102
+ <Description ISOLanguageCode="NOB">Innenlandsk omsetning med omvendt avgiftplikt</Description>
103
+ <Description ISOLanguageCode="ENG">Domestic sales of reverce charge /VAT obligation</Description>
104
+ <TaxRate>Zero rate</TaxRate>
105
+ </TaxCode>
106
+ <TaxCode>
107
+ <ID>52</ID>
108
+ <Description ISOLanguageCode="NOB">Utførsel av varer og tjenester</Description>
109
+ <Description ISOLanguageCode="ENG">Export of goods and services</Description>
110
+ <TaxRate>Zero rate</TaxRate>
111
+ </TaxCode>
112
+ <TaxCode>
113
+ <ID>6</ID>
114
+ <Description ISOLanguageCode="NOB">Omsetning og uttak utenfor merverdiavgiftsloven</Description>
115
+ <Description ISOLanguageCode="ENG">Not liable to VAT treatment, turnover and withdrawals outside the scope of the VAT legislation</Description>
116
+ </TaxCode>
117
+ <TaxCode>
118
+ <ID>7</ID>
119
+ <Description ISOLanguageCode="NOB">Ingen merverdiavgiftsbehandling (inntekter)</Description>
120
+ <Description ISOLanguageCode="ENG">No VAT treatment - no turnover according to the VAT legislation</Description>
121
+ </TaxCode>
122
+ <TaxCode>
123
+ <ID>81</ID>
124
+ <Description ISOLanguageCode="NOB">Grunnlag innførsel av varer med fradragsrett for innførselsmerverdiavgift</Description>
125
+ <Description ISOLanguageCode="ENG">Importation of goods, VAT deductible</Description>
126
+ <TaxRate>Regular rate</TaxRate>
127
+ <Compensation>true</Compensation>
128
+ </TaxCode>
129
+ <TaxCode>
130
+ <ID>82</ID>
131
+ <Description ISOLanguageCode="NOB">Grunnlag innførsel av varer uten fradragsrett for innførselsmerverdiavgift</Description>
132
+ <Description ISOLanguageCode="ENG">Importation of goods, without deduction of VAT</Description>
133
+ <TaxRate>Regular rate</TaxRate>
134
+ <Compensation>true</Compensation>
135
+ </TaxCode>
136
+ <TaxCode>
137
+ <ID>83</ID>
138
+ <Description ISOLanguageCode="NOB">Grunnlag innførsel av varer med fradragsrett for innførselsmerverdiavgift</Description>
139
+ <Description ISOLanguageCode="ENG">Importation of goods, VAT deductible</Description>
140
+ <TaxRate>Reduced rate, middle</TaxRate>
141
+ <Compensation>true</Compensation>
142
+ </TaxCode>
143
+ <TaxCode>
144
+ <ID>84</ID>
145
+ <Description ISOLanguageCode="NOB">Grunnlag innførsel av varer uten fradragsrett for innførselsmerverdiavgift</Description>
146
+ <Description ISOLanguageCode="ENG">Importation of goods, without deduction of VAT</Description>
147
+ <TaxRate>Reduced rate, middle</TaxRate>
148
+ <Compensation>true</Compensation>
149
+ </TaxCode>
150
+ <TaxCode>
151
+ <ID>85</ID>
152
+ <Description ISOLanguageCode="NOB">Grunnlag innførsel av varer som det ikke skal beregnes merverdiavgift av</Description>
153
+ <Description ISOLanguageCode="ENG">Importation of goods, not applicable for VAT</Description>
154
+ <TaxRate>Zero rate</TaxRate>
155
+ <Compensation>true</Compensation>
156
+ </TaxCode>
157
+ <TaxCode>
158
+ <ID>86</ID>
159
+ <Description ISOLanguageCode="NOB">Tjenester kjøpt fra utlandet med fradragsrett for merverdiavgift</Description>
160
+ <Description ISOLanguageCode="ENG">Services purchased from abroad, VAT deductible</Description>
161
+ <TaxRate>Regular rate</TaxRate>
162
+ <Compensation>true</Compensation>
163
+ </TaxCode>
164
+ <TaxCode>
165
+ <ID>87</ID>
166
+ <Description ISOLanguageCode="NOB">Tjenester kjøpt fra utlandet uten fradragsrett for merverdiavgift</Description>
167
+ <Description ISOLanguageCode="ENG">Services purchased from abroad, without deduction of VAT</Description>
168
+ <TaxRate>Regular rate</TaxRate>
169
+ <Compensation>true</Compensation>
170
+ </TaxCode>
171
+ <TaxCode>
172
+ <ID>88</ID>
173
+ <Description ISOLanguageCode="NOB">Tjenester kjøpt fra utlandet med fradragsrett for merverdiavgift</Description>
174
+ <Description ISOLanguageCode="ENG">Services purchased from abroad, VAT deductible</Description>
175
+ <TaxRate>Reduced rate, low</TaxRate>
176
+ <Compensation>true</Compensation>
177
+ </TaxCode>
178
+ <TaxCode>
179
+ <ID>89</ID>
180
+ <Description ISOLanguageCode="NOB">Tjenester kjøpt fra utlandet uten fradragsrett for merverdiavgift</Description>
181
+ <Description ISOLanguageCode="ENG">Services purchased from abroad, without deduction of VAT</Description>
182
+ <TaxRate>Reduced rate, low</TaxRate>
183
+ <Compensation>true</Compensation>
184
+ </TaxCode>
185
+ <TaxCode>
186
+ <ID>91</ID>
187
+ <Description ISOLanguageCode="NOB">Kjøp av klimakvoter eller gull med fradragsrett for merverdiavgift</Description>
188
+ <Description ISOLanguageCode="ENG">Purchase of emissions trading or gold, VAT deductible</Description>
189
+ <TaxRate>Regular rate</TaxRate>
190
+ <Compensation>true</Compensation>
191
+ </TaxCode>
192
+ <TaxCode>
193
+ <ID>92</ID>
194
+ <Description ISOLanguageCode="NOB">Kjøp av klimakvoter eller gull uten fradragsrett for merverdiavgift</Description>
195
+ <Description ISOLanguageCode="ENG">Purchase of emissions trading or gold, without deduction of VAT</Description>
196
+ <TaxRate>Regular rate</TaxRate>
197
+ <Compensation>true</Compensation>
198
+ </TaxCode>
199
+ </StandardTaxCodes>
@@ -0,0 +1,67 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- edited with XMLSpy v2014 sp1 (x64) (http://www.altova.com) by Geir Ove Klefsåsvold (Visma Software International AS) -->
3
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" elementFormDefault="qualified" attributeFormDefault="unqualified" vc:minVersion="1.1">
4
+ <xs:element name="StandardTaxCodes">
5
+ <xs:annotation>
6
+ <xs:documentation>Standard Tax Codes for use in Norwegian SAF-T</xs:documentation>
7
+ </xs:annotation>
8
+ <xs:complexType>
9
+ <xs:sequence>
10
+ <xs:element name="TaxCode" maxOccurs="unbounded">
11
+ <xs:annotation>
12
+ <xs:documentation>Tax Codes</xs:documentation>
13
+ </xs:annotation>
14
+ <xs:complexType>
15
+ <xs:sequence>
16
+ <xs:element name="ID" type="xs:string">
17
+ <xs:annotation>
18
+ <xs:documentation>Standard Tax Code</xs:documentation>
19
+ </xs:annotation>
20
+ </xs:element>
21
+ <xs:element name="Description" maxOccurs="unbounded">
22
+ <xs:annotation>
23
+ <xs:documentation>Description of the stadard Tax Code</xs:documentation>
24
+ </xs:annotation>
25
+ <xs:complexType>
26
+ <xs:simpleContent>
27
+ <xs:extension base="xs:string">
28
+ <xs:attribute name="ISOLanguageCode">
29
+ <xs:annotation>
30
+ <xs:documentation>Three-letter language code according to ISO 639-3 standared. Example: NOB for Norwegian.</xs:documentation>
31
+ </xs:annotation>
32
+ </xs:attribute>
33
+ </xs:extension>
34
+ </xs:simpleContent>
35
+ </xs:complexType>
36
+ </xs:element>
37
+ <xs:element name="TaxRate" type="TaxRate" minOccurs="0">
38
+ <xs:annotation>
39
+ <xs:documentation>Tax rate.</xs:documentation>
40
+ </xs:annotation>
41
+ </xs:element>
42
+ <xs:element name="Compensation" type="xs:boolean" minOccurs="0">
43
+ <xs:annotation>
44
+ <xs:documentation>Indicates if the tax code might apply to/be appropriate for compensation, depending on the specific circumstances.</xs:documentation>
45
+ </xs:annotation>
46
+ </xs:element>
47
+ </xs:sequence>
48
+ </xs:complexType>
49
+ </xs:element>
50
+ </xs:sequence>
51
+ </xs:complexType>
52
+ </xs:element>
53
+ <xs:simpleType name="TaxRate">
54
+ <xs:annotation>
55
+ <xs:documentation>Tax rates.</xs:documentation>
56
+ </xs:annotation>
57
+ <xs:restriction base="xs:string">
58
+ <xs:enumeration value="Regular rate"/>
59
+ <xs:enumeration value="Reduced rate, low"/>
60
+ <xs:enumeration value="Reduced rate, middle"/>
61
+ <xs:enumeration value="Reduced rate, foodstuffs"/>
62
+ <xs:enumeration value="Reduced rate, raw fish"/>
63
+ <xs:enumeration value="Reduced rate"/>
64
+ <xs:enumeration value="Zero rate"/>
65
+ </xs:restriction>
66
+ </xs:simpleType>
67
+ </xs:schema>
metadata ADDED
@@ -0,0 +1,121 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: saft
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Dodo developer
8
+ - Simon Toivo Telhaug
9
+ autorequire:
10
+ bindir: exe
11
+ cert_chain: []
12
+ date: 2022-12-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: zeitwerk
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '2.5'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '2.5'
28
+ - !ruby/object:Gem::Dependency
29
+ name: dry-struct
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.4'
35
+ type: :runtime
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.4'
42
+ - !ruby/object:Gem::Dependency
43
+ name: nokogiri
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '1.13'
49
+ type: :runtime
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.13'
56
+ description:
57
+ email:
58
+ - simon.toivo.telhaug@dev.dodo.no
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gemspec"
64
+ - ".rspec"
65
+ - ".rubocop.yml"
66
+ - ".rubocop_strict.yml"
67
+ - ".ruby-gemset"
68
+ - CHANGELOG.md
69
+ - Gemfile
70
+ - Rakefile
71
+ - docs/Norwegian SAF-T Financial data.pdf
72
+ - docs/Norwegian SAF-T Standard VAT:Tax codes.pdf
73
+ - docs/saf-t v2 xsd by oecd.pdf
74
+ - lib/saft.rb
75
+ - lib/saft/v2.rb
76
+ - lib/saft/v2/html.css
77
+ - lib/saft/v2/html.rb
78
+ - lib/saft/v2/html_dist.css
79
+ - lib/saft/v2/norway.rb
80
+ - lib/saft/v2/parse.rb
81
+ - lib/saft/v2/scribe.rb
82
+ - lib/saft/v2/types.rb
83
+ - lib/saft/v2/xsd_validate.rb
84
+ - lib/saft/version.rb
85
+ - package.json
86
+ - pnpm-lock.yaml
87
+ - readme.md
88
+ - tailwind.config.js
89
+ - vendor/SAF-T_Financial_Schema_NO_1.10.xsd
90
+ - vendor/norway/general_ledger_standard_accounts.xsd
91
+ - vendor/norway/general_ledger_standard_accounts_2_character.csv
92
+ - vendor/norway/general_ledger_standard_accounts_2_character.xml
93
+ - vendor/norway/general_ledger_standard_accounts_4_character.csv
94
+ - vendor/norway/general_ledger_standard_accounts_4_character.xml
95
+ - vendor/norway/standard_tax_codes.csv
96
+ - vendor/norway/standard_tax_codes.xml
97
+ - vendor/norway/standard_tax_codes.xsd
98
+ homepage:
99
+ licenses:
100
+ - MIT
101
+ metadata: {}
102
+ post_install_message:
103
+ rdoc_options: []
104
+ require_paths:
105
+ - lib
106
+ required_ruby_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: 2.6.0
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: '0'
116
+ requirements: []
117
+ rubygems_version: 3.2.32
118
+ signing_key:
119
+ specification_version: 4
120
+ summary: SAF-T parser and writer
121
+ test_files: []