money_xml_validator 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +24 -0
  3. data/README.md +17 -7
  4. data/lib/money_xml_validator.rb +1 -1
  5. data/lib/money_xml_validator/money_xsd/README.md +10 -2
  6. data/lib/money_xml_validator/money_xsd/examples/basic_invoice.xml +56 -0
  7. data/lib/money_xml_validator/money_xsd/examples/credit_note.xml +58 -0
  8. data/lib/money_xml_validator/money_xsd/{Dochazka → schemas/Dochazka}/Dochazka.xsd +24 -20
  9. data/lib/money_xml_validator/money_xsd/{Dochazka → schemas/Dochazka}/Zamestnanci.xsd +13 -7
  10. data/lib/money_xml_validator/money_xsd/{EPO → schemas/EPO}/EPO_Error.xsd +11 -11
  11. data/lib/money_xml_validator/money_xsd/{EPO → schemas/EPO}/EPO_Success.xsd +1 -1
  12. data/lib/money_xml_validator/money_xsd/schemas/Readme.txt +4 -0
  13. data/lib/money_xml_validator/money_xsd/{_Document.xsd → schemas/_Document.xsd} +35 -51
  14. data/lib/money_xml_validator/money_xsd/{_Export.xsd → schemas/_Export.xsd} +7 -3
  15. data/lib/money_xml_validator/money_xsd/schemas/_Import.xsd +176 -0
  16. data/lib/money_xml_validator/money_xsd/{_Report.xsd → schemas/_Report.xsd} +41 -134
  17. data/lib/money_xml_validator/money_xsd/schemas/__Comtypes.xsd +742 -0
  18. data/lib/money_xml_validator/money_xsd/{__Faktura.xsd → schemas/__Faktura.xsd} +577 -566
  19. data/lib/money_xml_validator/money_xsd/{__Firma.xsd → schemas/__Firma.xsd} +197 -96
  20. data/lib/money_xml_validator/money_xsd/schemas/__IntDokl.xsd +427 -0
  21. data/lib/money_xml_validator/money_xsd/{__InvDokl.xsd → schemas/__InvDokl.xsd} +11 -8
  22. data/lib/money_xml_validator/money_xsd/{__Mzda.xsd → schemas/__Mzda.xsd} +10 -6
  23. data/lib/money_xml_validator/money_xsd/schemas/__Objedn.xsd +896 -0
  24. data/lib/money_xml_validator/money_xsd/schemas/__Seznamy.xsd +1755 -0
  25. data/lib/money_xml_validator/money_xsd/schemas/__SklDokl.xsd +685 -0
  26. data/lib/money_xml_validator/money_xsd/{__UcDokl.xsd → schemas/__UcDokl.xsd} +1019 -925
  27. data/lib/money_xml_validator/money_xsd/{__Uhrady.xsd → schemas/__Uhrady.xsd} +92 -92
  28. data/lib/money_xml_validator/money_xsd/{__Vyroba.xsd → schemas/__Vyroba.xsd} +0 -0
  29. data/lib/money_xml_validator/money_xsd/{__Zakazka.xsd → schemas/__Zakazka.xsd} +5 -31
  30. data/lib/money_xml_validator/money_xsd/{__Zamestnanec.xsd → schemas/__Zamestnanec.xsd} +6 -6
  31. data/lib/money_xml_validator/money_xsd/schemas/__Zasoba.xsd +1319 -0
  32. data/money_xml_validator.gemspec +1 -1
  33. metadata +30 -28
  34. data/lib/money_xml_validator/money_xsd/_Import.xsd +0 -94
  35. data/lib/money_xml_validator/money_xsd/__Comtypes.xsd +0 -706
  36. data/lib/money_xml_validator/money_xsd/__IntDokl.xsd +0 -397
  37. data/lib/money_xml_validator/money_xsd/__Objedn.xsd +0 -865
  38. data/lib/money_xml_validator/money_xsd/__Seznamy.xsd +0 -1721
  39. data/lib/money_xml_validator/money_xsd/__SklDokl.xsd +0 -674
  40. data/lib/money_xml_validator/money_xsd/__Zasoba.xsd +0 -1317
  41. data/lib/money_xml_validator/money_xsd/all_schemas.zip +0 -0
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "money_xml_validator"
6
- spec.version = '0.0.1'
6
+ spec.version = '1.0.0'
7
7
  spec.authors = ["Premysl Donat"]
8
8
  spec.email = ["pdonat@seznam.cz"]
9
9
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: money_xml_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Premysl Donat
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-05 00:00:00.000000000 Z
11
+ date: 2019-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -64,37 +64,40 @@ files:
64
64
  - ".rspec"
65
65
  - ".travis.yml"
66
66
  - Gemfile
67
+ - Gemfile.lock
67
68
  - LICENSE.txt
68
69
  - README.md
69
70
  - Rakefile
70
71
  - bin/console
71
72
  - bin/setup
72
73
  - lib/money_xml_validator.rb
73
- - lib/money_xml_validator/money_xsd/Dochazka/Dochazka.xsd
74
- - lib/money_xml_validator/money_xsd/Dochazka/Zamestnanci.xsd
75
- - lib/money_xml_validator/money_xsd/EPO/EPO_Error.xsd
76
- - lib/money_xml_validator/money_xsd/EPO/EPO_Success.xsd
77
74
  - lib/money_xml_validator/money_xsd/README.md
