acts_as_isdoc 0.0.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.
data/.gitignore ADDED
@@ -0,0 +1,20 @@
1
+ test/debug.log
2
+ test/acts_as_isdoc.sqlite.db
3
+ test/acts_as_isdoc.sqlite3.db
4
+ *.gem
5
+ *.rbc
6
+ .bundle
7
+ .config
8
+ .yardoc
9
+ Gemfile.lock
10
+ InstalledFiles
11
+ _yardoc
12
+ coverage
13
+ doc/
14
+ lib/bundler/man
15
+ pkg
16
+ rdoc
17
+ spec/reports
18
+ test/tmp
19
+ test/version_tmp
20
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in acts_as_isdoc.gemspec
4
+ gemspec
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 [name of plugin creator]
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,16 @@
1
+ ActsAsIsdoc
2
+ ===========
3
+
4
+ Plugin for rendering business object in ISDOC format
5
+
6
+ More informations about ISDOC on http://www.isdoc.org
7
+
8
+
9
+ Example
10
+ =======
11
+
12
+ class SampleInvoice < ActiveRecord::Base
13
+ acts_as_isdoc
14
+ end
15
+
16
+ Copyright (c) 2009 Jiri Kubicek, KRAXNET s.r.o., released under the MIT license
data/Rakefile ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
3
+
4
+ require 'rake'
5
+ require 'rake/testtask'
6
+ require 'rdoc/task'
7
+
8
+ desc 'Default: run unit tests.'
9
+ task :default => :test
10
+
11
+ desc 'Test the acts_as_isdoc plugin.'
12
+ Rake::TestTask.new(:test) do |t|
13
+ t.libs << 'lib'
14
+ t.libs << 'test'
15
+ t.pattern = 'test/**/*_test.rb'
16
+ t.verbose = true
17
+ end
18
+
19
+ desc 'Generate documentation for the acts_as_isdoc plugin.'
20
+ RDoc::Task.new do |rdoc|
21
+ rdoc.rdoc_dir = 'rdoc'
22
+ rdoc.title = 'ActsAsIsdoc'
23
+ rdoc.options << '--line-numbers' << '--inline-source'
24
+ rdoc.rdoc_files.include('README')
25
+ rdoc.rdoc_files.include('lib/**/*.rb')
26
+ end
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/acts_as_isdoc/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["Jiri Kubicek"]
6
+ gem.email = ["jiri.kubicek@kraxnet.cz"]
7
+ gem.description = %q{Rendering business objects in ISDOC format}
8
+ gem.summary = %q{Business objects in ISDOC format}
9
+ gem.homepage = ""
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "acts_as_isdoc"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = ActsAsIsdoc::VERSION
17
+
18
+ gem.add_dependency "builder"
19
+ gem.add_dependency "htmlentities"
20
+ gem.add_dependency "activesupport"
21
+ gem.add_dependency "activerecord"
22
+ gem.add_dependency "htmlentities"
23
+ end
data/init.rb ADDED
@@ -0,0 +1,2 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require 'acts_as_isdoc'
data/install.rb ADDED
@@ -0,0 +1,2 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # Install hook code here
@@ -0,0 +1,45 @@
1
+ # -*- encoding : utf-8 -*-
2
+ require File.join(File.dirname(__FILE__), 'acts_as_isdoc/version')
3
+ require File.join(File.dirname(__FILE__), 'isdoc_output_builder')
4
+
5
+ require 'htmlentities'
6
+ require 'tempfile'
7
+
8
+ module ActsAsIsdoc
9
+ def self.included(base)
10
+ base.send :extend, ClassMethods
11
+ end
12
+
13
+ module ClassMethods
14
+ def acts_as_isdoc(options = {})
15
+ cattr_accessor :document_type, :options
16
+ self.document_type = options[:document_type]
17
+ self.options = options
18
+ send :include, InstanceMethods
19
+ end
20
+ end
21
+
22
+ module InstanceMethods
23
+ def render_isdoc
24
+ ISDOCOutputBuilder.new(self, options).build
25
+ end
26
+ end
27
+ end
28
+
29
+ require 'builder'
30
+ module Builder
31
+ class XmlBase
32
+ def encoded_tag!(sym, *args, &block)
33
+ args = args.map do |a|
34
+ if a.kind_of? ::Hash
35
+ a.each_pair {|key, value| a[key] = ::HTMLEntities.new.encode(value)}
36
+ else
37
+ ::HTMLEntities.new.encode(a)
38
+ end
39
+ end
40
+ tag!(sym, *args, &block)
41
+ end
42
+ end
43
+ end
44
+
45
+ ActiveRecord::Base.send :include, ActsAsIsdoc
@@ -0,0 +1,3 @@
1
+ module ActsAsIsdoc
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,222 @@
1
+ # -*- encoding : utf-8 -*-
2
+ class ISDOCOutputBuilder
3
+
4
+ attr_reader :ledger_item, :options
5
+
6
+ def initialize(ledger_item, options)
7
+ @ledger_item = ledger_item
8
+ @options = options
9
+ end
10
+
11
+ def build
12
+ isdoc = Builder::XmlMarkup.new :indent => 4
13
+ isdoc.instruct! :xml
14
+
15
+ isdoc.encoded_tag!( :Invoice, :xmlns=>"http://isdoc.cz/namespace/invoice", :version=>"5.2") do |invoice|
16
+ invoice.encoded_tag! :DocumentType, document_type
17
+ invoice.encoded_tag! :ID, document_id
18
+ invoice.encoded_tag! :UUID, document_uuid
19
+
20
+ invoice.encoded_tag! :IssueDate, issue_date
21
+ invoice.encoded_tag! :TaxPointDate, tax_point_date if tax_point_date
22
+
23
+ invoice.encoded_tag! :Note, note if note
24
+
25
+ invoice.encoded_tag! :OrderReferences do |order_references|
26
+ order_references.encoded_tag! :OrderReference do |order_reference|
27
+ order_reference.encoded_tag! :SalesOrderID
28
+ order_reference.encoded_tag! :ExternalOrderID, external_order_id
29
+ order_reference.encoded_tag! :IssueDate, issue_date
30
+ end
31
+ end if external_order_id
32
+
33
+ invoice.encoded_tag! :LocalCurrencyCode, local_currency_code
34
+ invoice.encoded_tag! :CurrRate, 1
35
+ invoice.encoded_tag! :RefCurrRate, 1
36
+
37
+ invoice.encoded_tag! :AccountingSupplierParty do |supplier|
38
+ build_party supplier, seller_details
39
+ end
40
+
41
+ invoice.encoded_tag! :SellerSupplierParty do |sender|
42
+ build_party sender, sender_details
43
+ end if sender_details
44
+
45
+ invoice.encoded_tag! :AccountingCustomerParty do |customer|
46
+ build_party customer, customer_details
47
+ end
48
+
49
+ invoice.encoded_tag! :BuyerCustomerParty do |recipient|
50
+ build_party recipient, recipient_details
51
+ end if recipient_details
52
+
53
+ invoice.encoded_tag! :InvoiceLines do |invoice_lines_tag|
54
+ build_invoice_lines invoice_lines_tag, invoice_lines
55
+ end
56
+
57
+ invoice.encoded_tag! :NonTaxedDeposits do |non_taxed_deposits_tag|
58
+ build_non_taxed_deposits non_taxed_deposits_tag, non_taxed_deposits
59
+ end if non_taxed_deposits
60
+
61
+ invoice.encoded_tag! :TaxedDeposits do |taxed_deposits_tag|
62
+ build_taxed_deposits taxed_deposits_tag, taxed_deposits
63
+ end if taxed_deposits
64
+
65
+ invoice.encoded_tag! :TaxTotal do |tax_total|
66
+ build_tax_sub_totals(tax_total, tax_sub_totals)
67
+ tax_total.encoded_tag! :TaxAmount, tax_amount
68
+ end
69
+
70
+ invoice.encoded_tag! :LegalMonetaryTotal do |legal_monetary_total|
71
+ legal_monetary_total.encoded_tag! :TaxExclusiveAmount, tax_exclusive_amount
72
+ legal_monetary_total.encoded_tag! :TaxInclusiveAmount, tax_inclusive_amount
73
+ legal_monetary_total.encoded_tag! :AlreadyClaimedTaxExclusiveAmount, already_claimed_tax_exclusive_amount
74
+ legal_monetary_total.encoded_tag! :AlreadyClaimedTaxInclusiveAmount, already_claimed_tax_inclusive_amount
75
+ legal_monetary_total.encoded_tag! :DifferenceTaxExclusiveAmount, difference_tax_exclusive_amount
76
+ legal_monetary_total.encoded_tag! :DifferenceTaxInclusiveAmount, difference_tax_inclusive_amount
77
+ legal_monetary_total.encoded_tag! :PaidDepositsAmount, paid_deposits_amount
78
+ legal_monetary_total.encoded_tag! :PayableAmount, payable_amount
79
+ end
80
+
81
+ invoice.encoded_tag! :PaymentMeans do |payment_means|
82
+ payment_means.encoded_tag! :Payment do |payment|
83
+ payment.encoded_tag! :PaidAmount, payment_means_detail[:paid_amount]
84
+ payment.encoded_tag! :PaymentMeansCode, payment_means_detail[:payments_mean_code]
85
+ payment.encoded_tag! :Details do |details|
86
+ build_bank_account(details, payment_means_detail, true)
87
+ end #if payment_means_detail[:payments_mean_code.to_i==42]
88
+ end
89
+ payment_means.encoded_tag! :AlternateBankAccounts do |alternate_bank_accounts|
90
+ for alternate_bank_account in payment_means_detail[:alternate_bank_accounts]
91
+ alternate_bank_accounts.encoded_tag! :AlternateBankAccount do
92
+ build_bank_account(alternate_bank_accounts, alternate_bank_account)
93
+ end
94
+ end
95
+ end if payment_means_detail[:alternate_bank_accounts]
96
+ end if payment_means_detail
97
+ end
98
+ isdoc.target!
99
+ end
100
+
101
+ def build_party(xml, details)
102
+ details = details.symbolize_keys
103
+ xml.encoded_tag! :Party do |party|
104
+ party.encoded_tag! :PartyIdentification do |party_identification|
105
+ party_identification.encoded_tag! :UserID, details[:user_id] if details[:user_id]
106
+ # party_identification.encoded_tag! :CatalogFirmIdentification
107
+ party_identification.encoded_tag! :ID, details[:company_id]
108
+ end
109
+ party.encoded_tag! :PartyName do |party_name|
110
+ party_name.encoded_tag! :Name, details[:name]
111
+ end
112
+ party.encoded_tag! :PostalAddress do |postal_address|
113
+ postal_address.encoded_tag! :StreetName, details[:street]
114
+ postal_address.encoded_tag! :BuildingNumber, details[:building_number]
115
+ postal_address.encoded_tag! :CityName, details[:city]
116
+ postal_address.encoded_tag! :PostalZone, details[:postal_code]
117
+ postal_address.encoded_tag! :Country do |country|
118
+ country.encoded_tag! :IdentificationCode, details[:country_code]
119
+ country.encoded_tag! :Name, details[:country]
120
+ end
121
+ end
122
+ party.encoded_tag! :PartyTaxScheme do |party_tax_scheme|
123
+ party_tax_scheme.encoded_tag! :CompanyID, details[:tax_number]
124
+ party_tax_scheme.encoded_tag! :TaxScheme, "VAT"
125
+ end if details[:tax_number]
126
+ party.encoded_tag! :RegisterIdentification do |register_identification|
127
+ register_identification.encoded_tag! :RegisterKeptAt, details[:register_kept_at]
128
+ register_identification.encoded_tag! :RegisterFileRef, details[:register_file_ref]
129
+ register_identification.encoded_tag! :RegisterDate, details[:register_date]
130
+ end if details[:register_kept_at]
131
+ end
132
+ end
133
+
134
+ def build_invoice_lines(invoice_lines, items)
135
+ items.each_with_index do |item, index|
136
+ invoice_lines.encoded_tag! :InvoiceLine do |invoice_line|
137
+ invoice_line.encoded_tag! :ID, index+1
138
+ invoice_line.encoded_tag! :LineExtensionAmount, item[:line_extension_amount]
139
+ invoice_line.encoded_tag! :LineExtensionAmountTaxInclusive, item[:line_extension_amount_tax_inclusive]
140
+ invoice_line.encoded_tag! :LineExtensionTaxAmount, item[:line_extension_tax_amount]
141
+ invoice_line.encoded_tag! :UnitPrice, item[:unit_price]
142
+ invoice_line.encoded_tag! :UnitPriceTaxInclusive, item[:unit_price_tax_inclusive]
143
+ invoice_line.encoded_tag! :ClassifiedTaxCategory do |classified_tax_category|
144
+ classified_tax_category.encoded_tag! :Percent, item[:tax_percent]
145
+ classified_tax_category.encoded_tag! :VATCalculationMethod, item[:vat_calculation_method]
146
+ end
147
+ invoice_line.encoded_tag! :Item do |item_tag|
148
+ item_tag.encoded_tag! :Description, item[:description] if item[:description]
149
+ item_tag.encoded_tag! :SellersItemIdentification do |sellers_item_identification_tag|
150
+ sellers_item_identification_tag.encoded_tag! :ID, item[:sellers_item_identification]
151
+ end if item[:sellers_item_identification]
152
+ end
153
+ draw_invoice_line_extensions(invoice_line, item) if ledger_item.respond_to?(:draw_invoice_line_extensions)
154
+ end
155
+ end
156
+ end
157
+
158
+ def build_tax_sub_totals(tax_total, tax_sub_totals)
159
+ for tax_sub_total in tax_sub_totals
160
+ tax_total.encoded_tag! :TaxSubTotal do |tax_sub_total_tag|
161
+ tax_sub_total_tag.encoded_tag! :TaxableAmount, tax_sub_total[:taxable_amount]
162
+ tax_sub_total_tag.encoded_tag! :TaxInclusiveAmount, tax_sub_total[:tax_inclusive_amount]
163
+ tax_sub_total_tag.encoded_tag! :TaxAmount, tax_sub_total[:tax_amount]
164
+ tax_sub_total_tag.encoded_tag! :AlreadyClaimedTaxableAmount, tax_sub_total[:already_claimed_taxable_amount]
165
+ tax_sub_total_tag.encoded_tag! :AlreadyClaimedTaxAmount, tax_sub_total[:already_claimed_tax_amount]
166
+ tax_sub_total_tag.encoded_tag! :AlreadyClaimedTaxInclusiveAmount, tax_sub_total[:already_claimed_tax_inclusive_amount]
167
+ tax_sub_total_tag.encoded_tag! :DifferenceTaxableAmount, tax_sub_total[:difference_taxable_amount]
168
+ tax_sub_total_tag.encoded_tag! :DifferenceTaxAmount, tax_sub_total[:difference_tax_amount]
169
+ tax_sub_total_tag.encoded_tag! :DifferenceTaxInclusiveAmount, tax_sub_total[:difference_tax_inclusive_amount]
170
+ tax_sub_total_tag.encoded_tag! :TaxCategory do |tax_category|
171
+ tax_category.encoded_tag! :Percent, tax_sub_total[:tax_percent]
172
+ end
173
+ end
174
+ end
175
+ end
176
+
177
+ def build_bank_account(xml, details, main_bank_account=false)
178
+ xml.encoded_tag! :PaymentDueDate, details[:payment_due_date] if details[:payment_due_date]
179
+ xml.encoded_tag! :ID, details[:id]
180
+ xml.encoded_tag! :BankCode, details[:bank_code]
181
+ xml.encoded_tag! :Name, details[:name]
182
+ xml.encoded_tag! :IBAN, details[:iban]
183
+ xml.encoded_tag! :BIC, details[:bic]
184
+ xml.encoded_tag! :VariableSymbol, payment_means_detail[:variable_symbol] if main_bank_account
185
+ end
186
+
187
+ def build_non_taxed_deposits(xml, details)
188
+ for detail in details
189
+ xml.encoded_tag! :NonTaxedDeposit do |non_taxed_deposit|
190
+ non_taxed_deposit.encoded_tag! :ID, detail[:id]
191
+ non_taxed_deposit.encoded_tag! :VariableSymbol, detail[:variable_symbol]
192
+ non_taxed_deposit.encoded_tag! :DepositAmount, detail[:deposit_amount]
193
+ end
194
+ end
195
+ end
196
+
197
+ def build_taxed_deposits(xml, details)
198
+ for detail in details
199
+ xml.encoded_tag! :TaxedDeposit do |taxed_deposit|
200
+ taxed_deposit.encoded_tag! :ID, detail[:id]
201
+ taxed_deposit.encoded_tag! :VariableSymbol, detail[:variable_symbol]
202
+ taxed_deposit.encoded_tag! :TaxableDepositAmount, detail[:taxable_deposit_amount]
203
+ taxed_deposit.encoded_tag! :TaxInclusiveDepositAmount, detail[:tax_inclusive_deposit_amount]
204
+ taxed_deposit.encoded_tag! :ClassifiedTaxCategory do |classified_tax_category|
205
+ classified_tax_category.encoded_tag! :Percent, detail[:tax_percent]
206
+ classified_tax_category.encoded_tag! :VATCalculationMethod, detail[:vat_calculation_method]
207
+ end
208
+ end
209
+ end
210
+ end
211
+
212
+ def method_missing(method_id, *args, &block)
213
+ # method renaming if requested in options
214
+ if options.has_key?(method_id.to_sym)
215
+ method_id = options[method_id.to_sym]
216
+ # allows setting default values directly instead of calling a method
217
+ return method_id unless ledger_item.respond_to?(method_id)
218
+ end
219
+ return ledger_item.send(method_id, *args) if ledger_item.respond_to?(method_id)
220
+ end
221
+
222
+ end
@@ -0,0 +1,5 @@
1
+ # -*- encoding : utf-8 -*-
2
+ # desc "Explaining what the task does"
3
+ # task :acts_as_isdoc do
4
+ # # Task goes here
5
+ # end
@@ -0,0 +1,1928 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+
4
+ Schéma pro fakturu ISDOC
5
+
6
+ (c) 2009 Sdružení pro informační společnost, http://www.spis.cz/
7
+
8
+ $Id: isdoc-invoice-5.2.xsd,v 1.4 2009/07/07 19:41:32 jkj Exp $
9
+
10
+ -->
11
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://isdoc.cz/namespace/invoice" targetNamespace="http://isdoc.cz/namespace/invoice" elementFormDefault="qualified" version="5.2" xml:lang="cs">
12
+
13
+ <xs:element name="Invoice">
14
+ <xs:annotation>
15
+ <xs:documentation>Hlavní element dokumentu, jeho subtyp viz položka
16
+ DocumentType</xs:documentation>
17
+ </xs:annotation>
18
+ <xs:complexType>
19
+ <xs:sequence>
20
+ <xs:element name="DocumentType" type="DocumentTypeType">
21
+ <xs:annotation>
22
+ <xs:documentation>Typ dokumentu</xs:documentation>
23
+ </xs:annotation>
24
+ </xs:element>
25
+ <xs:element name="TargetConsolidator" type="TargetConsolidatorType" minOccurs="0">
26
+ <xs:annotation>
27
+ <xs:documentation>Identifikace cílového konsolidátora</xs:documentation>
28
+ </xs:annotation>
29
+ </xs:element>
30
+ <xs:element name="ClientOnTargetConsolidator" type="ClientOnTargetConsolidatorType" minOccurs="0">
31
+ <xs:annotation>
32
+ <xs:documentation>Identifikace příjemce dokladu u cílového konsolidátora</xs:documentation>
33
+ </xs:annotation>
34
+ </xs:element>
35
+ <xs:element name="ID" type="IDType">
36
+ <xs:annotation>
37
+ <xs:documentation>Lidsky čitelné číslo dokladu</xs:documentation>
38
+ </xs:annotation>
39
+ </xs:element>
40
+ <xs:element name="UUID" type="UUIDType">
41
+ <xs:annotation>
42
+ <xs:documentation>GUID identifikace od emitujícího systému</xs:documentation>
43
+ </xs:annotation>
44
+ </xs:element>
45
+ <xs:element name="IssuingSystem" type="IssuingSystemType" minOccurs="0">
46
+ <xs:annotation>
47
+ <xs:documentation>Identifikace systému, který odesílá/generuje fakturu</xs:documentation>
48
+ </xs:annotation>
49
+ </xs:element>
50
+ <xs:element name="IssueDate" type="IssueDateType">
51
+ <xs:annotation>
52
+ <xs:documentation>Datum vystavení</xs:documentation>
53
+ </xs:annotation>
54
+ </xs:element>
55
+ <xs:element name="TaxPointDate" type="TaxPointDateType" minOccurs="0">
56
+ <xs:annotation>
57
+ <xs:documentation>Datum zdanitelného plnění</xs:documentation>
58
+ </xs:annotation>
59
+ </xs:element>
60
+ <xs:element name="Note" type="NoteType" minOccurs="0">
61
+ <xs:annotation>
62
+ <xs:documentation>Poznámka</xs:documentation>
63
+ </xs:annotation>
64
+ </xs:element>
65
+ <xs:element name="OrderReferences" type="OrderReferencesType" minOccurs="0">
66
+ <xs:annotation>
67
+ <xs:documentation>Hlavičková kolekce objednávek pro případnou vazbu</xs:documentation>
68
+ </xs:annotation>
69
+ </xs:element>
70
+ <xs:element name="DeliveryNoteReferences" type="DeliveryNoteReferencesType" minOccurs="0">
71
+ <xs:annotation>
72
+ <xs:documentation>Hlavičková kolekce dodacích listů pro případnou vazbu</xs:documentation>
73
+ </xs:annotation>
74
+ </xs:element>
75
+ <xs:element name="LocalCurrencyCode" type="CurrencyCodeType">
76
+ <xs:annotation>
77
+ <xs:documentation>Kód měny</xs:documentation>
78
+ </xs:annotation>
79
+ </xs:element>
80
+ <xs:element name="ForeignCurrencyCode" type="CurrencyCodeType" minOccurs="0">
81
+ <xs:annotation>
82
+ <xs:documentation>Kód měny</xs:documentation>
83
+ </xs:annotation>
84
+ </xs:element>
85
+ <xs:element name="CurrRate" type="CurrRateType">
86
+ <xs:annotation>
87
+ <xs:documentation>Kurz cizí měny, pokud je použita, jinak 1</xs:documentation>
88
+ </xs:annotation>
89
+ </xs:element>
90
+ <xs:element name="RefCurrRate" type="RefCurrRateType">
91
+ <xs:annotation>
92
+ <xs:documentation>Vztažný kurz cizí měny, většinou 1</xs:documentation>
93
+ </xs:annotation>
94
+ </xs:element>
95
+ <xs:element name="OriginalDocumentReference" type="OriginalDocumentReferenceType" minOccurs="0">
96
+ <xs:annotation>
97
+ <xs:documentation>Odkaz na původní doklad, který tento aktuální doklad opravuje (jen pro typy
98
+ dokumentů 2, 3 a 6)</xs:documentation>
99
+ </xs:annotation>
100
+ </xs:element>
101
+ <xs:element name="SupplementsList" type="SupplementsListType" minOccurs="0">
102
+ <xs:annotation>
103
+ <xs:documentation>Kolekce příloh dokladu. Jedna z nich může být náhled, je označena pomocí
104
+ preview="true"</xs:documentation>
105
+ </xs:annotation>
106
+ </xs:element>
107
+ <xs:element name="Extensions" type="ExtensionsType" minOccurs="0">
108
+ <xs:annotation>
109
+ <xs:documentation>Jakákoliv struktura uživatelských elementů. Elementy musí používat vlastní
110
+ jmenný prostor.</xs:documentation>
111
+ </xs:annotation>
112
+ </xs:element>
113
+ <xs:element name="AccountingSupplierParty" type="AccountingSupplierPartyType">
114
+ <xs:annotation>
115
+ <xs:documentation>Dodavatel, účetní jednotka</xs:documentation>
116
+ </xs:annotation>
117
+ </xs:element>
118
+ <xs:element name="SellerSupplierParty" type="SellerSupplierPartyType" minOccurs="0">
119
+ <xs:annotation>
120
+ <xs:documentation>Dodavatel, fakturační adresa</xs:documentation>
121
+ </xs:annotation>
122
+ </xs:element>
123
+ <xs:element name="AccountingCustomerParty" type="AccountingCustomerPartyType">
124
+ <xs:annotation>
125
+ <xs:documentation>Příjemce, účetní jednotka</xs:documentation>
126
+ </xs:annotation>
127
+ </xs:element>
128
+ <xs:element name="BuyerCustomerParty" type="BuyerCustomerPartyType" minOccurs="0">
129
+ <xs:annotation>
130
+ <xs:documentation>Odběratel, fakturační adresa</xs:documentation>
131
+ </xs:annotation>
132
+ </xs:element>
133
+ <xs:element name="Delivery" type="DeliveryType" minOccurs="0">
134
+ <xs:annotation>
135
+ <xs:documentation>Místo určení, adresa dodání</xs:documentation>
136
+ </xs:annotation>
137
+ </xs:element>
138
+ <xs:element name="InvoiceLines" type="InvoiceLinesType">
139
+ <xs:annotation>
140
+ <xs:documentation>Kolekce jednotlivých řádků faktury</xs:documentation>
141
+ </xs:annotation>
142
+ </xs:element>
143
+ <xs:element name="NonTaxedDeposits" type="NonTaxedDepositsType" minOccurs="0">
144
+ <xs:annotation>
145
+ <xs:documentation>Kolekce nedaňových zálohových listů</xs:documentation>
146
+ </xs:annotation>
147
+ </xs:element>
148
+ <xs:element name="TaxedDeposits" type="TaxedDepositsType" minOccurs="0">
149
+ <xs:annotation>
150
+ <xs:documentation>Kolekce odúčtování zdaněných zálohových listů</xs:documentation>
151
+ </xs:annotation>
152
+ </xs:element>
153
+ <xs:element name="TaxTotal" type="TaxTotalType">
154
+ <xs:annotation>
155
+ <xs:documentation>Daňová rekapitulace</xs:documentation>
156
+ </xs:annotation>
157
+ </xs:element>
158
+ <xs:element name="LegalMonetaryTotal" type="LegalMonetaryTotalType">
159
+ <xs:annotation>
160
+ <xs:documentation>Kolekce celkových částek na dokladu končící položkou částka k zaplacení</xs:documentation>
161
+ </xs:annotation>
162
+ </xs:element>
163
+ <xs:element name="PaymentMeans" type="PaymentMeansType" minOccurs="0">
164
+ <xs:annotation>
165
+ <xs:documentation>Kolekce plateb</xs:documentation>
166
+ </xs:annotation>
167
+ </xs:element>
168
+ <xs:group ref="Signature" minOccurs="0"/>
169
+ </xs:sequence>
170
+ <xs:attribute name="version" use="required" type="VersionType">
171
+ <xs:annotation>
172
+ <xs:documentation>Číslo verze ISDOC</xs:documentation>
173
+ </xs:annotation>
174
+ </xs:attribute>
175
+ </xs:complexType>
176
+ </xs:element>
177
+
178
+ <xs:group name="Signature">
179
+ <xs:annotation>
180
+ <xs:documentation>Digitální podpis dokladu ve formátu Enveloped XML Signature
181
+ (http://www.w3.org/TR/xmldsig-core/)</xs:documentation>
182
+ </xs:annotation>
183
+ <xs:sequence>
184
+ <xs:any namespace="http://www.w3.org/2000/09/xmldsig#" processContents="lax"/>
185
+ </xs:sequence>
186
+ </xs:group>
187
+
188
+ <xs:simpleType name="VersionType">
189
+ <xs:annotation>
190
+ <xs:documentation>Číslo verze ISDOC</xs:documentation>
191
+ </xs:annotation>
192
+ <xs:restriction base="xs:string">
193
+ <xs:enumeration value="5.2"/>
194
+ </xs:restriction>
195
+ </xs:simpleType>
196
+
197
+ <xs:simpleType name="DocumentTypeType">
198
+ <xs:annotation>
199
+ <xs:documentation>Typ dokumentu</xs:documentation>
200
+ </xs:annotation>
201
+ <xs:restriction base="xs:integer">
202
+ <xs:enumeration value="1">
203
+ <xs:annotation>
204
+ <xs:documentation>faktura</xs:documentation>
205
+ </xs:annotation>
206
+ </xs:enumeration>
207
+ <xs:enumeration value="2">
208
+ <xs:annotation>
209
+ <xs:documentation>dobropis</xs:documentation>
210
+ </xs:annotation>
211
+ </xs:enumeration>
212
+ <xs:enumeration value="3">
213
+ <xs:annotation>
214
+ <xs:documentation>vrubopis</xs:documentation>
215
+ </xs:annotation>
216
+ </xs:enumeration>
217
+ <xs:enumeration value="4">
218
+ <xs:annotation>
219
+ <xs:documentation>zálohová faktura (nedaňový zálohový list)</xs:documentation>
220
+ </xs:annotation>
221
+ </xs:enumeration>
222
+ <xs:enumeration value="5">
223
+ <xs:annotation>
224
+ <xs:documentation>daňový zálohový list</xs:documentation>
225
+ </xs:annotation>
226
+ </xs:enumeration>
227
+ <xs:enumeration value="6">
228
+ <xs:annotation>
229
+ <xs:documentation>dobropis daňového zálohového listu</xs:documentation>
230
+ </xs:annotation>
231
+ </xs:enumeration>
232
+ </xs:restriction>
233
+ </xs:simpleType>
234
+
235
+ <xs:simpleType name="TargetConsolidatorType">
236
+ <xs:annotation>
237
+ <xs:documentation>Identifikace cílového konsolidátora</xs:documentation>
238
+ </xs:annotation>
239
+ <xs:restriction base="xs:string"/>
240
+ </xs:simpleType>
241
+
242
+ <xs:simpleType name="ClientOnTargetConsolidatorType">
243
+ <xs:annotation>
244
+ <xs:documentation>Identifikace příjemce dokladu u cílového konsolidátora</xs:documentation>
245
+ </xs:annotation>
246
+ <xs:restriction base="xs:string"/>
247
+ </xs:simpleType>
248
+
249
+ <xs:simpleType name="IDType">
250
+ <xs:annotation>
251
+ <xs:documentation>Unikátní identifikátor</xs:documentation>
252
+ </xs:annotation>
253
+ <xs:restriction base="xs:string"/>
254
+ </xs:simpleType>
255
+
256
+ <xs:simpleType name="ID36Type">
257
+ <xs:annotation>
258
+ <xs:documentation>Unikátní identifikátor s maximální délkou 36 znaků</xs:documentation>
259
+ </xs:annotation>
260
+ <xs:restriction base="IDType">
261
+ <xs:maxLength value="36"/>
262
+ </xs:restriction>
263
+ </xs:simpleType>
264
+
265
+ <xs:simpleType name="UUIDType">
266
+ <xs:annotation>
267
+ <xs:documentation>Unikátní identifikátor GUID</xs:documentation>
268
+ </xs:annotation>
269
+ <xs:restriction base="xs:string">
270
+ <xs:pattern value="[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}"/>
271
+ </xs:restriction>
272
+ </xs:simpleType>
273
+
274
+ <xs:simpleType name="IssuingSystemType">
275
+ <xs:annotation>
276
+ <xs:documentation>Identifikace systému, který odesílá/generuje fakturu</xs:documentation>
277
+ </xs:annotation>
278
+ <xs:restriction base="xs:string">
279
+ <xs:maxLength value="80"/>
280
+ </xs:restriction>
281
+ </xs:simpleType>
282
+
283
+ <xs:simpleType name="IssueDateType">
284
+ <xs:annotation>
285
+ <xs:documentation>Datum vystavení</xs:documentation>
286
+ </xs:annotation>
287
+ <xs:restriction base="xs:date"/>
288
+ </xs:simpleType>
289
+
290
+ <xs:simpleType name="TaxPointDateType">
291
+ <xs:annotation>
292
+ <xs:documentation>Datum zdanitelného plnění</xs:documentation>
293
+ </xs:annotation>
294
+ <xs:restriction base="xs:date"/>
295
+ </xs:simpleType>
296
+
297
+ <xs:complexType name="NoteType">
298
+ <xs:annotation>
299
+ <xs:documentation>Poznámka</xs:documentation>
300
+ </xs:annotation>
301
+ <xs:simpleContent>
302
+ <xs:extension base="xs:string">
303
+ <xs:attribute name="languageID" type="xs:language" use="optional">
304
+ <xs:annotation>
305
+ <xs:documentation>Identifikátor použitého jazyka (např. "cs" pro
306
+ češtinu)</xs:documentation>
307
+ </xs:annotation>
308
+ </xs:attribute>
309
+ </xs:extension>
310
+ </xs:simpleContent>
311
+ </xs:complexType>
312
+
313
+ <xs:complexType name="OrderReferencesType">
314
+ <xs:annotation>
315
+ <xs:documentation>Hlavičková kolekce objednávek pro případnou vazbu</xs:documentation>
316
+ </xs:annotation>
317
+ <xs:sequence>
318
+ <xs:element name="OrderReference" type="OrderReferenceType" maxOccurs="unbounded">
319
+ <xs:annotation>
320
+ <xs:documentation>Odkaz na související objednávku</xs:documentation>
321
+ </xs:annotation>
322
+ </xs:element>
323
+ </xs:sequence>
324
+ </xs:complexType>
325
+
326
+ <xs:complexType name="OrderReferenceType">
327
+ <xs:annotation>
328
+ <xs:documentation>Odkaz na související objednávku</xs:documentation>
329
+ </xs:annotation>
330
+ <xs:sequence>
331
+ <xs:element name="SalesOrderID" type="SalesOrderIDType">
332
+ <xs:annotation>
333
+ <xs:documentation>Vlastní identifikátor objednávky přijaté u dodavatele</xs:documentation>
334
+ </xs:annotation>
335
+ </xs:element>
336
+ <xs:element name="ExternalOrderID" type="IDType" minOccurs="0">
337
+ <xs:annotation>
338
+ <xs:documentation>Externí číslo objednávky přijaté, typicky objednávka vydaná u
339
+ odběratele</xs:documentation>
340
+ </xs:annotation>
341
+ </xs:element>
342
+ <xs:element name="IssueDate" type="IssueDateType">
343
+ <xs:annotation>
344
+ <xs:documentation>Datum vystavení objednávky přijaté u dodavatele</xs:documentation>
345
+ </xs:annotation>
346
+ </xs:element>
347
+ </xs:sequence>
348
+ </xs:complexType>
349
+
350
+ <xs:complexType name="OrderLineReferenceType">
351
+ <xs:annotation>
352
+ <xs:documentation>Odkaz na řádku související objednávky</xs:documentation>
353
+ </xs:annotation>
354
+ <xs:sequence>
355
+ <xs:element name="SalesOrderID" type="SalesOrderIDType">
356
+ <xs:annotation>
357
+ <xs:documentation>Vlastní identifikátor objednávky přijaté u dodavatele</xs:documentation>
358
+ </xs:annotation>
359
+ </xs:element>
360
+ <xs:element name="ExternalOrderID" type="IDType" minOccurs="0">
361
+ <xs:annotation>
362
+ <xs:documentation>Externí číslo objednávky přijaté, typicky objednávka vydaná u
363
+ odběratele</xs:documentation>
364
+ </xs:annotation>
365
+ </xs:element>
366
+ <xs:element name="IssueDate" type="IssueDateType">
367
+ <xs:annotation>
368
+ <xs:documentation>Datum vystavení objednávky přijaté u dodavatele</xs:documentation>
369
+ </xs:annotation>
370
+ </xs:element>
371
+ <xs:element name="LineID" type="LineIDType">
372
+ <xs:annotation>
373
+ <xs:documentation>Číslo řádky na dokladu</xs:documentation>
374
+ </xs:annotation>
375
+ </xs:element>
376
+ </xs:sequence>
377
+ </xs:complexType>
378
+
379
+ <xs:simpleType name="SalesOrderIDType">
380
+ <xs:annotation>
381
+ <xs:documentation>Vlastní identifikátor objednávky přijaté u dodavatele</xs:documentation>
382
+ </xs:annotation>
383
+ <xs:restriction base="IDType"/>
384
+ </xs:simpleType>
385
+
386
+ <xs:simpleType name="LineIDType">
387
+ <xs:annotation>
388
+ <xs:documentation>Číslo řádky na dokladu</xs:documentation>
389
+ </xs:annotation>
390
+ <xs:restriction base="IDType"/>
391
+ </xs:simpleType>
392
+
393
+ <xs:complexType name="DeliveryNoteReferencesType">
394
+ <xs:annotation>
395
+ <xs:documentation>Hlavičková kolekce dodacích listů pro případnou vazbu</xs:documentation>
396
+ </xs:annotation>
397
+ <xs:sequence>
398
+ <xs:element name="DeliveryNoteReference" type="DeliveryNoteReferenceType" maxOccurs="unbounded">
399
+ <xs:annotation>
400
+ <xs:documentation>Odkaz na související dodací list</xs:documentation>
401
+ </xs:annotation>
402
+ </xs:element>
403
+ </xs:sequence>
404
+ </xs:complexType>
405
+
406
+ <xs:complexType name="DeliveryNoteReferenceType">
407
+ <xs:annotation>
408
+ <xs:documentation>Odkaz na související dodací list</xs:documentation>
409
+ </xs:annotation>
410
+ <xs:sequence>
411
+ <xs:element name="ID" type="IDType">
412
+ <xs:annotation>
413
+ <xs:documentation>Vlastní identifikátor dodacího listu u dodavatele</xs:documentation>
414
+ </xs:annotation>
415
+ </xs:element>
416
+ <xs:element name="IssueDate" type="IssueDateType">
417
+ <xs:annotation>
418
+ <xs:documentation>Datum vystavení</xs:documentation>
419
+ </xs:annotation>
420
+ </xs:element>
421
+ </xs:sequence>
422
+ </xs:complexType>
423
+
424
+ <xs:complexType name="DeliveryNoteLineReferenceType">
425
+ <xs:annotation>
426
+ <xs:documentation>Odkaz na související dodací list</xs:documentation>
427
+ </xs:annotation>
428
+ <xs:sequence>
429
+ <xs:element name="ID" type="IDType">
430
+ <xs:annotation>
431
+ <xs:documentation>Vlastní identifikátor dodacího listu u dodavatele</xs:documentation>
432
+ </xs:annotation>
433
+ </xs:element>
434
+ <xs:element name="IssueDate" type="IssueDateType">
435
+ <xs:annotation>
436
+ <xs:documentation>Datum vystavení</xs:documentation>
437
+ </xs:annotation>
438
+ </xs:element>
439
+ <xs:element name="LineID" type="LineIDType">
440
+ <xs:annotation>
441
+ <xs:documentation>Číslo řádky na dokladu</xs:documentation>
442
+ </xs:annotation>
443
+ </xs:element>
444
+ </xs:sequence>
445
+ </xs:complexType>
446
+
447
+ <xs:simpleType name="CurrRateType">
448
+ <xs:annotation>
449
+ <xs:documentation>Kurz cizí měny, pokud je použita, jinak 1</xs:documentation>
450
+ </xs:annotation>
451
+ <xs:restriction base="xs:decimal"/>
452
+ </xs:simpleType>
453
+
454
+ <xs:simpleType name="RefCurrRateType">
455
+ <xs:annotation>
456
+ <xs:documentation>Vztažný kurz cizí měny, většinou 1</xs:documentation>
457
+ </xs:annotation>
458
+ <xs:restriction base="xs:decimal"/>
459
+ </xs:simpleType>
460
+
461
+ <xs:complexType name="OriginalDocumentReferenceType">
462
+ <xs:annotation>
463
+ <xs:documentation>Odkaz na původní doklad, který tento aktuální doklad opravuje (jen pro typy
464
+ dokumentů 2, 3 a 6)</xs:documentation>
465
+ </xs:annotation>
466
+ <xs:sequence>
467
+ <xs:element name="ID" type="IDType">
468
+ <xs:annotation>
469
+ <xs:documentation>Lidsky čitelné číslo původního dokladu</xs:documentation>
470
+ </xs:annotation>
471
+ </xs:element>
472
+ <xs:element name="IssueDate" type="IssueDateType">
473
+ <xs:annotation>
474
+ <xs:documentation>Datum vystavení původního dokladu</xs:documentation>
475
+ </xs:annotation>
476
+ </xs:element>
477
+ <xs:element name="UUID" type="UUIDType" minOccurs="0">
478
+ <xs:annotation>
479
+ <xs:documentation>Unikátní identifikátor GUID</xs:documentation>
480
+ </xs:annotation>
481
+ </xs:element>
482
+ </xs:sequence>
483
+ </xs:complexType>
484
+
485
+ <xs:complexType name="OriginalDocumentLineReferenceType">
486
+ <xs:annotation>
487
+ <xs:documentation>Odkaz na původní doklad, který tento aktuální doklad opravuje (jen pro typy
488
+ dokumentů 2, 3 a 6)</xs:documentation>
489
+ </xs:annotation>
490
+ <xs:sequence>
491
+ <xs:element name="ID" type="IDType">
492
+ <xs:annotation>
493
+ <xs:documentation>Lidsky čitelné číslo původního dokladu</xs:documentation>
494
+ </xs:annotation>
495
+ </xs:element>
496
+ <xs:element name="IssueDate" type="IssueDateType" minOccurs="0">
497
+ <xs:annotation>
498
+ <xs:documentation>Datum vystavení původního dokladu</xs:documentation>
499
+ </xs:annotation>
500
+ </xs:element>
501
+ <xs:element name="UUID" type="UUIDType" minOccurs="0">
502
+ <xs:annotation>
503
+ <xs:documentation>Unikátní identifikátor GUID</xs:documentation>
504
+ </xs:annotation>
505
+ </xs:element>
506
+ <xs:element name="LineID" type="LineIDType">
507
+ <xs:annotation>
508
+ <xs:documentation>Číslo řádky na dokladu</xs:documentation>
509
+ </xs:annotation>
510
+ </xs:element>
511
+ </xs:sequence>
512
+ </xs:complexType>
513
+
514
+ <xs:complexType name="SupplementsListType">
515
+ <xs:annotation>
516
+ <xs:documentation>Kolekce příloh dokladu. Jedna z nich může být náhled, je označena pomocí
517
+ preview="true"</xs:documentation>
518
+ </xs:annotation>
519
+ <xs:sequence>
520
+ <xs:element maxOccurs="unbounded" name="Supplement" type="SupplementType">
521
+ <xs:annotation>
522
+ <xs:documentation>Příloha dokladu</xs:documentation>
523
+ </xs:annotation>
524
+ </xs:element>
525
+ </xs:sequence>
526
+ </xs:complexType>
527
+
528
+ <xs:complexType name="SupplementType">
529
+ <xs:annotation>
530
+ <xs:documentation>Příloha dokladu</xs:documentation>
531
+ </xs:annotation>
532
+ <xs:sequence>
533
+ <xs:element name="Filename" type="FilenameType">
534
+ <xs:annotation>
535
+ <xs:documentation>Jméno a cesta k souboru</xs:documentation>
536
+ </xs:annotation>
537
+ </xs:element>
538
+ <xs:element name="DigestMethod" type="DigestMethodType">
539
+ <xs:annotation>
540
+ <xs:documentation>Identifikace metody použité při výpočtu otisku přílohy</xs:documentation>
541
+ </xs:annotation>
542
+ </xs:element>
543
+ <xs:element name="DigestValue" type="DigestValueType">
544
+ <xs:annotation>
545
+ <xs:documentation>Hodnota otisku přílohy</xs:documentation>
546
+ </xs:annotation>
547
+ </xs:element>
548
+ </xs:sequence>
549
+ <xs:attribute name="preview" type="BooleanType">
550
+ <xs:annotation>
551
+ <xs:documentation>Je daná příloha náhledem dokladu</xs:documentation>
552
+ </xs:annotation>
553
+ </xs:attribute>
554
+ </xs:complexType>
555
+
556
+ <xs:simpleType name="FilenameType">
557
+ <xs:annotation>
558
+ <xs:documentation>Jméno a cesta k souboru</xs:documentation>
559
+ </xs:annotation>
560
+ <xs:restriction base="xs:string"/>
561
+ </xs:simpleType>
562
+
563
+ <xs:complexType name="DigestMethodType">
564
+ <xs:annotation>
565
+ <xs:documentation>Identifikace metody použité při výpočtu otisku přílohy</xs:documentation>
566
+ </xs:annotation>
567
+ <xs:attribute name="Algorithm" use="required" type="xs:anyURI">
568
+ <xs:annotation>
569
+ <xs:documentation>Identifikátory jednotlivých algoritmů jsou definovány v
570
+ http://www.w3.org/TR/xmldsig-core/#sec-AlgID</xs:documentation>
571
+ </xs:annotation>
572
+ </xs:attribute>
573
+ </xs:complexType>
574
+
575
+ <xs:simpleType name="DigestValueType">
576
+ <xs:annotation>
577
+ <xs:documentation>Hodnota otisku přílohy</xs:documentation>
578
+ </xs:annotation>
579
+ <xs:restriction base="xs:string"/>
580
+ </xs:simpleType>
581
+
582
+ <xs:simpleType name="BooleanType">
583
+ <xs:annotation>
584
+ <xs:documentation>Typ boolean, dovolené hodnoty jsou jen "true" a "false", tj. není
585
+ podporováno "0" a "1" jako u zabudovaného typu xs:boolean</xs:documentation>
586
+ </xs:annotation>
587
+ <xs:restriction base="xs:boolean">
588
+ <xs:pattern value="true|false"/>
589
+ </xs:restriction>
590
+ </xs:simpleType>
591
+
592
+ <xs:complexType name="ExtensionsType">
593
+ <xs:annotation>
594
+ <xs:documentation>Jakákoliv struktura uživatelských elementů. Elementy musí používat vlastní
595
+ jmenný prostor.</xs:documentation>
596
+ </xs:annotation>
597
+ <xs:sequence>
598
+ <xs:any minOccurs="1" maxOccurs="unbounded" namespace="##other" processContents="lax"/>
599
+ </xs:sequence>
600
+ </xs:complexType>
601
+
602
+ <xs:complexType name="AccountingSupplierPartyType">
603
+ <xs:annotation>
604
+ <xs:documentation>Dodavatel, účetní jednotka</xs:documentation>
605
+ </xs:annotation>
606
+ <xs:sequence>
607
+ <xs:element name="Party" type="PartyType">
608
+ <xs:annotation>
609
+ <xs:documentation>Identifikace subjektu</xs:documentation>
610
+ </xs:annotation>
611
+ </xs:element>
612
+ </xs:sequence>
613
+ </xs:complexType>
614
+
615
+ <xs:complexType name="PartyType">
616
+ <xs:annotation>
617
+ <xs:documentation>Identifikace subjektu</xs:documentation>
618
+ </xs:annotation>
619
+ <xs:sequence>
620
+ <xs:element name="PartyIdentification" type="PartyIdentificationType">
621
+ <xs:annotation>
622
+ <xs:documentation>Element identifikačních položek subjektu (firmy)</xs:documentation>
623
+ </xs:annotation>
624
+ </xs:element>
625
+ <xs:element name="PartyName" type="PartyNameType">
626
+ <xs:annotation>
627
+ <xs:documentation>Název subjektu</xs:documentation>
628
+ </xs:annotation>
629
+ </xs:element>
630
+ <xs:element name="PostalAddress" type="PostalAddressType">
631
+ <xs:annotation>
632
+ <xs:documentation>Poštovní adresa</xs:documentation>
633
+ </xs:annotation>
634
+ </xs:element>
635
+ <xs:element name="PartyTaxScheme" type="PartyTaxSchemeType" minOccurs="0">
636
+ <xs:annotation>
637
+ <xs:documentation>Daňové údaje</xs:documentation>
638
+ </xs:annotation>
639
+ </xs:element>
640
+ <xs:element minOccurs="0" name="RegisterIdentification" type="RegisterIdentificationType">
641
+ <xs:annotation>
642
+ <xs:documentation>Identifikace zápisu v rejstříku</xs:documentation>
643
+ </xs:annotation>
644
+ </xs:element>
645
+ <xs:element name="Contact" type="ContactType" minOccurs="0">
646
+ <xs:annotation>
647
+ <xs:documentation>Kontaktní osoba</xs:documentation>
648
+ </xs:annotation>
649
+ </xs:element>
650
+ </xs:sequence>
651
+ </xs:complexType>
652
+
653
+ <xs:complexType name="PartyIdentificationType">
654
+ <xs:annotation>
655
+ <xs:documentation>Element identifikačních položek subjektu (firmy)</xs:documentation>
656
+ </xs:annotation>
657
+ <xs:sequence>
658
+ <xs:element name="UserID" type="UserIDType" minOccurs="0">
659
+ <xs:annotation>
660
+ <xs:documentation>Uživatelské číslo firmy/provozovny</xs:documentation>
661
+ </xs:annotation>
662
+ </xs:element>
663
+ <xs:element name="CatalogFirmIdentification" type="CatalogFirmIdentificationType" minOccurs="0">
664
+ <xs:annotation>
665
+ <xs:documentation>Mezinárodní číslo firmy/provozovny, např. EAN</xs:documentation>
666
+ </xs:annotation>
667
+ </xs:element>
668
+ <xs:element name="ID" type="IDType">
669
+ <xs:annotation>
670
+ <xs:documentation>IČ</xs:documentation>
671
+ </xs:annotation>
672
+ </xs:element>
673
+ </xs:sequence>
674
+ </xs:complexType>
675
+
676
+ <xs:simpleType name="UserIDType">
677
+ <xs:annotation>
678
+ <xs:documentation>Uživatelské číslo firmy/provozovny</xs:documentation>
679
+ </xs:annotation>
680
+ <xs:restriction base="xs:string"/>
681
+ </xs:simpleType>
682
+
683
+ <xs:simpleType name="CatalogFirmIdentificationType">
684
+ <xs:annotation>
685
+ <xs:documentation>Mezinárodní číslo firmy/provozovny, např. EAN</xs:documentation>
686
+ </xs:annotation>
687
+ <xs:restriction base="xs:string"/>
688
+ </xs:simpleType>
689
+
690
+ <xs:complexType name="PartyNameType">
691
+ <xs:annotation>
692
+ <xs:documentation>Název subjektu</xs:documentation>
693
+ </xs:annotation>
694
+ <xs:sequence>
695
+ <xs:element name="Name" type="NameType">
696
+ <xs:annotation>
697
+ <xs:documentation>Název</xs:documentation>
698
+ </xs:annotation>
699
+ </xs:element>
700
+ </xs:sequence>
701
+ </xs:complexType>
702
+
703
+ <xs:simpleType name="NameType">
704
+ <xs:annotation>
705
+ <xs:documentation>Název</xs:documentation>
706
+ </xs:annotation>
707
+ <xs:restriction base="xs:string"/>
708
+ </xs:simpleType>
709
+
710
+ <xs:complexType name="PostalAddressType">
711
+ <xs:annotation>
712
+ <xs:documentation>Poštovní adresa</xs:documentation>
713
+ </xs:annotation>
714
+ <xs:sequence>
715
+ <xs:element name="StreetName" type="StreetNameType">
716
+ <xs:annotation>
717
+ <xs:documentation>Ulice</xs:documentation>
718
+ </xs:annotation>
719
+ </xs:element>
720
+ <xs:element name="BuildingNumber" type="BuildingNumberType">
721
+ <xs:annotation>
722
+ <xs:documentation>Číslo popisné/orientační</xs:documentation>
723
+ </xs:annotation>
724
+ </xs:element>
725
+ <xs:element name="CityName" type="CityNameType">
726
+ <xs:annotation>
727
+ <xs:documentation>Město</xs:documentation>
728
+ </xs:annotation>
729
+ </xs:element>
730
+ <xs:element name="PostalZone" type="PostalZoneType">
731
+ <xs:annotation>
732
+ <xs:documentation>PSČ</xs:documentation>
733
+ </xs:annotation>
734
+ </xs:element>
735
+ <xs:element name="Country" type="CountryType">
736
+ <xs:annotation>
737
+ <xs:documentation>Země</xs:documentation>
738
+ </xs:annotation>
739
+ </xs:element>
740
+ </xs:sequence>
741
+ </xs:complexType>
742
+
743
+ <xs:simpleType name="StreetNameType">
744
+ <xs:annotation>
745
+ <xs:documentation>Ulice</xs:documentation>
746
+ </xs:annotation>
747
+ <xs:restriction base="xs:string"/>
748
+ </xs:simpleType>
749
+
750
+ <xs:simpleType name="BuildingNumberType">
751
+ <xs:annotation>
752
+ <xs:documentation>Číslo popisné/orientační</xs:documentation>
753
+ </xs:annotation>
754
+ <xs:restriction base="xs:string"/>
755
+ </xs:simpleType>
756
+
757
+ <xs:simpleType name="CityNameType">
758
+ <xs:annotation>
759
+ <xs:documentation>Město</xs:documentation>
760
+ </xs:annotation>
761
+ <xs:restriction base="xs:string"/>
762
+ </xs:simpleType>
763
+
764
+ <xs:simpleType name="PostalZoneType">
765
+ <xs:annotation>
766
+ <xs:documentation>PSČ</xs:documentation>
767
+ </xs:annotation>
768
+ <xs:restriction base="xs:string"/>
769
+ </xs:simpleType>
770
+
771
+ <xs:complexType name="CountryType">
772
+ <xs:annotation>
773
+ <xs:documentation>Země</xs:documentation>
774
+ </xs:annotation>
775
+ <xs:sequence>
776
+ <xs:element name="IdentificationCode" type="IdentificationCodeType">
777
+ <xs:annotation>
778
+ <xs:documentation>Kód země podle ISO 3166</xs:documentation>
779
+ </xs:annotation>
780
+ </xs:element>
781
+ <xs:element name="Name" type="NameType">
782
+ <xs:annotation>
783
+ <xs:documentation>Název země</xs:documentation>
784
+ </xs:annotation>
785
+ </xs:element>
786
+ </xs:sequence>
787
+ </xs:complexType>
788
+
789
+ <xs:simpleType name="IdentificationCodeType">
790
+ <xs:annotation>
791
+ <xs:documentation>Kód země podle ISO 3166</xs:documentation>
792
+ </xs:annotation>
793
+ <xs:restriction base="xs:string"/>
794
+ </xs:simpleType>
795
+
796
+ <xs:complexType name="PartyTaxSchemeType">
797
+ <xs:annotation>
798
+ <xs:documentation>Daňové údaje</xs:documentation>
799
+ </xs:annotation>
800
+ <xs:sequence>
801
+ <xs:element name="CompanyID" type="CompanyIDType">
802
+ <xs:annotation>
803
+ <xs:documentation>DIČ</xs:documentation>
804
+ </xs:annotation>
805
+ </xs:element>
806
+ <xs:element name="TaxScheme" type="TaxSchemeType">
807
+ <xs:annotation>
808
+ <xs:documentation>Daňové schéma</xs:documentation>
809
+ </xs:annotation>
810
+ </xs:element>
811
+ </xs:sequence>
812
+ </xs:complexType>
813
+
814
+ <xs:simpleType name="CompanyIDType">
815
+ <xs:annotation>
816
+ <xs:documentation>DIČ</xs:documentation>
817
+ </xs:annotation>
818
+ <xs:restriction base="xs:string"/>
819
+ </xs:simpleType>
820
+
821
+ <xs:simpleType name="TaxSchemeType">
822
+ <xs:annotation>
823
+ <xs:documentation>Daňové schéma</xs:documentation>
824
+ </xs:annotation>
825
+ <xs:restriction base="xs:string"/>
826
+ </xs:simpleType>
827
+
828
+ <xs:complexType name="RegisterIdentificationType">
829
+ <xs:annotation>
830
+ <xs:documentation>Identifikace zápisu v rejstříku</xs:documentation>
831
+ </xs:annotation>
832
+ <xs:sequence>
833
+ <xs:element name="RegisterKeptAt" type="RegisterKeptAtType">
834
+ <xs:annotation>
835
+ <xs:documentation>Správce rejstříku</xs:documentation>
836
+ </xs:annotation>
837
+ </xs:element>
838
+ <xs:element name="RegisterFileRef" type="RegisterFileRefType">
839
+ <xs:annotation>
840
+ <xs:documentation>Číslo registrace</xs:documentation>
841
+ </xs:annotation>
842
+ </xs:element>
843
+ <xs:element name="RegisterDate" type="RegisterDateType">
844
+ <xs:annotation>
845
+ <xs:documentation>Datum registrace</xs:documentation>
846
+ </xs:annotation>
847
+ </xs:element>
848
+ </xs:sequence>
849
+ </xs:complexType>
850
+
851
+ <xs:simpleType name="RegisterKeptAtType">
852
+ <xs:annotation>
853
+ <xs:documentation>Správce rejstříku</xs:documentation>
854
+ </xs:annotation>
855
+ <xs:restriction base="xs:string"/>
856
+ </xs:simpleType>
857
+
858
+ <xs:simpleType name="RegisterFileRefType">
859
+ <xs:annotation>
860
+ <xs:documentation>Číslo registrace</xs:documentation>
861
+ </xs:annotation>
862
+ <xs:restriction base="xs:string"/>
863
+ </xs:simpleType>
864
+
865
+ <xs:simpleType name="RegisterDateType">
866
+ <xs:annotation>
867
+ <xs:documentation>Datum registrace</xs:documentation>
868
+ </xs:annotation>
869
+ <xs:restriction base="xs:date"/>
870
+ </xs:simpleType>
871
+
872
+ <xs:complexType name="ContactType">
873
+ <xs:annotation>
874
+ <xs:documentation>Kontaktní osoba</xs:documentation>
875
+ </xs:annotation>
876
+ <xs:sequence>
877
+ <xs:element name="Name" type="NameType" minOccurs="0">
878
+ <xs:annotation>
879
+ <xs:documentation>Jméno kontaktu</xs:documentation>
880
+ </xs:annotation>
881
+ </xs:element>
882
+ <xs:element name="Telephone" type="TelephoneType" minOccurs="0">
883
+ <xs:annotation>
884
+ <xs:documentation>Telefonní číslo</xs:documentation>
885
+ </xs:annotation>
886
+ </xs:element>
887
+ <xs:element name="ElectronicMail" type="ElectronicMailType" minOccurs="0">
888
+ <xs:annotation>
889
+ <xs:documentation>E-mailová adresa</xs:documentation>
890
+ </xs:annotation>
891
+ </xs:element>
892
+ </xs:sequence>
893
+ </xs:complexType>
894
+
895
+ <xs:simpleType name="TelephoneType">
896
+ <xs:annotation>
897
+ <xs:documentation>Telefonní číslo</xs:documentation>
898
+ </xs:annotation>
899
+ <xs:restriction base="xs:string"/>
900
+ </xs:simpleType>
901
+
902
+ <xs:simpleType name="ElectronicMailType">
903
+ <xs:annotation>
904
+ <xs:documentation>E-mailová adresa</xs:documentation>
905
+ </xs:annotation>
906
+ <xs:restriction base="xs:string"/>
907
+ </xs:simpleType>
908
+
909
+ <xs:complexType name="SellerSupplierPartyType">
910
+ <xs:annotation>
911
+ <xs:documentation>Dodavatel, fakturační adresa</xs:documentation>
912
+ </xs:annotation>
913
+ <xs:sequence>
914
+ <xs:element name="Party" type="PartyType">
915
+ <xs:annotation>
916
+ <xs:documentation>Identifikace subjektu</xs:documentation>
917
+ </xs:annotation>
918
+ </xs:element>
919
+ </xs:sequence>
920
+ </xs:complexType>
921
+
922
+ <xs:complexType name="AccountingCustomerPartyType">
923
+ <xs:annotation>
924
+ <xs:documentation>Příjemce, účetní jednotka</xs:documentation>
925
+ </xs:annotation>
926
+ <xs:sequence>
927
+ <xs:element name="Party" type="PartyType">
928
+ <xs:annotation>
929
+ <xs:documentation>Identifikace subjektu</xs:documentation>
930
+ </xs:annotation>
931
+ </xs:element>
932
+ </xs:sequence>
933
+ </xs:complexType>
934
+
935
+ <xs:complexType name="BuyerCustomerPartyType">
936
+ <xs:annotation>
937
+ <xs:documentation>Odběratel, fakturační adresa</xs:documentation>
938
+ </xs:annotation>
939
+ <xs:sequence>
940
+ <xs:element name="Party" type="PartyType">
941
+ <xs:annotation>
942
+ <xs:documentation>Identifikace subjektu</xs:documentation>
943
+ </xs:annotation>
944
+ </xs:element>
945
+ </xs:sequence>
946
+ </xs:complexType>
947
+
948
+ <xs:complexType name="DeliveryType">
949
+ <xs:annotation>
950
+ <xs:documentation>Místo určení, adresa dodání</xs:documentation>
951
+ </xs:annotation>
952
+ <xs:sequence>
953
+ <xs:element name="Party" type="PartyType">
954
+ <xs:annotation>
955
+ <xs:documentation>Identifikace subjektu</xs:documentation>
956
+ </xs:annotation>
957
+ </xs:element>
958
+ </xs:sequence>
959
+ </xs:complexType>
960
+
961
+ <xs:complexType name="InvoiceLinesType">
962
+ <xs:annotation>
963
+ <xs:documentation>Kolekce jednotlivých řádků faktury</xs:documentation>
964
+ </xs:annotation>
965
+ <xs:sequence>
966
+ <xs:element maxOccurs="unbounded" name="InvoiceLine" type="InvoiceLineType">
967
+ <xs:annotation>
968
+ <xs:documentation>Řádek faktury</xs:documentation>
969
+ </xs:annotation>
970
+ </xs:element>
971
+ </xs:sequence>
972
+ </xs:complexType>
973
+
974
+ <xs:complexType name="InvoiceLineType">
975
+ <xs:annotation>
976
+ <xs:documentation>Řádek faktury</xs:documentation>
977
+ </xs:annotation>
978
+ <xs:sequence>
979
+ <xs:element name="ID" type="ID36Type">
980
+ <xs:annotation>
981
+ <xs:documentation>Unikátní alfanumerický identifikátor řádku dokladu</xs:documentation>
982
+ </xs:annotation>
983
+ </xs:element>
984
+ <xs:element name="OrderReference" type="OrderLineReferenceType" minOccurs="0">
985
+ <xs:annotation>
986
+ <xs:documentation>Odkaz na řádku související objednávky</xs:documentation>
987
+ </xs:annotation>
988
+ </xs:element>
989
+ <xs:element name="DeliveryNoteReference" type="DeliveryNoteLineReferenceType" minOccurs="0">
990
+ <xs:annotation>
991
+ <xs:documentation>Odkaz na související dodací list</xs:documentation>
992
+ </xs:annotation>
993
+ </xs:element>
994
+ <xs:element name="OriginalDocumentReference" type="OriginalDocumentLineReferenceType" minOccurs="0">
995
+ <xs:annotation>
996
+ <xs:documentation>Odkaz na původní doklad, který tento aktuální doklad opravuje (jen pro typy
997
+ dokumentů 2, 3 a 6)</xs:documentation>
998
+ </xs:annotation>
999
+ </xs:element>
1000
+ <xs:element name="InvoicedQuantity" type="QuantityType" minOccurs="0">
1001
+ <xs:annotation>
1002
+ <xs:documentation>Účtované množství</xs:documentation>
1003
+ </xs:annotation>
1004
+ </xs:element>
1005
+ <xs:element name="LineExtensionAmountCurr" type="AmountType" minOccurs="0">
1006
+ <xs:annotation>
1007
+ <xs:documentation>Celková cena bez daně na řádku v cizí měně</xs:documentation>
1008
+ </xs:annotation>
1009
+ </xs:element>
1010
+ <xs:element name="LineExtensionAmount" type="AmountType">
1011
+ <xs:annotation>
1012
+ <xs:documentation>Celková cena bez daně na řádku v tuzemské měně</xs:documentation>
1013
+ </xs:annotation>
1014
+ </xs:element>
1015
+ <xs:element name="LineExtensionAmountTaxInclusiveCurr" type="AmountType" minOccurs="0">
1016
+ <xs:annotation>
1017
+ <xs:documentation>Celková cena včetně daně na řádku v cizí měně</xs:documentation>
1018
+ </xs:annotation>
1019
+ </xs:element>
1020
+ <xs:element name="LineExtensionAmountTaxInclusive" type="AmountType">
1021
+ <xs:annotation>
1022
+ <xs:documentation>Celková cena včetně daně na řádku v tuzemské měně</xs:documentation>
1023
+ </xs:annotation>
1024
+ </xs:element>
1025
+ <xs:element name="LineExtensionTaxAmount" type="AmountType">
1026
+ <xs:annotation>
1027
+ <xs:documentation>Částka daně na řádku v tuzemské měně</xs:documentation>
1028
+ </xs:annotation>
1029
+ </xs:element>
1030
+ <xs:element name="UnitPrice" type="AmountType">
1031
+ <xs:annotation>
1032
+ <xs:documentation>Jednotková cena bez daně na řádku v tuzemské měně</xs:documentation>
1033
+ </xs:annotation>
1034
+ </xs:element>
1035
+ <xs:element name="UnitPriceTaxInclusive" type="AmountType">
1036
+ <xs:annotation>
1037
+ <xs:documentation>Jednotková cena s daní na řádku v tuzemské měně</xs:documentation>
1038
+ </xs:annotation>
1039
+ </xs:element>
1040
+ <xs:element name="ClassifiedTaxCategory" type="ClassifiedTaxCategoryType">
1041
+ <xs:annotation>
1042
+ <xs:documentation>Daňová sazba</xs:documentation>
1043
+ </xs:annotation>
1044
+ </xs:element>
1045
+ <xs:element name="Note" type="NoteType" minOccurs="0">
1046
+ <xs:annotation>
1047
+ <xs:documentation>Poznámka</xs:documentation>
1048
+ </xs:annotation>
1049
+ </xs:element>
1050
+ <xs:element name="Item" type="ItemType">
1051
+ <xs:annotation>
1052
+ <xs:documentation>Informace o položce faktury</xs:documentation>
1053
+ </xs:annotation>
1054
+ </xs:element>
1055
+ <xs:element name="Extensions" type="ExtensionsType" minOccurs="0">
1056
+ <xs:annotation>
1057
+ <xs:documentation>Jakákoliv struktura uživatelských elementů. Elementy musí používat vlastní
1058
+ jmenný prostor.</xs:documentation>
1059
+ </xs:annotation>
1060
+ </xs:element>
1061
+ </xs:sequence>
1062
+ </xs:complexType>
1063
+
1064
+ <xs:complexType name="QuantityType">
1065
+ <xs:annotation>
1066
+ <xs:documentation>Množství</xs:documentation>
1067
+ </xs:annotation>
1068
+ <xs:simpleContent>
1069
+ <xs:extension base="xs:decimal">
1070
+ <xs:attribute name="unitCode" use="optional" type="xs:string">
1071
+ <xs:annotation>
1072
+ <xs:documentation>Jednotka</xs:documentation>
1073
+ </xs:annotation>
1074
+ </xs:attribute>
1075
+ </xs:extension>
1076
+ </xs:simpleContent>
1077
+ </xs:complexType>
1078
+
1079
+ <xs:simpleType name="CurrencyCodeType">
1080
+ <xs:annotation>
1081
+ <xs:documentation>Kód měny</xs:documentation>
1082
+ </xs:annotation>
1083
+ <xs:restriction base="xs:string">
1084
+ <xs:length value="3"/>
1085
+ </xs:restriction>
1086
+ </xs:simpleType>
1087
+
1088
+ <xs:simpleType name="AmountType">
1089
+ <xs:annotation>
1090
+ <xs:documentation>Částka</xs:documentation>
1091
+ </xs:annotation>
1092
+ <xs:restriction base="xs:decimal"/>
1093
+ </xs:simpleType>
1094
+
1095
+ <xs:complexType name="ClassifiedTaxCategoryType">
1096
+ <xs:annotation>
1097
+ <xs:documentation>Daňová sazba</xs:documentation>
1098
+ </xs:annotation>
1099
+ <xs:sequence>
1100
+ <xs:element name="Percent" type="PercentType">
1101
+ <xs:annotation>
1102
+ <xs:documentation>Procentní sazba DPH</xs:documentation>
1103
+ </xs:annotation>
1104
+ </xs:element>
1105
+ <xs:element name="VATCalculationMethod" type="VATCalculationMethodType">
1106
+ <xs:annotation>
1107
+ <xs:documentation>Způsob výpočtu DPH</xs:documentation>
1108
+ </xs:annotation>
1109
+ </xs:element>
1110
+ </xs:sequence>
1111
+ </xs:complexType>
1112
+
1113
+ <xs:simpleType name="PercentType">
1114
+ <xs:annotation>
1115
+ <xs:documentation>Procenta</xs:documentation>
1116
+ </xs:annotation>
1117
+ <xs:restriction base="xs:decimal"/>
1118
+ </xs:simpleType>
1119
+
1120
+ <xs:simpleType name="VATCalculationMethodType">
1121
+ <xs:annotation>
1122
+ <xs:documentation>Způsob výpočtu DPH</xs:documentation>
1123
+ </xs:annotation>
1124
+ <xs:restriction base="xs:integer">
1125
+ <xs:enumeration value="0">
1126
+ <xs:annotation>
1127
+ <xs:documentation>Zdola</xs:documentation>
1128
+ </xs:annotation>
1129
+ </xs:enumeration>
1130
+ <xs:enumeration value="1">
1131
+ <xs:annotation>
1132
+ <xs:documentation>Shora</xs:documentation>
1133
+ </xs:annotation>
1134
+ </xs:enumeration>
1135
+ </xs:restriction>
1136
+ </xs:simpleType>
1137
+
1138
+ <xs:complexType name="ItemType">
1139
+ <xs:annotation>
1140
+ <xs:documentation>Informace o položce faktury</xs:documentation>
1141
+ </xs:annotation>
1142
+ <xs:sequence>
1143
+ <xs:element name="Description" type="DescriptionType" minOccurs="0">
1144
+ <xs:annotation>
1145
+ <xs:documentation>Popis položky</xs:documentation>
1146
+ </xs:annotation>
1147
+ </xs:element>
1148
+ <xs:element name="CatalogueItemIdentification" type="CatalogueItemIdentificationType" minOccurs="0">
1149
+ <xs:annotation>
1150
+ <xs:documentation>Kód EAN</xs:documentation>
1151
+ </xs:annotation>
1152
+ </xs:element>
1153
+ <xs:element name="SellersItemIdentification" type="SellersItemIdentificationType" minOccurs="0">
1154
+ <xs:annotation>
1155
+ <xs:documentation>Identifikace zboží dle prodejce</xs:documentation>
1156
+ </xs:annotation>
1157
+ </xs:element>
1158
+ <xs:element name="SecondarySellersItemIdentification" type="SecondarySellersItemIdentificationType" minOccurs="0">
1159
+ <xs:annotation>
1160
+ <xs:documentation>Sekundární identifikace zboží dle prodejce</xs:documentation>
1161
+ </xs:annotation>
1162
+ </xs:element>
1163
+ <xs:element name="TertiarySellersItemIdentification" type="TertiarySellersItemIdentificationType" minOccurs="0">
1164
+ <xs:annotation>
1165
+ <xs:documentation>Terciální identifikace zboží dle prodejce</xs:documentation>
1166
+ </xs:annotation>
1167
+ </xs:element>
1168
+ <xs:element name="BuyersItemIdentification" type="BuyersItemIdentificationType" minOccurs="0">
1169
+ <xs:annotation>
1170
+ <xs:documentation>Identifikace zboží dle kupujícího</xs:documentation>
1171
+ </xs:annotation>
1172
+ </xs:element>
1173
+ <xs:element name="StoreBatches" type="StoreBatchesType" minOccurs="0">
1174
+ <xs:annotation>
1175
+ <xs:documentation>Kolekce šarží nebo sériových čísel</xs:documentation>
1176
+ </xs:annotation>
1177
+ </xs:element>
1178
+ </xs:sequence>
1179
+ </xs:complexType>
1180
+
1181
+ <xs:simpleType name="DescriptionType">
1182
+ <xs:annotation>
1183
+ <xs:documentation>Popis položky</xs:documentation>
1184
+ </xs:annotation>
1185
+ <xs:restriction base="xs:string"/>
1186
+ </xs:simpleType>
1187
+
1188
+ <xs:complexType name="CatalogueItemIdentificationType">
1189
+ <xs:annotation>
1190
+ <xs:documentation>Kód EAN</xs:documentation>
1191
+ </xs:annotation>
1192
+ <xs:sequence>
1193
+ <xs:element name="ID" type="IDType">
1194
+ <xs:annotation>
1195
+ <xs:documentation>Unikátní identifikátor</xs:documentation>
1196
+ </xs:annotation>
1197
+ </xs:element>
1198
+ </xs:sequence>
1199
+ </xs:complexType>
1200
+
1201
+ <xs:complexType name="SellersItemIdentificationType">
1202
+ <xs:annotation>
1203
+ <xs:documentation>Identifikace zboží dle prodejce</xs:documentation>
1204
+ </xs:annotation>
1205
+ <xs:sequence>
1206
+ <xs:element name="ID" type="IDType">
1207
+ <xs:annotation>
1208
+ <xs:documentation>Unikátní identifikátor</xs:documentation>
1209
+ </xs:annotation>
1210
+ </xs:element>
1211
+ </xs:sequence>
1212
+ </xs:complexType>
1213
+
1214
+ <xs:complexType name="SecondarySellersItemIdentificationType">
1215
+ <xs:annotation>
1216
+ <xs:documentation>Sekundární identifikace zboží dle prodejce</xs:documentation>
1217
+ </xs:annotation>
1218
+ <xs:sequence>
1219
+ <xs:element name="ID" type="IDType">
1220
+ <xs:annotation>
1221
+ <xs:documentation>Unikátní identifikátor</xs:documentation>
1222
+ </xs:annotation>
1223
+ </xs:element>
1224
+ </xs:sequence>
1225
+ </xs:complexType>
1226
+
1227
+ <xs:complexType name="TertiarySellersItemIdentificationType">
1228
+ <xs:annotation>
1229
+ <xs:documentation>Terciální identifikace zboží dle prodejce</xs:documentation>
1230
+ </xs:annotation>
1231
+ <xs:sequence>
1232
+ <xs:element name="ID" type="IDType">
1233
+ <xs:annotation>
1234
+ <xs:documentation>Unikátní identifikátor</xs:documentation>
1235
+ </xs:annotation>
1236
+ </xs:element>
1237
+ </xs:sequence>
1238
+ </xs:complexType>
1239
+
1240
+ <xs:complexType name="BuyersItemIdentificationType">
1241
+ <xs:annotation>
1242
+ <xs:documentation>Identifikace zboží dle kupujícího</xs:documentation>
1243
+ </xs:annotation>
1244
+ <xs:sequence>
1245
+ <xs:element name="ID" type="IDType">
1246
+ <xs:annotation>
1247
+ <xs:documentation>Unikátní identifikátor</xs:documentation>
1248
+ </xs:annotation>
1249
+ </xs:element>
1250
+ </xs:sequence>
1251
+ </xs:complexType>
1252
+
1253
+ <xs:complexType name="StoreBatchesType">
1254
+ <xs:annotation>
1255
+ <xs:documentation>Kolekce šarží nebo sériových čísel</xs:documentation>
1256
+ </xs:annotation>
1257
+ <xs:sequence>
1258
+ <xs:element name="StoreBatch" type="StoreBatchType" maxOccurs="unbounded">
1259
+ <xs:annotation>
1260
+ <xs:documentation>Šarže/sériové číslo</xs:documentation>
1261
+ </xs:annotation>
1262
+ </xs:element>
1263
+ </xs:sequence>
1264
+ </xs:complexType>
1265
+
1266
+ <xs:complexType name="StoreBatchType">
1267
+ <xs:annotation>
1268
+ <xs:documentation>Šarže/sériové číslo</xs:documentation>
1269
+ </xs:annotation>
1270
+ <xs:sequence>
1271
+ <xs:element name="Name" type="NameType">
1272
+ <xs:annotation>
1273
+ <xs:documentation>Název šarže/Sériové číslo</xs:documentation>
1274
+ </xs:annotation>
1275
+ </xs:element>
1276
+ <xs:element name="Note" type="NoteType" minOccurs="0">
1277
+ <xs:annotation>
1278
+ <xs:documentation>Poznámka</xs:documentation>
1279
+ </xs:annotation>
1280
+ </xs:element>
1281
+ <xs:element name="ExpirationDate" type="ExpirationDateType" minOccurs="0">
1282
+ <xs:annotation>
1283
+ <xs:documentation>Datum expirace</xs:documentation>
1284
+ </xs:annotation>
1285
+ </xs:element>
1286
+ <xs:element name="Specification" type="SpecificationType" minOccurs="0">
1287
+ <xs:annotation>
1288
+ <xs:documentation>Specifikace</xs:documentation>
1289
+ </xs:annotation>
1290
+ </xs:element>
1291
+ <xs:element name="Quantity" type="QuantityType">
1292
+ <xs:annotation>
1293
+ <xs:documentation>Množství</xs:documentation>
1294
+ </xs:annotation>
1295
+ </xs:element>
1296
+ <xs:element name="BatchOrSerialNumber" type="BatchOrSerialNumberType">
1297
+ <xs:annotation>
1298
+ <xs:documentation>Rozlišení mezi šarží a sériovým číslem</xs:documentation>
1299
+ </xs:annotation>
1300
+ </xs:element>
1301
+ </xs:sequence>
1302
+ </xs:complexType>
1303
+
1304
+ <xs:simpleType name="ExpirationDateType">
1305
+ <xs:annotation>
1306
+ <xs:documentation>Datum expirace</xs:documentation>
1307
+ </xs:annotation>
1308
+ <xs:restriction base="xs:date"/>
1309
+ </xs:simpleType>
1310
+
1311
+ <xs:simpleType name="SpecificationType">
1312
+ <xs:annotation>
1313
+ <xs:documentation>Specifikace</xs:documentation>
1314
+ </xs:annotation>
1315
+ <xs:restriction base="xs:string"/>
1316
+ </xs:simpleType>
1317
+
1318
+ <xs:simpleType name="BatchOrSerialNumberType">
1319
+ <xs:annotation>
1320
+ <xs:documentation>Rozlišení mezi šarží a sériovým číslem</xs:documentation>
1321
+ </xs:annotation>
1322
+ <xs:restriction base="xs:string">
1323
+ <xs:enumeration value="B">
1324
+ <xs:annotation>
1325
+ <xs:documentation>Šarže</xs:documentation>
1326
+ </xs:annotation>
1327
+ </xs:enumeration>
1328
+ <xs:enumeration value="S">
1329
+ <xs:annotation>
1330
+ <xs:documentation>Sériové číslo</xs:documentation>
1331
+ </xs:annotation>
1332
+ </xs:enumeration>
1333
+ </xs:restriction>
1334
+ </xs:simpleType>
1335
+
1336
+ <xs:complexType name="NonTaxedDepositsType">
1337
+ <xs:annotation>
1338
+ <xs:documentation>Kolekce nedaňových zálohových listů</xs:documentation>
1339
+ </xs:annotation>
1340
+ <xs:sequence>
1341
+ <xs:element name="NonTaxedDeposit" type="NonTaxedDepositType" maxOccurs="unbounded">
1342
+ <xs:annotation>
1343
+ <xs:documentation>Informace o konkrétním zaplaceném nedaňovém zálohovém
1344
+ listu</xs:documentation>
1345
+ </xs:annotation>
1346
+ </xs:element>
1347
+ </xs:sequence>
1348
+ </xs:complexType>
1349
+
1350
+ <xs:complexType name="NonTaxedDepositType">
1351
+ <xs:annotation>
1352
+ <xs:documentation>Informace o konkrétním zaplaceném nedaňovém zálohovém
1353
+ listu</xs:documentation>
1354
+ </xs:annotation>
1355
+ <xs:sequence>
1356
+ <xs:element name="ID" type="IDType">
1357
+ <xs:annotation>
1358
+ <xs:documentation>Jméno dokladu, identifikace zálohového listu u
1359
+ vystavitele</xs:documentation>
1360
+ </xs:annotation>
1361
+ </xs:element>
1362
+ <xs:element name="VariableSymbol" type="VariableSymbolType">
1363
+ <xs:annotation>
1364
+ <xs:documentation>Variabilní symbol, pod kterým byl zálohový list
1365
+ zaplacen</xs:documentation>
1366
+ </xs:annotation>
1367
+ </xs:element>
1368
+ <xs:element name="DepositAmountCurr" type="AmountType" minOccurs="0">
1369
+ <xs:annotation>
1370
+ <xs:documentation>Kladná částka zálohy v cizí měně</xs:documentation>
1371
+ </xs:annotation>
1372
+ </xs:element>
1373
+ <xs:element name="DepositAmount" type="AmountType">
1374
+ <xs:annotation>
1375
+ <xs:documentation>Kladná částka zálohy v tuzemské měně</xs:documentation>
1376
+ </xs:annotation>
1377
+ </xs:element>
1378
+ </xs:sequence>
1379
+ </xs:complexType>
1380
+
1381
+ <xs:simpleType name="VariableSymbolType">
1382
+ <xs:annotation>
1383
+ <xs:documentation>Variabilní symbol</xs:documentation>
1384
+ </xs:annotation>
1385
+ <xs:restriction base="xs:string"/>
1386
+ </xs:simpleType>
1387
+
1388
+ <xs:complexType name="TaxedDepositsType">
1389
+ <xs:annotation>
1390
+ <xs:documentation>Kolekce odúčtování zdaněných zálohových listů</xs:documentation>
1391
+ </xs:annotation>
1392
+ <xs:sequence>
1393
+ <xs:element name="TaxedDeposit" type="TaxedDepositType" maxOccurs="unbounded">
1394
+ <xs:annotation>
1395
+ <xs:documentation>Informace o konkrétní částce v sazbě na odúčtovaném daňovém zálohovém
1396
+ listu</xs:documentation>
1397
+ </xs:annotation>
1398
+ </xs:element>
1399
+ </xs:sequence>
1400
+ </xs:complexType>
1401
+
1402
+ <xs:complexType name="TaxedDepositType">
1403
+ <xs:annotation>
1404
+ <xs:documentation>Informace o konkrétní částce v sazbě na odúčtovaném daňovém zálohovém
1405
+ listu</xs:documentation>
1406
+ </xs:annotation>
1407
+ <xs:sequence>
1408
+ <xs:element name="ID" type="IDType">
1409
+ <xs:annotation>
1410
+ <xs:documentation>Jméno dokladu, identifikace daňového zálohového listu u
1411
+ vystavitele</xs:documentation>
1412
+ </xs:annotation>
1413
+ </xs:element>
1414
+ <xs:element name="VariableSymbol" type="VariableSymbolType">
1415
+ <xs:annotation>
1416
+ <xs:documentation>Variabilní symbol</xs:documentation>
1417
+ </xs:annotation>
1418
+ </xs:element>
1419
+ <xs:element name="TaxableDepositAmountCurr" type="AmountType" minOccurs="0">
1420
+ <xs:annotation>
1421
+ <xs:documentation>Kladná část zálohy bez daně v cizí měně</xs:documentation>
1422
+ </xs:annotation>
1423
+ </xs:element>
1424
+ <xs:element name="TaxableDepositAmount" type="AmountType">
1425
+ <xs:annotation>
1426
+ <xs:documentation>Kladná část zálohy bez daně v tuzemské měně</xs:documentation>
1427
+ </xs:annotation>
1428
+ </xs:element>
1429
+ <xs:element name="TaxInclusiveDepositAmountCurr" type="AmountType" minOccurs="0">
1430
+ <xs:annotation>
1431
+ <xs:documentation>Kladná část zálohy s daní v cizí měně</xs:documentation>
1432
+ </xs:annotation>
1433
+ </xs:element>
1434
+ <xs:element name="TaxInclusiveDepositAmount" type="AmountType">
1435
+ <xs:annotation>
1436
+ <xs:documentation>Kladná část zálohy s daní v tuzemské měně</xs:documentation>
1437
+ </xs:annotation>
1438
+ </xs:element>
1439
+ <xs:element name="ClassifiedTaxCategory" type="ClassifiedTaxCategoryType">
1440
+ <xs:annotation>
1441
+ <xs:documentation>Daňová sazba</xs:documentation>
1442
+ </xs:annotation>
1443
+ </xs:element>
1444
+ </xs:sequence>
1445
+ </xs:complexType>
1446
+
1447
+ <xs:complexType name="TaxTotalType">
1448
+ <xs:annotation>
1449
+ <xs:documentation>Daňová rekapitulace</xs:documentation>
1450
+ </xs:annotation>
1451
+ <xs:sequence>
1452
+ <xs:element name="TaxSubTotal" type="TaxSubTotalType" maxOccurs="unbounded">
1453
+ <xs:annotation>
1454
+ <xs:documentation>Sumář jedné daňové sazby</xs:documentation>
1455
+ </xs:annotation>
1456
+ </xs:element>
1457
+ <xs:element name="TaxAmountCurr" type="AmountType" minOccurs="0">
1458
+ <xs:annotation>
1459
+ <xs:documentation>Částka</xs:documentation>
1460
+ </xs:annotation>
1461
+ </xs:element>
1462
+ <xs:element name="TaxAmount" type="AmountType">
1463
+ <xs:annotation>
1464
+ <xs:documentation>Částka</xs:documentation>
1465
+ </xs:annotation>
1466
+ </xs:element>
1467
+ </xs:sequence>
1468
+ </xs:complexType>
1469
+
1470
+ <xs:complexType name="TaxSubTotalType">
1471
+ <xs:annotation>
1472
+ <xs:documentation>Sumář jedné daňové sazby</xs:documentation>
1473
+ </xs:annotation>
1474
+ <xs:sequence>
1475
+ <xs:element name="TaxableAmountCurr" type="AmountType" minOccurs="0">
1476
+ <xs:annotation>
1477
+ <xs:documentation>Základ v sazbě v cizí měně</xs:documentation>
1478
+ </xs:annotation>
1479
+ </xs:element>
1480
+ <xs:element name="TaxableAmount" type="AmountType">
1481
+ <xs:annotation>
1482
+ <xs:documentation>Základ v sazbě v tuzemské měně</xs:documentation>
1483
+ </xs:annotation>
1484
+ </xs:element>
1485
+ <xs:element name="TaxInclusiveAmountCurr" type="AmountType" minOccurs="0">
1486
+ <xs:annotation>
1487
+ <xs:documentation>Částka s daní v sazbě v cizí měně</xs:documentation>
1488
+ </xs:annotation>
1489
+ </xs:element>
1490
+ <xs:element name="TaxInclusiveAmount" type="AmountType">
1491
+ <xs:annotation>
1492
+ <xs:documentation>Částka s daní v sazbě v tuzemské měně</xs:documentation>
1493
+ </xs:annotation>
1494
+ </xs:element>
1495
+ <xs:element name="TaxAmountCurr" type="AmountType" minOccurs="0">
1496
+ <xs:annotation>
1497
+ <xs:documentation>Daň v sazbě v cizí měně</xs:documentation>
1498
+ </xs:annotation>
1499
+ </xs:element>
1500
+ <xs:element name="TaxAmount" type="AmountType">
1501
+ <xs:annotation>
1502
+ <xs:documentation>Daň v sazbě v tuzemské měně</xs:documentation>
1503
+ </xs:annotation>
1504
+ </xs:element>
1505
+ <xs:element name="AlreadyClaimedTaxableAmountCurr" type="AmountType" minOccurs="0">
1506
+ <xs:annotation>
1507
+ <xs:documentation>Na záloze již uplatněno, základ v sazbě v cizí měně</xs:documentation>
1508
+ </xs:annotation>
1509
+ </xs:element>
1510
+ <xs:element name="AlreadyClaimedTaxableAmount" type="AmountType">
1511
+ <xs:annotation>
1512
+ <xs:documentation>Na záloze již uplatněno, základ v sazbě v tuzemské
1513
+ měně</xs:documentation>
1514
+ </xs:annotation>
1515
+ </xs:element>
1516
+ <xs:element name="AlreadyClaimedTaxAmountCurr" type="AmountType" minOccurs="0">
1517
+ <xs:annotation>
1518
+ <xs:documentation>Na záloze již uplatněno, daň v sazbě v cizí měně</xs:documentation>
1519
+ </xs:annotation>
1520
+ </xs:element>
1521
+ <xs:element name="AlreadyClaimedTaxAmount" type="AmountType">
1522
+ <xs:annotation>
1523
+ <xs:documentation>Na záloze již uplatněno, daň v sazbě v tuzemské měně</xs:documentation>
1524
+ </xs:annotation>
1525
+ </xs:element>
1526
+ <xs:element name="AlreadyClaimedTaxInclusiveAmountCurr" type="AmountType" minOccurs="0">
1527
+ <xs:annotation>
1528
+ <xs:documentation>Na záloze již uplatněno, s daní v sazbě v cizí měně</xs:documentation>
1529
+ </xs:annotation>
1530
+ </xs:element>
1531
+ <xs:element name="AlreadyClaimedTaxInclusiveAmount" type="AmountType">
1532
+ <xs:annotation>
1533
+ <xs:documentation>Na záloze již uplatněno, s daní v sazbě v tuzemské
1534
+ měně</xs:documentation>
1535
+ </xs:annotation>
1536
+ </xs:element>
1537
+ <xs:element name="DifferenceTaxableAmountCurr" type="AmountType" minOccurs="0">
1538
+ <xs:annotation>
1539
+ <xs:documentation>Rozdíl, základ v cizí měně</xs:documentation>
1540
+ </xs:annotation>
1541
+ </xs:element>
1542
+ <xs:element name="DifferenceTaxableAmount" type="AmountType">
1543
+ <xs:annotation>
1544
+ <xs:documentation>Rozdíl, základ v tuzemské měně</xs:documentation>
1545
+ </xs:annotation>
1546
+ </xs:element>
1547
+ <xs:element name="DifferenceTaxAmountCurr" type="AmountType" minOccurs="0">
1548
+ <xs:annotation>
1549
+ <xs:documentation>Rozdíl, daň v cizí měně</xs:documentation>
1550
+ </xs:annotation>
1551
+ </xs:element>
1552
+ <xs:element name="DifferenceTaxAmount" type="AmountType">
1553
+ <xs:annotation>
1554
+ <xs:documentation>Rozdíl, daň v tuzemské měně</xs:documentation>
1555
+ </xs:annotation>
1556
+ </xs:element>
1557
+ <xs:element name="DifferenceTaxInclusiveAmountCurr" type="AmountType" minOccurs="0">
1558
+ <xs:annotation>
1559
+ <xs:documentation>Rozdíl, s daní v cizí měně</xs:documentation>
1560
+ </xs:annotation>
1561
+ </xs:element>
1562
+ <xs:element name="DifferenceTaxInclusiveAmount" type="AmountType">
1563
+ <xs:annotation>
1564
+ <xs:documentation>Rozdíl, s daní v tuzemské měně</xs:documentation>
1565
+ </xs:annotation>
1566
+ </xs:element>
1567
+ <xs:element name="TaxCategory" type="TaxCategoryType">
1568
+ <xs:annotation>
1569
+ <xs:documentation>Daňová sazba</xs:documentation>
1570
+ </xs:annotation>
1571
+ </xs:element>
1572
+ </xs:sequence>
1573
+ </xs:complexType>
1574
+
1575
+ <xs:complexType name="TaxCategoryType">
1576
+ <xs:annotation>
1577
+ <xs:documentation>Daňová sazba</xs:documentation>
1578
+ </xs:annotation>
1579
+ <xs:sequence>
1580
+ <xs:element name="Percent" type="PercentType">
1581
+ <xs:annotation>
1582
+ <xs:documentation>Procentní sazba daně</xs:documentation>
1583
+ </xs:annotation>
1584
+ </xs:element>
1585
+ <xs:element name="TaxScheme" type="TaxSchemeType" minOccurs="0">
1586
+ <xs:annotation>
1587
+ <xs:documentation>Daňové schéma</xs:documentation>
1588
+ </xs:annotation>
1589
+ </xs:element>
1590
+ </xs:sequence>
1591
+ </xs:complexType>
1592
+
1593
+ <xs:complexType name="LegalMonetaryTotalType">
1594
+ <xs:annotation>
1595
+ <xs:documentation>Kolekce celkových částek na dokladu končící položkou částka k zaplacení</xs:documentation>
1596
+ </xs:annotation>
1597
+ <xs:sequence>
1598
+ <xs:element name="TaxExclusiveAmount" type="AmountType">
1599
+ <xs:annotation>
1600
+ <xs:documentation>Celková částka bez daně v místní měně</xs:documentation>
1601
+ </xs:annotation>
1602
+ </xs:element>
1603
+ <xs:element name="TaxExclusiveAmountCurr" type="AmountType" minOccurs="0">
1604
+ <xs:annotation>
1605
+ <xs:documentation>Celková částka bez daně v cizí měně</xs:documentation>
1606
+ </xs:annotation>
1607
+ </xs:element>
1608
+ <xs:element name="TaxInclusiveAmount" type="AmountType">
1609
+ <xs:annotation>
1610
+ <xs:documentation>Celková částka s daní daně v místní měně</xs:documentation>
1611
+ </xs:annotation>
1612
+ </xs:element>
1613
+ <xs:element name="TaxInclusiveAmountCurr" type="AmountType" minOccurs="0">
1614
+ <xs:annotation>
1615
+ <xs:documentation>Celková částka s daní daně v cizí měně</xs:documentation>
1616
+ </xs:annotation>
1617
+ </xs:element>
1618
+ <xs:element name="AlreadyClaimedTaxExclusiveAmount" type="AmountType">
1619
+ <xs:annotation>
1620
+ <xs:documentation>Celková částka bez daně v místní měně ze všech uplatněných
1621
+ daňových zálohových listů</xs:documentation>
1622
+ </xs:annotation>
1623
+ </xs:element>
1624
+ <xs:element name="AlreadyClaimedTaxExclusiveAmountCurr" type="AmountType" minOccurs="0">
1625
+ <xs:annotation>
1626
+ <xs:documentation>Celková částka bez daně v cizí měně ze všech uplatněných
1627
+ daňových zálohových listů</xs:documentation>
1628
+ </xs:annotation>
1629
+ </xs:element>
1630
+ <xs:element name="AlreadyClaimedTaxInclusiveAmount" type="AmountType">
1631
+ <xs:annotation>
1632
+ <xs:documentation>Celková částka s daní v místní měně ze všech uplatněných
1633
+ daňových zálohových listů</xs:documentation>
1634
+ </xs:annotation>
1635
+ </xs:element>
1636
+ <xs:element name="AlreadyClaimedTaxInclusiveAmountCurr" type="AmountType" minOccurs="0">
1637
+ <xs:annotation>
1638
+ <xs:documentation>Celková částka s daní v cizí měně ze všech uplatněných
1639
+ daňových zálohových listů</xs:documentation>
1640
+ </xs:annotation>
1641
+ </xs:element>
1642
+ <xs:element name="DifferenceTaxExclusiveAmount" type="AmountType">
1643
+ <xs:annotation>
1644
+ <xs:documentation>Rozdíl mezi předpisem a "na záloze již uplatněno", bez daně
1645
+ v místní měně</xs:documentation>
1646
+ </xs:annotation>
1647
+ </xs:element>
1648
+ <xs:element name="DifferenceTaxExclusiveAmountCurr" type="AmountType" minOccurs="0">
1649
+ <xs:annotation>
1650
+ <xs:documentation>Rozdíl mezi předpisem a "na záloze již uplatněno", bez daně
1651
+ v cizí měně</xs:documentation>
1652
+ </xs:annotation>
1653
+ </xs:element>
1654
+ <xs:element name="DifferenceTaxInclusiveAmount" type="AmountType">
1655
+ <xs:annotation>
1656
+ <xs:documentation>Rozdíl mezi předpisem a "na záloze již uplatněno", s daní v
1657
+ místní měně</xs:documentation>
1658
+ </xs:annotation>
1659
+ </xs:element>
1660
+ <xs:element name="DifferenceTaxInclusiveAmountCurr" type="AmountType" minOccurs="0">
1661
+ <xs:annotation>
1662
+ <xs:documentation>Rozdíl mezi předpisem a "na záloze již uplatněno", s daní v
1663
+ cizí měně</xs:documentation>
1664
+ </xs:annotation>
1665
+ </xs:element>
1666
+ <xs:element name="PayableRoundingAmount" type="AmountType" minOccurs="0">
1667
+ <xs:annotation>
1668
+ <xs:documentation>Zaokrouhlení celé částky v tuzemské měně</xs:documentation>
1669
+ </xs:annotation>
1670
+ </xs:element>
1671
+ <xs:element name="PayableRoundingAmountCurr" type="AmountType" minOccurs="0">
1672
+ <xs:annotation>
1673
+ <xs:documentation>Zaokrouhlení celé částky v cizí měně</xs:documentation>
1674
+ </xs:annotation>
1675
+ </xs:element>
1676
+ <xs:element name="PaidDepositsAmount" type="AmountType">
1677
+ <xs:annotation>
1678
+ <xs:documentation>Na nedaňového zálohy zaplaceno v tuzemské měně</xs:documentation>
1679
+ </xs:annotation>
1680
+ </xs:element>
1681
+ <xs:element name="PaidDepositsAmountCurr" type="AmountType" minOccurs="0">
1682
+ <xs:annotation>
1683
+ <xs:documentation>Na nedaňového zálohy zaplaceno v cizí měně</xs:documentation>
1684
+ </xs:annotation>
1685
+ </xs:element>
1686
+ <xs:element name="PayableAmount" type="AmountType">
1687
+ <xs:annotation>
1688
+ <xs:documentation>K zaplacení v tuzemské měně</xs:documentation>
1689
+ </xs:annotation>
1690
+ </xs:element>
1691
+ <xs:element name="PayableAmountCurr" type="AmountType" minOccurs="0">
1692
+ <xs:annotation>
1693
+ <xs:documentation>K zaplacení v cizí měně</xs:documentation>
1694
+ </xs:annotation>
1695
+ </xs:element>
1696
+ </xs:sequence>
1697
+ </xs:complexType>
1698
+
1699
+ <xs:complexType name="PaymentMeansType">
1700
+ <xs:annotation>
1701
+ <xs:documentation>Kolekce plateb</xs:documentation>
1702
+ </xs:annotation>
1703
+ <xs:sequence>
1704
+ <xs:element name="Payment" type="PaymentType" maxOccurs="unbounded">
1705
+ <xs:annotation>
1706
+ <xs:documentation>Platba</xs:documentation>
1707
+ </xs:annotation>
1708
+ </xs:element>
1709
+ <xs:element name="AlternateBankAccounts" type="AlternateBankAccountsType" minOccurs="0">
1710
+ <xs:annotation>
1711
+ <xs:documentation>Kolekce dalších bankovních účtů, na které je možno také
1712
+ platit</xs:documentation>
1713
+ </xs:annotation>
1714
+ </xs:element>
1715
+ </xs:sequence>
1716
+ </xs:complexType>
1717
+
1718
+ <xs:complexType name="PaymentType">
1719
+ <xs:annotation>
1720
+ <xs:documentation>Platba</xs:documentation>
1721
+ </xs:annotation>
1722
+ <xs:sequence>
1723
+ <xs:element name="PaidAmount" type="AmountType">
1724
+ <xs:annotation>
1725
+ <xs:documentation>Částka k zaplacení</xs:documentation>
1726
+ </xs:annotation>
1727
+ </xs:element>
1728
+ <xs:element name="PaymentMeansCode" type="PaymentMeansCodeType">
1729
+ <xs:annotation>
1730
+ <xs:documentation>Způsob platby</xs:documentation>
1731
+ </xs:annotation>
1732
+ </xs:element>
1733
+ <xs:element name="Details" type="DetailsType">
1734
+ <xs:annotation>
1735
+ <xs:documentation>Podrobnosti o platbě</xs:documentation>
1736
+ </xs:annotation>
1737
+ </xs:element>
1738
+ </xs:sequence>
1739
+ </xs:complexType>
1740
+
1741
+ <xs:simpleType name="PaymentMeansCodeType">
1742
+ <xs:annotation>
1743
+ <xs:documentation>Způsob platby</xs:documentation>
1744
+ </xs:annotation>
1745
+ <xs:restriction base="xs:integer">
1746
+ <xs:enumeration value="10">
1747
+ <xs:annotation>
1748
+ <xs:documentation>Platba v hotovosti</xs:documentation>
1749
+ </xs:annotation>
1750
+ </xs:enumeration>
1751
+ <xs:enumeration value="20">
1752
+ <xs:annotation>
1753
+ <xs:documentation>Platba šekem</xs:documentation>
1754
+ </xs:annotation>
1755
+ </xs:enumeration>
1756
+ <xs:enumeration value="42">
1757
+ <xs:annotation>
1758
+ <xs:documentation>Převod na účet</xs:documentation>
1759
+ </xs:annotation>
1760
+ </xs:enumeration>
1761
+ <xs:enumeration value="48">
1762
+ <xs:annotation>
1763
+ <xs:documentation>Platba kartou</xs:documentation>
1764
+ </xs:annotation>
1765
+ </xs:enumeration>
1766
+ <xs:enumeration value="97">
1767
+ <xs:annotation>
1768
+ <xs:documentation>Zaúčtování mezi partnery</xs:documentation>
1769
+ </xs:annotation>
1770
+ </xs:enumeration>
1771
+ </xs:restriction>
1772
+ </xs:simpleType>
1773
+
1774
+ <xs:complexType name="DetailsType">
1775
+ <xs:annotation>
1776
+ <xs:documentation>Podrobnosti o platbě</xs:documentation>
1777
+ </xs:annotation>
1778
+ <xs:choice>
1779
+ <xs:sequence>
1780
+ <xs:annotation>
1781
+ <xs:documentation>Platba v hotovosti</xs:documentation>
1782
+ </xs:annotation>
1783
+ <xs:element name="DocumentID" type="DocumentIDType">
1784
+ <xs:annotation>
1785
+ <xs:documentation>Identifikátor svázaného dokladu, například pokladní
1786
+ účtenky</xs:documentation>
1787
+ </xs:annotation>
1788
+ </xs:element>
1789
+ <xs:element name="IssueDate" type="IssueDateType">
1790
+ <xs:annotation>
1791
+ <xs:documentation>Datum vystavení</xs:documentation>
1792
+ </xs:annotation>
1793
+ </xs:element>
1794
+ </xs:sequence>
1795
+ <xs:sequence>
1796
+ <xs:annotation>
1797
+ <xs:documentation>Platba převodem</xs:documentation>
1798
+ </xs:annotation>
1799
+ <xs:element name="PaymentDueDate" type="PaymentDueDateType">
1800
+ <xs:annotation>
1801
+ <xs:documentation>Datum splatnosti</xs:documentation>
1802
+ </xs:annotation>
1803
+ </xs:element>
1804
+ <xs:group ref="BankAccount"/>
1805
+ <xs:element name="VariableSymbol" type="VariableSymbolType" minOccurs="0">
1806
+ <xs:annotation>
1807
+ <xs:documentation>Variabilní symbol</xs:documentation>
1808
+ </xs:annotation>
1809
+ </xs:element>
1810
+ <xs:element name="ConstantSymbol" type="ConstantSymbolType" minOccurs="0">
1811
+ <xs:annotation>
1812
+ <xs:documentation>Konstantní symbol nebo platební titul</xs:documentation>
1813
+ </xs:annotation>
1814
+ </xs:element>
1815
+ <xs:element name="SpecificSymbol" type="SpecificSymbolType" minOccurs="0">
1816
+ <xs:annotation>
1817
+ <xs:documentation>Specifický symbol</xs:documentation>
1818
+ </xs:annotation>
1819
+ </xs:element>
1820
+ </xs:sequence>
1821
+ </xs:choice>
1822
+ </xs:complexType>
1823
+
1824
+ <xs:simpleType name="DocumentIDType">
1825
+ <xs:annotation>
1826
+ <xs:documentation>Identifikátor svázaného dokladu, například pokladní
1827
+ účtenky</xs:documentation>
1828
+ </xs:annotation>
1829
+ <xs:restriction base="xs:string"/>
1830
+ </xs:simpleType>
1831
+
1832
+ <xs:simpleType name="PaymentDueDateType">
1833
+ <xs:annotation>
1834
+ <xs:documentation>Datum splatnosti</xs:documentation>
1835
+ </xs:annotation>
1836
+ <xs:restriction base="xs:date"/>
1837
+ </xs:simpleType>
1838
+
1839
+ <xs:simpleType name="BankCodeType">
1840
+ <xs:annotation>
1841
+ <xs:documentation>Kód lokální banky</xs:documentation>
1842
+ </xs:annotation>
1843
+ <xs:restriction base="xs:string"/>
1844
+ </xs:simpleType>
1845
+
1846
+ <xs:simpleType name="IBANType">
1847
+ <xs:annotation>
1848
+ <xs:documentation>Mezinárodní číslo účtu (IBAN)</xs:documentation>
1849
+ </xs:annotation>
1850
+ <xs:restriction base="xs:string"/>
1851
+ </xs:simpleType>
1852
+
1853
+ <xs:simpleType name="BICType">
1854
+ <xs:annotation>
1855
+ <xs:documentation>Kód banky podle ISO 9362, tzv. SWIFT kód</xs:documentation>
1856
+ </xs:annotation>
1857
+ <xs:restriction base="xs:string"/>
1858
+ </xs:simpleType>
1859
+
1860
+ <xs:simpleType name="ConstantSymbolType">
1861
+ <xs:annotation>
1862
+ <xs:documentation>Konstantní symbol nebo platební titul</xs:documentation>
1863
+ </xs:annotation>
1864
+ <xs:restriction base="xs:string"/>
1865
+ </xs:simpleType>
1866
+
1867
+ <xs:simpleType name="SpecificSymbolType">
1868
+ <xs:annotation>
1869
+ <xs:documentation>Specifický symbol</xs:documentation>
1870
+ </xs:annotation>
1871
+ <xs:restriction base="xs:string"/>
1872
+ </xs:simpleType>
1873
+
1874
+ <xs:complexType name="AlternateBankAccountsType">
1875
+ <xs:annotation>
1876
+ <xs:documentation>Kolekce dalších bankovních účtů, na které je možno také
1877
+ platit</xs:documentation>
1878
+ </xs:annotation>
1879
+ <xs:sequence>
1880
+ <xs:element name="AlternateBankAccount" type="AlternateBankAccountType" maxOccurs="unbounded">
1881
+ <xs:annotation>
1882
+ <xs:documentation>Informace o bankovním účtu</xs:documentation>
1883
+ </xs:annotation>
1884
+ </xs:element>
1885
+ </xs:sequence>
1886
+ </xs:complexType>
1887
+
1888
+ <xs:complexType name="AlternateBankAccountType">
1889
+ <xs:annotation>
1890
+ <xs:documentation>Informace o bankovním účtu</xs:documentation>
1891
+ </xs:annotation>
1892
+ <xs:group ref="BankAccount"/>
1893
+ </xs:complexType>
1894
+
1895
+ <xs:group name="BankAccount">
1896
+ <xs:annotation>
1897
+ <xs:documentation>Informace o bankovním účtu</xs:documentation>
1898
+ </xs:annotation>
1899
+ <xs:sequence>
1900
+ <xs:element name="ID" type="IDType">
1901
+ <xs:annotation>
1902
+ <xs:documentation>Číslo účtu lokální banky</xs:documentation>
1903
+ </xs:annotation>
1904
+ </xs:element>
1905
+ <xs:element name="BankCode" type="BankCodeType">
1906
+ <xs:annotation>
1907
+ <xs:documentation>Kód lokální banky</xs:documentation>
1908
+ </xs:annotation>
1909
+ </xs:element>
1910
+ <xs:element name="Name" type="NameType">
1911
+ <xs:annotation>
1912
+ <xs:documentation>Název</xs:documentation>
1913
+ </xs:annotation>
1914
+ </xs:element>
1915
+ <xs:element name="IBAN" type="IBANType">
1916
+ <xs:annotation>
1917
+ <xs:documentation>Mezinárodní číslo účtu (IBAN)</xs:documentation>
1918
+ </xs:annotation>
1919
+ </xs:element>
1920
+ <xs:element name="BIC" type="BICType">
1921
+ <xs:annotation>
1922
+ <xs:documentation>Kód banky podle ISO 9362, tzv. SWIFT kód</xs:documentation>
1923
+ </xs:annotation>
1924
+ </xs:element>
1925
+ </xs:sequence>
1926
+ </xs:group>
1927
+
1928
+ </xs:schema>