78
- - lib/money_xml_validator/money_xsd/_Document.xsd
79
- - lib/money_xml_validator/money_xsd/_Export.xsd
80
- - lib/money_xml_validator/money_xsd/_Import.xsd
81
- - lib/money_xml_validator/money_xsd/_Report.xsd
82
- - lib/money_xml_validator/money_xsd/__Comtypes.xsd
83
- - lib/money_xml_validator/money_xsd/__Faktura.xsd
84
- - lib/money_xml_validator/money_xsd/__Firma.xsd
85
- - lib/money_xml_validator/money_xsd/__IntDokl.xsd
86
- - lib/money_xml_validator/money_xsd/__InvDokl.xsd
87
- - lib/money_xml_validator/money_xsd/__Mzda.xsd
88
- - lib/money_xml_validator/money_xsd/__Objedn.xsd
89
- - lib/money_xml_validator/money_xsd/__Seznamy.xsd
90
- - lib/money_xml_validator/money_xsd/__SklDokl.xsd
91
- - lib/money_xml_validator/money_xsd/__UcDokl.xsd
92
- - lib/money_xml_validator/money_xsd/__Uhrady.xsd
93
- - lib/money_xml_validator/money_xsd/__Vyroba.xsd
94
- - lib/money_xml_validator/money_xsd/__Zakazka.xsd
95
- - lib/money_xml_validator/money_xsd/__Zamestnanec.xsd
96
- - lib/money_xml_validator/money_xsd/__Zasoba.xsd
97
- - lib/money_xml_validator/money_xsd/all_schemas.zip
75
+ - lib/money_xml_validator/money_xsd/examples/basic_invoice.xml
76
+ - lib/money_xml_validator/money_xsd/examples/credit_note.xml
77
+ - lib/money_xml_validator/money_xsd/schemas/Dochazka/Dochazka.xsd
78
+ - lib/money_xml_validator/money_xsd/schemas/Dochazka/Zamestnanci.xsd
79
+ - lib/money_xml_validator/money_xsd/schemas/EPO/EPO_Error.xsd
80
+ - lib/money_xml_validator/money_xsd/schemas/EPO/EPO_Success.xsd
81
+ - lib/money_xml_validator/money_xsd/schemas/Readme.txt
82
+ - lib/money_xml_validator/money_xsd/schemas/_Document.xsd
83
+ - lib/money_xml_validator/money_xsd/schemas/_Export.xsd
84
+ - lib/money_xml_validator/money_xsd/schemas/_Import.xsd
85
+ - lib/money_xml_validator/money_xsd/schemas/_Report.xsd
86
+ - lib/money_xml_validator/money_xsd/schemas/__Comtypes.xsd
87
+ - lib/money_xml_validator/money_xsd/schemas/__Faktura.xsd
88
+ - lib/money_xml_validator/money_xsd/schemas/__Firma.xsd
89
+ - lib/money_xml_validator/money_xsd/schemas/__IntDokl.xsd
90
+ - lib/money_xml_validator/money_xsd/schemas/__InvDokl.xsd
91
+ - lib/money_xml_validator/money_xsd/schemas/__Mzda.xsd
92
+ - lib/money_xml_validator/money_xsd/schemas/__Objedn.xsd
93
+ - lib/money_xml_validator/money_xsd/schemas/__Seznamy.xsd
94
+ - lib/money_xml_validator/money_xsd/schemas/__SklDokl.xsd
95
+ - lib/money_xml_validator/money_xsd/schemas/__UcDokl.xsd
96
+ - lib/money_xml_validator/money_xsd/schemas/__Uhrady.xsd
97
+ - lib/money_xml_validator/money_xsd/schemas/__Vyroba.xsd
98
+ - lib/money_xml_validator/money_xsd/schemas/__Zakazka.xsd
99
+ - lib/money_xml_validator/money_xsd/schemas/__Zamestnanec.xsd
100
+ - lib/money_xml_validator/money_xsd/schemas/__Zasoba.xsd
98
101
  - money_xml_validator.gemspec
99
102
  homepage: https://github.com/Masa331/money_xml_validator
100
103
  licenses:
@@ -115,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
118
  - !ruby/object:Gem::Version
116
119
  version: '0'
117
120
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.6.14.1
121
+ rubygems_version: 3.1.2
120
122
  signing_key:
121
123
  specification_version: 4
122
124
  summary: Simple gem with XSD validator for Money XML
@@ -1,94 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
- <xs:element name="Import">
4
- <xs:annotation>
5
- <xs:documentation>Instrukce pro řízení importu</xs:documentation>
6
- </xs:annotation>
7
- <xs:complexType>
8
- <xs:sequence>
9
- <xs:element name="Entity" type="entityType" minOccurs="0" maxOccurs="unbounded">
10
- <xs:annotation>
11
- <xs:documentation>Jednotlivé importované entity</xs:documentation>
12
- </xs:annotation>
13
- </xs:element>
14
- </xs:sequence>
15
- </xs:complexType>
16
- </xs:element>
17
- <xs:complexType name="instructionsType">
18
- <xs:sequence>
19
- <xs:element name="Key">
20
- <xs:annotation>
21
- <xs:documentation>Definice spojovacího klíče</xs:documentation>
22
- </xs:annotation>
23
- <xs:complexType>
24
- <xs:sequence>
25
- <xs:element name="Field" maxOccurs="unbounded">
26
- <xs:annotation>
27
- <xs:documentation>Identifikace údaje</xs:documentation>
28
- </xs:annotation>
29
- <xs:complexType>
30
- <xs:attribute name="name" type="xs:string" use="required"/>
31
- </xs:complexType>
32
- </xs:element>
33
- </xs:sequence>
34
- <xs:attribute name="auto" type="xs:boolean" use="optional" default="0"/>
35
- <xs:attribute name="description" type="xs:string" use="optional"/>
36
- </xs:complexType>
37
- </xs:element>
38
- <xs:element name="Mode">
39
- <xs:annotation>
40
- <xs:documentation>Definice zpracování podle porovnání klíčů</xs:documentation>
41
- </xs:annotation>
42
- <xs:complexType>
43
- <xs:attribute name="newValue" use="optional" default="Append">
44
- <xs:simpleType>
45
- <xs:restriction base="xs:string">
46
- <xs:enumeration value="Append"/>
47
- <xs:enumeration value="NoAction"/>
48
- <xs:enumeration value="Error"/>
49
- </xs:restriction>
50
- </xs:simpleType>
51
- </xs:attribute>
52
- <xs:attribute name="existingValue" use="optional" default="Update">
53
- <xs:simpleType>
54
- <xs:restriction base="xs:string">
55
- <xs:enumeration value="Append"/>
56
- <xs:enumeration value="Update"/>
57
- <xs:enumeration value="NoAction"/>
58
- <xs:enumeration value="Delete"/>
59
- <xs:enumeration value="Auto"/>
60
- <xs:enumeration value="Error"/>
61
- </xs:restriction>
62
- </xs:simpleType>
63
- </xs:attribute>
64
- <xs:attribute name="noValue" use="optional" default="Error">
65
- <xs:simpleType>
66
- <xs:restriction base="xs:string">
67
- <xs:enumeration value="Append"/>
68
- <xs:enumeration value="NoAction"/>
69
- <xs:enumeration value="Error"/>
70
- </xs:restriction>
71
- </xs:simpleType>
72
- </xs:attribute>
73
- </xs:complexType>
74
- </xs:element>
75
- </xs:sequence>
76
- </xs:complexType>
77
- <xs:complexType name="entityType">
78
- <xs:sequence>
79
- <xs:element name="StandAlone" type="instructionsType">
80
- <xs:annotation>
81
- <xs:documentation>Instrukce pro samostatnou entitu</xs:documentation>
82
- </xs:annotation>
83
- </xs:element>
84
- <xs:element name="Embedded" type="instructionsType" minOccurs="0">
85
- <xs:annotation>
86
- <xs:documentation>Instrukce pro entitu vnořenou v jiné entitě</xs:documentation>
87
- </xs:annotation>
88
- </xs:element>
89
- </xs:sequence>
90
- <xs:attribute name="name" type="xs:string" use="required"/>
91
- <xs:attribute name="description" type="xs:string" use="optional"/>
92
- <xs:attribute name="enabled" type="xs:boolean" use="optional" default="0"/>
93
- </xs:complexType>
94
- </xs:schema>
@@ -1,706 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
3
- <xs:complexType name="souhrnDPHType">
4
- <xs:annotation>
5
- <xs:documentation>souhrn DPH za doklad</xs:documentation>
6
- </xs:annotation>
7
- <xs:sequence>
8
- <xs:element name="Zaklad0" type="castkaType" minOccurs="0">
9
- <xs:annotation>
10
- <xs:documentation>Částka v nulové sazbě daně</xs:documentation>
11
- </xs:annotation>
12
- </xs:element>
13
- <xs:element name="Zaklad5" type="castkaType" minOccurs="0">
14
- <xs:annotation>
15
- <xs:documentation>Základ ve standardní snížené sazbě DPH</xs:documentation>
16
- </xs:annotation>
17
- </xs:element>
18
- <xs:element name="Zaklad22" type="castkaType" minOccurs="0">
19
- <xs:annotation>
20
- <xs:documentation>Základ ve standardní základní sazbě DPH</xs:documentation>
21
- </xs:annotation>
22
- </xs:element>
23
- <xs:element name="DPH5" type="castkaType" minOccurs="0">
24
- <xs:annotation>
25
- <xs:documentation>Daň ve standardní snížené sazbě</xs:documentation>
26
- </xs:annotation>
27
- </xs:element>
28
- <xs:element name="DPH22" type="castkaType" minOccurs="0">
29
- <xs:annotation>
30
- <xs:documentation>Daň ve standardní základní sazbě</xs:documentation>
31
- </xs:annotation>
32
- </xs:element>
33
- <xs:element name="SeznamDalsiSazby" minOccurs="0">
34
- <xs:annotation>
35
- <xs:documentation>Seznam dalších sazeb DPH
36
-
37
- Poznámka: seznam dalších sazeb může standardně obsahovat max. 4 sazby. Pokud však není uveden žádný z elementů určený pro nulovou, standardní sníženou a standardní základní sazbu, tak se nulová sazba a standardní sazby importují z tohoto seznamu a počet elementů DalsiSazba se rozšiřuje na max. 7.
38
- </xs:documentation>
39
- </xs:annotation>
40
- <xs:complexType>
41
- <xs:sequence>
42
- <xs:element name="DalsiSazba" maxOccurs="6">
43
- <xs:annotation>
44
- <xs:documentation>Další sazba</xs:documentation>
45
- </xs:annotation>
46
- <xs:complexType>
47
- <xs:sequence>
48
- <xs:element name="Popis" minOccurs="0">
49
- <xs:annotation>
50
- <xs:documentation>Popis</xs:documentation>
51
- </xs:annotation>
52
- </xs:element>
53
- <xs:element name="HladinaDPH" minOccurs="0">
54
- <xs:annotation>
55
- <xs:documentation>Hladina:
56
- 0 = nulová sazba
57
- 1 = snížená
58
- 2 = základní</xs:documentation>
59
- </xs:annotation>
60
- <xs:simpleType>
61
- <xs:restriction base="xs:byte">
62
- <xs:enumeration value="1"/>
63
- <xs:enumeration value="2"/>
64
- </xs:restriction>
65
- </xs:simpleType>
66
- </xs:element>
67
- <xs:element name="Sazba" type="procentoType" minOccurs="0">
68
- <xs:annotation>
69
- <xs:documentation>Procentní sazba daně</xs:documentation>
70
- </xs:annotation>
71
- </xs:element>
72
- <xs:element name="Zaklad" type="castkaType" minOccurs="0">
73
- <xs:annotation>
74
- <xs:documentation>Základ v sazbě</xs:documentation>
75
- </xs:annotation>
76
- </xs:element>
77
- <xs:element name="DPH" type="castkaType" minOccurs="0">
78
- <xs:annotation>
79
- <xs:documentation>Daň v sazbě</xs:documentation>
80
- </xs:annotation>
81
- </xs:element>
82
- </xs:sequence>
83
- </xs:complexType>
84
- </xs:element>
85
- </xs:sequence>
86
- </xs:complexType>
87
- </xs:element>
88
- </xs:sequence>
89
- </xs:complexType>
90
- <xs:complexType name="souhrnDPHPolType">
91
- <xs:annotation>
92
- <xs:documentation>souhrn DPH za položku dokladu</xs:documentation>
93
- </xs:annotation>
94
- <xs:sequence>
95
- <xs:element name="Zaklad_MJ" type="castkaType" minOccurs="0">
96
- <xs:annotation>
97
- <xs:documentation>Jednotková cena bez DPH</xs:documentation>
98
- </xs:annotation>
99
- </xs:element>
100
- <xs:element name="DPH_MJ" type="castkaType" minOccurs="0">
101
- <xs:annotation>
102
- <xs:documentation>DPH za jednotku</xs:documentation>
103
- </xs:annotation>
104
- </xs:element>
105
- <xs:element name="Zaklad" type="castkaType" minOccurs="0">
106
- <xs:annotation>
107
- <xs:documentation>Celkem bez DPH</xs:documentation>
108
- </xs:annotation>
109
- </xs:element>
110
- <xs:element name="DPH" type="castkaType" minOccurs="0">
111
- <xs:annotation>
112
- <xs:documentation>DPH</xs:documentation>
113
- </xs:annotation>
114
- </xs:element>
115
- <xs:element name="Valuty" minOccurs="0">
116
- <xs:annotation>
117
- <xs:documentation>Částky ve valutách</xs:documentation>
118
- </xs:annotation>
119
- <xs:complexType>
120
- <xs:sequence>
121
- <xs:element name="Zaklad_MJ" type="castkaType" minOccurs="0">
122
- <xs:annotation>
123
- <xs:documentation>Jednotková cena bez DPH ve valutách</xs:documentation>
124
- </xs:annotation>
125
- </xs:element>
126
- <xs:element name="DPH_MJ" type="castkaType" minOccurs="0">
127
- <xs:annotation>
128
- <xs:documentation>DPH za jednotku ve valutách</xs:documentation>
129
- </xs:annotation>
130
- </xs:element>
131
- <xs:element name="Zaklad" type="castkaType" minOccurs="0">
132
- <xs:annotation>
133
- <xs:documentation>Celkem bez DPH ve valutách</xs:documentation>
134
- </xs:annotation>
135
- </xs:element>
136
- <xs:element name="DPH" type="castkaType" minOccurs="0">
137
- <xs:annotation>
138
- <xs:documentation>DPH ve valutách</xs:documentation>
139
- </xs:annotation>
140
- </xs:element>
141
- </xs:sequence>
142
- </xs:complexType>
143
- </xs:element>
144
- </xs:sequence>
145
- </xs:complexType>
146
- <xs:complexType name="EETType">
147
- <xs:annotation>
148
- <xs:documentation>údaje týkající se EET (Elektronické evidence tržeb)
149
- </xs:documentation>
150
- </xs:annotation>
151
- <xs:sequence>
152
- <xs:element name="EETOdesl" type="xs:byte" minOccurs="0">
153
- <xs:annotation>
154
- <xs:documentation>Informace o tom, zda doklad podléhá EET:
155
-
156
- 0 = doklad nepodléhá EET. Z programu Money S3 lze doklad dodatečně odeslat.
157
-
158
- 1 = doklad podléhá EET (je evidovanou tržbou) a odeslání dokladu provádí program Money S3. Doklad již může mít přiřazen PKP a BKP.
159
-
160
- 2 = doklad podléhá EET a jeho odeslání probíhá z jiného systému. Z programu Money S3 nelze doklad odeslat ani stornovat e-tržbu.
161
-
162
- 3 = doklad nepodléhá EET. Z programu Money S3 nelze doklad odeslat.</xs:documentation>
163
- </xs:annotation>
164
- </xs:element>
165
- <xs:element name="ProdMisto" minOccurs="0">
166
- <xs:annotation>
167
- <xs:documentation>Zkratka prodejního místa</xs:documentation>
168
- </xs:annotation>
169
- <xs:simpleType>
170
- <xs:restriction base="xs:string">
171
- <xs:maxLength value="10"/>
172
- </xs:restriction>
173
- </xs:simpleType>
174
- </xs:element>
175
- <xs:element name="UUID" minOccurs="0">
176
- <xs:annotation>
177
- <xs:documentation>UUID zprávy</xs:documentation>
178
- </xs:annotation>
179
- <xs:simpleType>
180
- <xs:restriction base="xs:string">
181
- <xs:pattern value="^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"/>
182
- </xs:restriction>
183
- </xs:simpleType>
184
- </xs:element>
185
- <xs:element name="DatOdesl" type="xs:date" minOccurs="0">
186
- <xs:annotation>
187
- <xs:documentation>Datum odeslání zprávy</xs:documentation>
188
- </xs:annotation>
189
- </xs:element>
190
- <xs:element name="CasOdesl" type="xs:time" minOccurs="0">
191
- <xs:annotation>
192
- <xs:documentation>Čas odeslání zprávy</xs:documentation>
193
- </xs:annotation>
194
- </xs:element>
195
- <xs:element name="PrvniZasl" type="xs:boolean" minOccurs="0">
196
- <xs:annotation>
197
- <xs:documentation>Příznak prvního zaslání do systému EET:
198
- "prázdné" = doposud nedošlo k zaslání (default)
199
- 1 = první zaslání
200
- 0 = opakované zaslání</xs:documentation>
201
- </xs:annotation>
202
- </xs:element>
203
- <xs:element name="DICPopl" minOccurs="0">
204
- <xs:annotation>
205
- <xs:documentation>DIČ poplatníka</xs:documentation>
206
- </xs:annotation>
207
- <xs:simpleType>
208
- <xs:restriction base="xs:string">
209
- <xs:maxLength value="20"/>
210
- <xs:pattern value="^CZ[0-9]{8,10}$"/>
211
- </xs:restriction>
212
- </xs:simpleType>
213
- </xs:element>
214
- <xs:element name="DICPover" minOccurs="0">
215
- <xs:annotation>
216
- <xs:documentation>DIČ poplatníka, za kterého se eviduje tržba</xs:documentation>
217
- </xs:annotation>
218
- <xs:simpleType>
219
- <xs:restriction base="xs:string">
220
- <xs:maxLength value="20"/>
221
- <xs:pattern value="^CZ[0-9]{8,10}$"/>
222
- </xs:restriction>
223
- </xs:simpleType>
224
- </xs:element>
225
- <xs:element name="Provozovna" minOccurs="0">
226
- <xs:annotation>
227
- <xs:documentation>Číselný kód provozovny</xs:documentation>
228
- </xs:annotation>
229
- <xs:simpleType>
230
- <xs:restriction base="xs:long">
231
- <xs:pattern value="^[1-9][0-9]{0,5}$"/>
232
- </xs:restriction>
233
- </xs:simpleType>
234
- </xs:element>
235
- <xs:element name="PoklZariz" minOccurs="0">
236
- <xs:annotation>
237
- <xs:documentation>Označení pokladního zařízení</xs:documentation>
238
- </xs:annotation>
239
- <xs:simpleType>
240
- <xs:restriction base="xs:string">
241
- <xs:maxLength value="20"/>
242
- <xs:pattern value="^[0-9a-zA-Z\.,:;/#\-_ ]{1,20}$"/>
243
- </xs:restriction>
244
- </xs:simpleType>
245
- </xs:element>
246
- <xs:element name="PoradCis" minOccurs="0">
247
- <xs:annotation>
248
- <xs:documentation>Pořadové číslo účtenky</xs:documentation>
249
- </xs:annotation>
250
- <xs:simpleType>
251
- <xs:restriction base="xs:string">
252
- <xs:maxLength value="25"/>
253
- <xs:pattern value="^[0-9a-zA-Z\.,:;/#\-_ ]{1,25}$"/>
254
- </xs:restriction>
255
- </xs:simpleType>
256
- </xs:element>
257
- <xs:element name="DatTrzby" type="xs:date" minOccurs="0">
258
- <xs:annotation>
259
- <xs:documentation>Datum evidované tržby</xs:documentation>
260
- </xs:annotation>
261
- </xs:element>
262
- <xs:element name="CasTrzby" type="xs:time" minOccurs="0">
263
- <xs:annotation>
264
- <xs:documentation>Čas evidované tržby</xs:documentation>
265
- </xs:annotation>
266
- </xs:element>
267
- <xs:element name="Castky" minOccurs="0">
268
- <xs:annotation>
269
- <xs:documentation>Částky EET</xs:documentation>
270
- </xs:annotation>
271
- <xs:complexType>
272
- <xs:sequence>
273
- <xs:element name="Celkem" type="castkaType" minOccurs="0">
274
- <xs:annotation>
275
- <xs:documentation>Celková částka tržby</xs:documentation>
276
- </xs:annotation>
277
- </xs:element>
278
- <xs:element name="Zaklad_0" type="castkaType" minOccurs="0">
279
- <xs:annotation>
280
- <xs:documentation>Celkový základ u nulové sazby DPH</xs:documentation>
281
- </xs:annotation>
282
- </xs:element>
283
- <xs:element name="Zaklad_1" type="castkaType" minOccurs="0">
284
- <xs:annotation>
285
- <xs:documentation>Celkový základ u první snížené sazby DPH</xs:documentation>
286
- </xs:annotation>
287
- </xs:element>
288
- <xs:element name="Zaklad_2" type="castkaType" minOccurs="0">
289
- <xs:annotation>
290
- <xs:documentation>Celkový základ u základní sazby DPH</xs:documentation>
291
- </xs:annotation>
292
- </xs:element>
293
- <xs:element name="Zaklad_3" type="castkaType" minOccurs="0">
294
- <xs:annotation>
295
- <xs:documentation>Celkový základ u druhé snížené sazby DPH</xs:documentation>
296
- </xs:annotation>
297
- </xs:element>
298
- <xs:element name="DPH_1" type="castkaType" minOccurs="0">
299
- <xs:annotation>
300
- <xs:documentation>DPH u první snížené sazby</xs:documentation>
301
- </xs:annotation>
302
- </xs:element>
303
- <xs:element name="DPH_2" type="castkaType" minOccurs="0">
304
- <xs:annotation>
305
- <xs:documentation>DPH u základní sazby</xs:documentation>
306
- </xs:annotation>
307
- </xs:element>
308
- <xs:element name="DPH_3" type="castkaType" minOccurs="0">
309
- <xs:annotation>
310
- <xs:documentation>DPH u druhé snížené sazby</xs:documentation>
311
- </xs:annotation>
312
- </xs:element>
313
- <xs:element name="CestSluzba" type="castkaType" minOccurs="0">
314
- <xs:annotation>
315
- <xs:documentation>Celková částka včetně DPH pro cestovní službu</xs:documentation>
316
- </xs:annotation>
317
- </xs:element>
318
- <xs:element name="PouzZb_1" type="castkaType" minOccurs="0">
319
- <xs:annotation>
320
- <xs:documentation>Celková částka včetně DPH pro použité zboží v první snížené sazbě</xs:documentation>
321
- </xs:annotation>
322
- </xs:element>
323
- <xs:element name="PouzZb_2" type="castkaType" minOccurs="0">
324
- <xs:annotation>
325
- <xs:documentation>Celková částka včetně DPH pro použité zboží v základní sazbě</xs:documentation>
326
- </xs:annotation>
327
- </xs:element>
328
- <xs:element name="PouzZb_3" type="castkaType" minOccurs="0">
329
- <xs:annotation>
330
- <xs:documentation>Celková částka včetně DPH pro použité zboží v druhé snížené sazbě</xs:documentation>
331
- </xs:annotation>
332
- </xs:element>
333
- <xs:element name="UrcCerpZct" type="castkaType" minOccurs="0">
334
- <xs:annotation>
335
- <xs:documentation>Celková částka plateb určená k následnému čerpání nebo zúčtování</xs:documentation>
336
- </xs:annotation>
337
- </xs:element>
338
- <xs:element name="CerpZuct" type="castkaType" minOccurs="0">
339
- <xs:annotation>
340
- <xs:documentation>Celková částka plateb, které jsou následným čerpáním nebo zúčtováním platby</xs:documentation>
341
- </xs:annotation>
342
- </xs:element>
343
- </xs:sequence>
344
- </xs:complexType>
345
- </xs:element>
346
- <xs:element name="Rezim" type="xs:boolean" minOccurs="0">
347
- <xs:annotation>
348
- <xs:documentation>Režim EET:
349
- 0 = běžný
350
- 1 = zjednodušený</xs:documentation>
351
- </xs:annotation>
352
- </xs:element>
353
- <xs:element name="PKP" minOccurs="0">
354
- <xs:annotation>
355
- <xs:documentation>Podpisový kód poplatníka ve formátu Base64</xs:documentation>
356
- </xs:annotation>
357
- <xs:simpleType>
358
- <xs:restriction base="xs:string">
359
- <xs:length value="344"/>
360
- </xs:restriction>
361
- </xs:simpleType>
362
- </xs:element>
363
- <xs:element name="BKP" minOccurs="0">
364
- <xs:annotation>
365
- <xs:documentation>Bezpečnostní kód poplatníka</xs:documentation>
366
- </xs:annotation>
367
- <xs:simpleType>
368
- <xs:restriction base="xs:string">
369
- <xs:length value="44"/>
370
- <xs:pattern value="^([0-9a-fA-F]{8}-){4}[0-9a-fA-F]{8}$"/>
371
- </xs:restriction>
372
- </xs:simpleType>
373
- </xs:element>
374
- <xs:element name="FIK" minOccurs="0">
375
- <xs:annotation>
376
- <xs:documentation>Fiskální identifikační kód</xs:documentation>
377
- </xs:annotation>
378
- <xs:simpleType>
379
- <xs:restriction base="xs:string">
380
- <xs:length value="39"/>
381
- <xs:pattern value="^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}-[0-9a-fA-F]{2}$"/>
382
- </xs:restriction>
383
- </xs:simpleType>
384
- </xs:element>
385
- <xs:element name="CertPKP" minOccurs="0">
386
- <xs:annotation>
387
- <xs:documentation>Sériové číslo certifikátu použitého při tvorbě PKP</xs:documentation>
388
- </xs:annotation>
389
- <xs:simpleType>
390
- <xs:restriction base="xs:string">
391
- <xs:maxLength value="64"/>
392
- </xs:restriction>
393
- </xs:simpleType>
394
- </xs:element>
395
- <xs:element name="CertEET" minOccurs="0">
396
- <xs:annotation>
397
- <xs:documentation>Sériové číslo certifikátu použitého při tvorbě datové věty EET</xs:documentation>
398
- </xs:annotation>
399
- <xs:simpleType>
400
- <xs:restriction base="xs:string">
401
- <xs:maxLength value="64"/>
402
- </xs:restriction>
403
- </xs:simpleType>
404
- </xs:element>
405
- <xs:element name="VysledekOdesl" minOccurs="0">
406
- <xs:annotation>
407
- <xs:documentation>Návratová chyba nebo varování při odesílání e-tržby do systému EET</xs:documentation>
408
- </xs:annotation>
409
- <xs:complexType>
410
- <xs:choice>
411
- <xs:element name="Chyba">
412
- <xs:complexType>
413
- <xs:simpleContent>
414
- <xs:extension base="xs:string">
415
- <xs:attribute name="Kod" type="cisloType" use="required"/>
416
- </xs:extension>
417
- </xs:simpleContent>
418
- </xs:complexType>
419
- </xs:element>
420
- <xs:element name="Varovani" maxOccurs="unbounded">
421
- <xs:complexType>
422
- <xs:simpleContent>
423
- <xs:extension base="xs:string">
424
- <xs:attribute name="Kod" type="cisloType" use="required"/>
425
- </xs:extension>
426
- </xs:simpleContent>
427
- </xs:complexType>
428
- </xs:element>
429
- </xs:choice>
430
- </xs:complexType>
431
- </xs:element>
432
- </xs:sequence>
433
- </xs:complexType>
434
- <xs:complexType name="menaType">
435
- <xs:sequence>
436
- <xs:element name="Kod">
437
- <xs:annotation>
438
- <xs:documentation>Kód měny, kontrola na Seznam Cizích měn IMPORT: ANO, EXPORT: ANO </xs:documentation>
439
- </xs:annotation>
440
- <xs:simpleType>
441
- <xs:restriction base="xs:string">
442
- <xs:maxLength value="4"/>
443
- </xs:restriction>
444
- </xs:simpleType>
445
- </xs:element>
446
- <xs:element name="Mnozstvi" default="1" minOccurs="0">
447
- <xs:annotation>
448
- <xs:documentation>Množství měny pro zadaný kurs. Default=1 IMPORT: ANO, EXPORT: ANO </xs:documentation>
449
- </xs:annotation>
450
- <xs:simpleType>
451
- <xs:restriction base="xs:decimal">
452
- <xs:totalDigits value="11"/>
453
- <xs:fractionDigits value="0"/>
454
- </xs:restriction>
455
- </xs:simpleType>
456
- </xs:element>
457
- <xs:element name="Kurs" type="castkaType" minOccurs="0">
458
- <xs:annotation>
459
- <xs:documentation>Kurs měny IMPORT: ANO, EXPORT: ANO </xs:documentation>
460
- </xs:annotation>
461
- </xs:element>
462
- </xs:sequence>
463
- </xs:complexType>
464
- <xs:complexType name="VlajkaType">
465
- <xs:sequence>
466
- <xs:element name="IDUser" type="xs:integer">
467
- <xs:annotation>
468
- <xs:documentation>ID uživatele, u globálních vlajek=0. IMPORT: NE, EXPORT: ANO </xs:documentation>
469
- </xs:annotation>
470
- </xs:element>
471
- <xs:element name="NameUser" minOccurs="0">
472
- <xs:annotation>
473
- <xs:documentation>Jméno uživatele. u globáních vlajek se neexportuje, IMPORT: NE, EXPORT: ANO </xs:documentation>
474
- </xs:annotation>
475
- </xs:element>
476
- <xs:element name="IDFlag" type="xs:integer">
477
- <xs:annotation>
478
- <xs:documentation>ID vlajky. IMPORT: NE, EXPORT: ANO </xs:documentation>
479
- </xs:annotation>
480
- </xs:element>
481
- <xs:element name="Title" type="xs:string">
482
- <xs:annotation>
483
- <xs:documentation>Popis příznaku. IMPORT: NE, EXPORT: ANO </xs:documentation>
484
- </xs:annotation>
485
- </xs:element>
486
- <xs:element name="Enabled" type="xs:boolean">
487
- <xs:annotation>
488
- <xs:documentation>Povolení příznaku (přítomnost v nabídce). IMPORT: NE, EXPORT: ANO </xs:documentation>
489
- </xs:annotation>
490
- </xs:element>
491
- <xs:element name="Remark" type="xs:boolean" minOccurs="0">
492
- <xs:annotation>
493
- <xs:documentation>Komentář příznaku. Pouze u globálních příznaků.(existence) IMPORT: NE, EXPORT: ANO </xs:documentation>
494
- </xs:annotation>
495
- </xs:element>
496
- <xs:element name="RFWidth" type="xs:integer" minOccurs="0">
497
- <xs:annotation>
498
- <xs:documentation>šířka komentáře (v pixelech). IMPORT: NE, EXPORT: ANO </xs:documentation>
499
- </xs:annotation>
500
- </xs:element>
501
- <xs:element name="RFHeight" type="xs:integer" minOccurs="0">
502
- <xs:annotation>
503
- <xs:documentation>výška komentáře (v pixelech). IMPORT: NE, EXPORT: ANO </xs:documentation>
504
- </xs:annotation>
505
- </xs:element>
506
- </xs:sequence>
507
- </xs:complexType>
508
- <xs:complexType name="doklRefType">
509
- <xs:sequence>
510
- <xs:element name="IDDokladu" type="xs:long">
511
- <xs:annotation>
512
- <xs:documentation>Jedinečný identifikátor dokladu</xs:documentation>
513
- </xs:annotation>
514
- </xs:element>
515
- <xs:element name="CisloDokladu" minOccurs="0">
516
- <xs:annotation>
517
- <xs:documentation>Uživatelské číslo dokladu</xs:documentation>
518
- </xs:annotation>
519
- <xs:simpleType>
520
- <xs:restriction base="xs:string">
521
- <xs:maxLength value="10"/>
522
- </xs:restriction>
523
- </xs:simpleType>
524
- </xs:element>
525
- <xs:element name="DruhDokladu" minOccurs="0">
526
- <xs:annotation>
527
- <xs:documentation>Druh dokladu:
528
-
529
- 1) Hradící doklady:
530
- B = bankovní
531
- P = pokladní
532
- I = interní doklad
533
- H = pohledávka
534
- Z = závazek
535
-
536
- 2) Hrazené doklady
537
- FV = faktura vydaná
538
- FP = faktura přijatá
539
- KP = pohledávka
540
- KZ = závazek
541
- ID = interní doklad</xs:documentation>
542
- </xs:annotation>
543
- <xs:simpleType>
544
- <xs:restriction base="xs:NMTOKEN">
545
- <xs:maxLength value="3"/>
546
- </xs:restriction>
547
- </xs:simpleType>
548
- </xs:element>
549
- <xs:element name="Rok">
550
- <xs:annotation>
551
- <xs:documentation>Rok, do kterého doklad spadá</xs:documentation>
552
- </xs:annotation>
553
- <xs:simpleType>
554
- <xs:restriction base="xs:string">
555
- <xs:maxLength value="4"/>
556
- </xs:restriction>
557
- </xs:simpleType>
558
- </xs:element>
559
- <xs:element name="EET" type="EETType" minOccurs="0">
560
- <xs:annotation>
561
- <xs:documentation>Údaje týkající se EET (pouze hradící doklad a pouze CZ verze)
562
-
563
- EXPORT: ANO,
564
- IMPORT: ANO (Pouze hradicí pohledávka nebo pokladní doklad, které jsou automaticky generovány při importu faktury. V elementu DruhDokladu musí být nastavena správná hodnota (H nebo P). Ostatní elementy týkající se úhrady jsou při importu ignorovány.)</xs:documentation>
565
- </xs:annotation>
566
- </xs:element>
567
- </xs:sequence>
568
- </xs:complexType>
569
- <xs:complexType name="vazbaType">
570
- <xs:sequence>
571
- <xs:element name="Typ" minOccurs="0">
572
- <xs:annotation>
573
- <xs:documentation>Typ vazby:
574
-
575
- PR = aparát přebírání dokladů (vyřizované objednávky)
576
- IMPORT: ANO
577
- EXPORT: ANO
578
-
579
- ZL = zálohová faktura k odpočtové položce (vazba se vyskytuje pouze u odpočtové položky)
580
- IMPORT: ANO
581
- EXPORT: ANO
582
-
583
- DD = souvztažné doklady pro daňový doklad k přijaté platbě
584
- IMPORT: ANO
585
- EXPORT: ANO</xs:documentation>
586
- </xs:annotation>
587
- </xs:element>
588
- <xs:element name="PodTyp" minOccurs="0">
589
- <xs:annotation>
590
- <xs:documentation>Podtyp vazby
591
-
592
- pro Typ = DD:
593
- HR = hradicí doklad
594
- ZF = zálohová faktura</xs:documentation>
595
- </xs:annotation>
596
- </xs:element>
597
- <xs:element name="Doklad">
598
- <xs:annotation>
599
- <xs:documentation>Identifikace vazebního dokladu
600
-
601
- </xs:documentation>
602
- </xs:annotation>
603
- <xs:complexType>
604
- <xs:sequence>
605
- <xs:element name="Druh" minOccurs="0">
606
- <xs:annotation>
607
- <xs:documentation>Druh dokladu - viz standardní tabulka typů z XML:
608
- OP = objednávka přijatá
609
- OV = objednávka vydaná
610
- FV = faktura vydaná
611
- FP = faktura přijatá
612
- atd.</xs:documentation>
613
- </xs:annotation>
614
- </xs:element>
615
- <xs:element name="Cislo" minOccurs="0">
616
- <xs:annotation>
617
- <xs:documentation>Číslo dokladu</xs:documentation>
618
- </xs:annotation>
619
- </xs:element>
620
- <xs:element name="GUID" minOccurs="0">
621
- <xs:annotation>
622
- <xs:documentation>GUID</xs:documentation>
623
- </xs:annotation>
624
- </xs:element>
625
- <xs:element name="PrijatDokl" minOccurs="0">
626
- <xs:annotation>
627
- <xs:documentation>Číslo přijatého dokladu (dokladu došlého)
628
- (pouze u přijatých dokladů)</xs:documentation>
629
- </xs:annotation>
630
- </xs:element>
631
- <xs:element name="VarSymbol" minOccurs="0">
632
- <xs:annotation>
633
- <xs:documentation>Variabilní symbol</xs:documentation>
634
- </xs:annotation>
635
- </xs:element>
636
- <xs:element name="Vystaveno" minOccurs="0">
637
- <xs:annotation>
638
- <xs:documentation>Datum vystavení</xs:documentation>
639
- </xs:annotation>
640
- </xs:element>
641
- <xs:element name="DatUcPr" minOccurs="0">
642
- <xs:annotation>
643
- <xs:documentation>Datum účetního případu</xs:documentation>
644
- </xs:annotation>
645
- </xs:element>
646
- <xs:element name="PlnenoDPH" minOccurs="0">
647
- <xs:annotation>
648
- <xs:documentation>Datum zdanitelného plnění</xs:documentation>
649
- </xs:annotation>
650
- </xs:element>
651
- </xs:sequence>
652
- </xs:complexType>
653
- </xs:element>
654
- </xs:sequence>
655
- </xs:complexType>
656
- <xs:simpleType name="castkaType">
657
- <xs:restriction base="xs:decimal">
658
- <xs:totalDigits value="15"/>
659
- <xs:fractionDigits value="4"/>
660
- </xs:restriction>
661
- </xs:simpleType>
662
- <xs:simpleType name="mnozstviType">
663
- <xs:restriction base="xs:decimal">
664
- <xs:totalDigits value="15"/>
665
- <xs:fractionDigits value="4"/>
666
- </xs:restriction>
667
- </xs:simpleType>
668
- <xs:simpleType name="procentoType">
669
- <xs:restriction base="xs:decimal">
670
- <xs:totalDigits value="15"/>
671
- <xs:fractionDigits value="4"/>
672
- </xs:restriction>
673
- </xs:simpleType>
674
- <xs:simpleType name="cisloType">
675
- <xs:restriction base="xs:decimal">
676
- <xs:totalDigits value="15"/>
677
- <xs:fractionDigits value="4"/>
678
- </xs:restriction>
679
- </xs:simpleType>
680
- <xs:simpleType name="celeCisloType">
681
- <xs:restriction base="xs:decimal">
682
- <xs:totalDigits value="15"/>
683
- <xs:fractionDigits value="0"/>
684
- </xs:restriction>
685
- </xs:simpleType>
686
- <xs:simpleType name="zkratkaType">
687
- <xs:restriction base="xs:string">
688
- <xs:maxLength value="10"/>
689
- </xs:restriction>
690
- </xs:simpleType>
691
- <xs:simpleType name="popisType">
692
- <xs:restriction base="xs:string">
693
- <xs:maxLength value="50"/>
694
- </xs:restriction>
695
- </xs:simpleType>
696
- <xs:simpleType name="vycetType">
697
- <xs:restriction base="xs:string">
698
- <xs:maxLength value="255"/>
699
- </xs:restriction>
700
- </xs:simpleType>
701
- <xs:simpleType name="ucetType">
702
- <xs:restriction base="xs:string">
703
- <xs:maxLength value="9"/>
704
- </xs:restriction>
705
- </xs:simpleType>
706
- </xs:schema>