saft 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,3343 @@
1
+ <?xml version="1.0"?>
2
+ <!-- edited with XMLSpy v2017 rel. 3 sp1 (x64) (http://www.altova.com) by Skatteetaten (Skatteetaten) -->
3
+ <xs:schema xmlns="urn:StandardAuditFile-Taxation-Financial:NO" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:doc="urn:schemas-OECD:schema-extensions:documentation" targetNamespace="urn:StandardAuditFile-Taxation-Financial:NO" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.20" id="SAF-T">
4
+ <xs:annotation>
5
+ <xs:documentation>
6
+ <doc:Title>Norwegian SAF-T Financial data</doc:Title>
7
+ <doc:Copyright>Skatteetaten</doc:Copyright>
8
+ <doc:Version>
9
+ <doc:Number>1.20</doc:Number>
10
+ <doc:Status>Final version, with minor revision</doc:Status>
11
+ </doc:Version>
12
+ <doc:Author>SAF-T Working group</doc:Author>
13
+ <doc:BasedOn>OECD Standard Audit File - Taxation 2.00</doc:BasedOn>
14
+ <doc:ModificationDate>25-11-2020</doc:ModificationDate>
15
+ </xs:documentation>
16
+ </xs:annotation>
17
+ <xs:element name="AuditFile">
18
+ <xs:annotation>
19
+ <xs:documentation>Root element of the Norwegian SAF-T file.</xs:documentation>
20
+ </xs:annotation>
21
+ <xs:complexType>
22
+ <xs:sequence>
23
+ <xs:element name="Header">
24
+ <xs:annotation>
25
+ <xs:documentation>Overall information about this Standard Audit file.</xs:documentation>
26
+ </xs:annotation>
27
+ <xs:complexType>
28
+ <xs:complexContent>
29
+ <xs:extension base="HeaderStructure">
30
+ <xs:sequence>
31
+ <xs:element name="TaxAccountingBasis">
32
+ <xs:annotation>
33
+ <xs:documentation>Type of data in the audit file. The only valid value is “A” (Accounting).</xs:documentation>
34
+ </xs:annotation>
35
+ <xs:simpleType>
36
+ <xs:restriction base="SAFshorttextType">
37
+ <xs:enumeration value="A"/>
38
+ </xs:restriction>
39
+ </xs:simpleType>
40
+ </xs:element>
41
+ <xs:element name="TaxEntity" type="SAFmiddle2textType" minOccurs="0">
42
+ <xs:annotation>
43
+ <xs:documentation>Company / Division / Branch reference</xs:documentation>
44
+ </xs:annotation>
45
+ </xs:element>
46
+ <xs:element name="UserID" type="SAFmiddle1textType" minOccurs="0">
47
+ <xs:annotation>
48
+ <xs:documentation>ID of the user that generated the audit file.</xs:documentation>
49
+ </xs:annotation>
50
+ </xs:element>
51
+ <xs:element name="AuditFileSender" type="CompanyStructure" minOccurs="0">
52
+ <xs:annotation>
53
+ <xs:documentation>Information about the sender of the audit file if the sender is not the company that owns the data. This can be an accounting office, a parent company, etc.</xs:documentation>
54
+ </xs:annotation>
55
+ </xs:element>
56
+ </xs:sequence>
57
+ </xs:extension>
58
+ </xs:complexContent>
59
+ </xs:complexType>
60
+ </xs:element>
61
+ <xs:element name="MasterFiles" minOccurs="0">
62
+ <xs:annotation>
63
+ <xs:documentation>Holds standing data about general ledger account, suppliers, customers, products, etc.. An extension point is provided to allow Revenue Bodies to specify additional elements or structures such as tax rate tables.</xs:documentation>
64
+ </xs:annotation>
65
+ <xs:complexType>
66
+ <xs:sequence>
67
+ <xs:element name="GeneralLedgerAccounts" minOccurs="0">
68
+ <xs:annotation>
69
+ <xs:documentation>The general ledger accounts of a company.</xs:documentation>
70
+ </xs:annotation>
71
+ <xs:complexType>
72
+ <xs:sequence>
73
+ <xs:element name="Account" maxOccurs="unbounded">
74
+ <xs:annotation>
75
+ <xs:documentation>General ledger account information.</xs:documentation>
76
+ </xs:annotation>
77
+ <xs:complexType>
78
+ <xs:sequence>
79
+ <xs:element name="AccountID" type="SAFmiddle2textType">
80
+ <xs:annotation>
81
+ <xs:documentation>General ledger account code/number.</xs:documentation>
82
+ </xs:annotation>
83
+ </xs:element>
84
+ <xs:element name="AccountDescription" type="SAFlongtextType">
85
+ <xs:annotation>
86
+ <xs:documentation>Name of individual general ledger account.</xs:documentation>
87
+ </xs:annotation>
88
+ </xs:element>
89
+ <xs:element name="StandardAccountID" type="SAFmiddle1textType" minOccurs="0">
90
+ <xs:annotation>
91
+ <xs:documentation>Standard general ledger account code/number from codelists for mapping. Alternatively the elements GroupingCategory and GroupingCode can be used for mapping. </xs:documentation>
92
+ </xs:annotation>
93
+ </xs:element>
94
+ <xs:element name="GroupingCategory" type="SAFmiddle1textType" minOccurs="0">
95
+ <xs:annotation>
96
+ <xs:documentation>Use in conjunction with GroupingCode. Use category from codelists. </xs:documentation>
97
+ </xs:annotation>
98
+ </xs:element>
99
+ <xs:element name="GroupingCode" type="SAFmiddle1textType" minOccurs="0">
100
+ <xs:annotation>
101
+ <xs:documentation>Use in conjunction with GroupingCategory. Use code from codelists. </xs:documentation>
102
+ </xs:annotation>
103
+ </xs:element>
104
+ <xs:element name="AccountType">
105
+ <xs:annotation>
106
+ <xs:documentation>Type of account. Set standard account in the StandardAccountID element. The only valid value is “GL” (General Ledger).</xs:documentation>
107
+ </xs:annotation>
108
+ <xs:simpleType>
109
+ <xs:restriction base="SAFshorttextType">
110
+ <xs:enumeration value="GL"/>
111
+ </xs:restriction>
112
+ </xs:simpleType>
113
+ </xs:element>
114
+ <xs:element name="AccountCreationDate" type="xs:date" minOccurs="0">
115
+ <xs:annotation>
116
+ <xs:documentation>Date of when the general ledger account was created.</xs:documentation>
117
+ </xs:annotation>
118
+ </xs:element>
119
+ <xs:choice>
120
+ <xs:element name="OpeningDebitBalance" type="SAFmonetaryType">
121
+ <xs:annotation>
122
+ <xs:documentation>Debit balance at the start date of the selection period in the header's default currency.</xs:documentation>
123
+ </xs:annotation>
124
+ </xs:element>
125
+ <xs:element name="OpeningCreditBalance" type="SAFmonetaryType">
126
+ <xs:annotation>
127
+ <xs:documentation>Credit balance at the start date of the selection period in the header's default currency.</xs:documentation>
128
+ </xs:annotation>
129
+ </xs:element>
130
+ </xs:choice>
131
+ <xs:choice>
132
+ <xs:element name="ClosingDebitBalance" type="SAFmonetaryType">
133
+ <xs:annotation>
134
+ <xs:documentation>Debit balance at the end date of the selection period in the header's default currency.</xs:documentation>
135
+ </xs:annotation>
136
+ </xs:element>
137
+ <xs:element name="ClosingCreditBalance" type="SAFmonetaryType">
138
+ <xs:annotation>
139
+ <xs:documentation>Credit balance at the end date of the selection period in the header's default currency.</xs:documentation>
140
+ </xs:annotation>
141
+ </xs:element>
142
+ </xs:choice>
143
+ </xs:sequence>
144
+ </xs:complexType>
145
+ </xs:element>
146
+ </xs:sequence>
147
+ </xs:complexType>
148
+ </xs:element>
149
+ <xs:element name="Taxonomies" minOccurs="0">
150
+ <xs:annotation>
151
+ <xs:documentation>Not in use.</xs:documentation>
152
+ </xs:annotation>
153
+ <xs:complexType>
154
+ <xs:sequence>
155
+ <xs:element name="Taxonomy" maxOccurs="unbounded">
156
+ <xs:complexType>
157
+ <xs:sequence>
158
+ <xs:element name="TaxonomyReference" type="SAFlongtextType">
159
+ <xs:annotation>
160
+ <xs:documentation>Reference to the taxonomy that applies to the GL Account.</xs:documentation>
161
+ </xs:annotation>
162
+ </xs:element>
163
+ <xs:element name="TaxonomyElement" minOccurs="0" maxOccurs="unbounded">
164
+ <xs:complexType>
165
+ <xs:sequence>
166
+ <xs:element name="TaxonomyCode" type="SAFlongtextType">
167
+ <xs:annotation>
168
+ <xs:documentation>Reference to specific taxonomy element</xs:documentation>
169
+ </xs:annotation>
170
+ </xs:element>
171
+ <xs:element name="TaxonomyClusterID" type="SAFlongtextType" minOccurs="0">
172
+ <xs:annotation>
173
+ <xs:documentation>Additional reference to specific taxonomy element</xs:documentation>
174
+ </xs:annotation>
175
+ </xs:element>
176
+ <xs:element name="TaxonomyClusterContextID" type="SAFlongtextType" minOccurs="0"/>
177
+ <xs:element name="AccountID" type="SAFmiddle2textType">
178
+ <xs:annotation>
179
+ <xs:documentation>General Ledger Account code for this TaxanomyReference/TaxonomyCode. Can be including sub-account id. It can contain many different levels to identify the Account. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
180
+ </xs:annotation>
181
+ </xs:element>
182
+ </xs:sequence>
183
+ </xs:complexType>
184
+ </xs:element>
185
+ </xs:sequence>
186
+ </xs:complexType>
187
+ </xs:element>
188
+ </xs:sequence>
189
+ </xs:complexType>
190
+ </xs:element>
191
+ <xs:element name="Customers" minOccurs="0">
192
+ <xs:annotation>
193
+ <xs:documentation>The customers of a company.</xs:documentation>
194
+ </xs:annotation>
195
+ <xs:complexType>
196
+ <xs:sequence>
197
+ <xs:element name="Customer" maxOccurs="unbounded">
198
+ <xs:annotation>
199
+ <xs:documentation>Customer information.</xs:documentation>
200
+ </xs:annotation>
201
+ <xs:complexType>
202
+ <xs:complexContent>
203
+ <xs:extension base="CompanyStructure">
204
+ <xs:sequence>
205
+ <xs:element name="CustomerID" type="SAFmiddle1textType">
206
+ <xs:annotation>
207
+ <xs:documentation>Unique account code/number for the customer. </xs:documentation>
208
+ </xs:annotation>
209
+ </xs:element>
210
+ <xs:element name="SelfBillingIndicator" type="SAFcodeType" minOccurs="0">
211
+ <xs:annotation>
212
+ <xs:documentation>Indicator showing if a self-billing agreement exists between the customer and the supplier.</xs:documentation>
213
+ </xs:annotation>
214
+ </xs:element>
215
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
216
+ <xs:annotation>
217
+ <xs:documentation>General ledger account code/number for this customer. This is the account code/number into where this sub account/accounts receivable is consolidated in the balance sheet. </xs:documentation>
218
+ </xs:annotation>
219
+ </xs:element>
220
+ <xs:choice minOccurs="0">
221
+ <xs:element name="OpeningDebitBalance" type="SAFmonetaryType">
222
+ <xs:annotation>
223
+ <xs:documentation>Debit balance at the start date of the selection period in the header's default currency.</xs:documentation>
224
+ </xs:annotation>
225
+ </xs:element>
226
+ <xs:element name="OpeningCreditBalance" type="SAFmonetaryType">
227
+ <xs:annotation>
228
+ <xs:documentation>Credit balance at the start date of the selection period in the header's default currency.</xs:documentation>
229
+ </xs:annotation>
230
+ </xs:element>
231
+ </xs:choice>
232
+ <xs:choice minOccurs="0">
233
+ <xs:element name="ClosingDebitBalance" type="SAFmonetaryType">
234
+ <xs:annotation>
235
+ <xs:documentation>Debit balance at the end date of the selection period in the header's default currency.</xs:documentation>
236
+ </xs:annotation>
237
+ </xs:element>
238
+ <xs:element name="ClosingCreditBalance" type="SAFmonetaryType">
239
+ <xs:annotation>
240
+ <xs:documentation>Credit balance at the end date of the selection period in the header's default currency.</xs:documentation>
241
+ </xs:annotation>
242
+ </xs:element>
243
+ </xs:choice>
244
+ <xs:element name="PartyInfo" type="PartyInfoStructure" minOccurs="0">
245
+ <xs:annotation>
246
+ <xs:documentation>Additional party information.</xs:documentation>
247
+ </xs:annotation>
248
+ </xs:element>
249
+ </xs:sequence>
250
+ </xs:extension>
251
+ </xs:complexContent>
252
+ </xs:complexType>
253
+ </xs:element>
254
+ </xs:sequence>
255
+ </xs:complexType>
256
+ </xs:element>
257
+ <xs:element name="Suppliers" minOccurs="0">
258
+ <xs:annotation>
259
+ <xs:documentation>The suppliers of a company.</xs:documentation>
260
+ </xs:annotation>
261
+ <xs:complexType>
262
+ <xs:sequence>
263
+ <xs:element name="Supplier" maxOccurs="unbounded">
264
+ <xs:annotation>
265
+ <xs:documentation>Supplier information.</xs:documentation>
266
+ </xs:annotation>
267
+ <xs:complexType>
268
+ <xs:complexContent>
269
+ <xs:extension base="CompanyStructure">
270
+ <xs:sequence>
271
+ <xs:element name="SupplierID" type="SAFmiddle1textType">
272
+ <xs:annotation>
273
+ <xs:documentation>Unique account code/number for the supplier.</xs:documentation>
274
+ </xs:annotation>
275
+ </xs:element>
276
+ <xs:element name="SelfBillingIndicator" type="SAFcodeType" minOccurs="0">
277
+ <xs:annotation>
278
+ <xs:documentation>Indicator showing if a self-billing agreement exists between the customer and the supplier.</xs:documentation>
279
+ </xs:annotation>
280
+ </xs:element>
281
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
282
+ <xs:annotation>
283
+ <xs:documentation>General ledger account code/number for this supplier. This is the account code/number into where this sub account/accounts payable is consolidated in the balance sheet.</xs:documentation>
284
+ </xs:annotation>
285
+ </xs:element>
286
+ <xs:choice minOccurs="0">
287
+ <xs:element name="OpeningDebitBalance" type="SAFmonetaryType">
288
+ <xs:annotation>
289
+ <xs:documentation>Debit balance at the start date of the selection period in the header's default currency.</xs:documentation>
290
+ </xs:annotation>
291
+ </xs:element>
292
+ <xs:element name="OpeningCreditBalance" type="SAFmonetaryType">
293
+ <xs:annotation>
294
+ <xs:documentation>Credit balance at the start date of the selection period in the header's default currency.</xs:documentation>
295
+ </xs:annotation>
296
+ </xs:element>
297
+ </xs:choice>
298
+ <xs:choice minOccurs="0">
299
+ <xs:element name="ClosingDebitBalance" type="SAFmonetaryType">
300
+ <xs:annotation>
301
+ <xs:documentation>Debit balance at the end date of the selection period in the header's default currency.</xs:documentation>
302
+ </xs:annotation>
303
+ </xs:element>
304
+ <xs:element name="ClosingCreditBalance" type="SAFmonetaryType">
305
+ <xs:annotation>
306
+ <xs:documentation>Credit balance at the end date of the selection period in the header's default currency.</xs:documentation>
307
+ </xs:annotation>
308
+ </xs:element>
309
+ </xs:choice>
310
+ <xs:element name="PartyInfo" type="PartyInfoStructure" minOccurs="0">
311
+ <xs:annotation>
312
+ <xs:documentation>Additional party information.</xs:documentation>
313
+ </xs:annotation>
314
+ </xs:element>
315
+ </xs:sequence>
316
+ </xs:extension>
317
+ </xs:complexContent>
318
+ </xs:complexType>
319
+ </xs:element>
320
+ </xs:sequence>
321
+ </xs:complexType>
322
+ </xs:element>
323
+ <xs:element name="TaxTable" minOccurs="0">
324
+ <xs:annotation>
325
+ <xs:documentation>The tax tables of a company.</xs:documentation>
326
+ </xs:annotation>
327
+ <xs:complexType>
328
+ <xs:sequence>
329
+ <xs:element name="TaxTableEntry" maxOccurs="unbounded">
330
+ <xs:annotation>
331
+ <xs:documentation>Tax entry information.</xs:documentation>
332
+ </xs:annotation>
333
+ <xs:complexType>
334
+ <xs:sequence>
335
+ <xs:element name="TaxType">
336
+ <xs:annotation>
337
+ <xs:documentation>Tax type for look-up in tables. “MVA” is the only valid value.</xs:documentation>
338
+ </xs:annotation>
339
+ <xs:simpleType>
340
+ <xs:restriction base="SAFcodeType">
341
+ <xs:enumeration value="MVA"/>
342
+ </xs:restriction>
343
+ </xs:simpleType>
344
+ </xs:element>
345
+ <xs:element name="Description">
346
+ <xs:annotation>
347
+ <xs:documentation>Description of the Tax Type. “Merverdiavgift” is the only valid value.</xs:documentation>
348
+ </xs:annotation>
349
+ <xs:simpleType>
350
+ <xs:restriction base="SAFlongtextType">
351
+ <xs:enumeration value="Merverdiavgift"/>
352
+ </xs:restriction>
353
+ </xs:simpleType>
354
+ </xs:element>
355
+ <xs:element name="TaxCodeDetails" maxOccurs="unbounded">
356
+ <xs:annotation>
357
+ <xs:documentation>Tax code details of the tax table entry.</xs:documentation>
358
+ </xs:annotation>
359
+ <xs:complexType>
360
+ <xs:sequence>
361
+ <xs:element name="TaxCode" type="SAFmiddle1textType">
362
+ <xs:annotation>
363
+ <xs:documentation>Tax Code for lookup in tables.</xs:documentation>
364
+ </xs:annotation>
365
+ </xs:element>
366
+ <xs:element name="EffectiveDate" type="xs:date" minOccurs="0">
367
+ <xs:annotation>
368
+ <xs:documentation>Representing the starting date for this entry.</xs:documentation>
369
+ </xs:annotation>
370
+ </xs:element>
371
+ <xs:element name="ExpirationDate" type="xs:date" minOccurs="0">
372
+ <xs:annotation>
373
+ <xs:documentation>Representing the ending date for this entry.</xs:documentation>
374
+ </xs:annotation>
375
+ </xs:element>
376
+ <xs:element name="Description" type="SAFlongtextType" minOccurs="0">
377
+ <xs:annotation>
378
+ <xs:documentation>Description of the Tax Code.</xs:documentation>
379
+ </xs:annotation>
380
+ </xs:element>
381
+ <xs:choice minOccurs="0">
382
+ <xs:element name="TaxPercentage" type="xs:decimal">
383
+ <xs:annotation>
384
+ <xs:documentation>Tax percentage.</xs:documentation>
385
+ </xs:annotation>
386
+ </xs:element>
387
+ <xs:element name="FlatTaxRate" type="AmountStructure">
388
+ <xs:annotation>
389
+ <xs:documentation>Not in use.</xs:documentation>
390
+ </xs:annotation>
391
+ </xs:element>
392
+ </xs:choice>
393
+ <xs:element name="Country" type="ISOCountryCode">
394
+ <xs:annotation>
395
+ <xs:documentation>Two-letter country code according to ISO 3166-1 alpha 2 standard.</xs:documentation>
396
+ </xs:annotation>
397
+ </xs:element>
398
+ <xs:element name="Region" type="SAFcodeType" minOccurs="0">
399
+ <xs:annotation>
400
+ <xs:documentation>Not in use.</xs:documentation>
401
+ </xs:annotation>
402
+ </xs:element>
403
+ <xs:element name="StandardTaxCode" type="SAFmiddle1textType">
404
+ <xs:annotation>
405
+ <xs:documentation>Standard Tax Code.</xs:documentation>
406
+ </xs:annotation>
407
+ </xs:element>
408
+ <xs:element name="Compensation" type="xs:boolean" minOccurs="0">
409
+ <xs:annotation>
410
+ <xs:documentation>Indicates if the Tax Code is used for compensation.</xs:documentation>
411
+ </xs:annotation>
412
+ </xs:element>
413
+ <xs:element name="BaseRate" maxOccurs="unbounded">
414
+ <xs:annotation>
415
+ <xs:documentation>Base rates used for the tax code. Standard is 100 (the whole amount is tax deductible). Example: 60 if only 60% of the total amount is tax deductible. Enter all standard base rates used for the tax code.</xs:documentation>
416
+ </xs:annotation>
417
+ <xs:simpleType>
418
+ <xs:restriction base="xs:decimal">
419
+ <xs:minInclusive value="0"/>
420
+ <xs:maxInclusive value="100"/>
421
+ </xs:restriction>
422
+ </xs:simpleType>
423
+ </xs:element>
424
+ </xs:sequence>
425
+ </xs:complexType>
426
+ </xs:element>
427
+ </xs:sequence>
428
+ </xs:complexType>
429
+ </xs:element>
430
+ </xs:sequence>
431
+ </xs:complexType>
432
+ </xs:element>
433
+ <xs:element name="UOMTable" minOccurs="0">
434
+ <xs:annotation>
435
+ <xs:documentation>Not in use.</xs:documentation>
436
+ </xs:annotation>
437
+ <xs:complexType>
438
+ <xs:sequence>
439
+ <xs:element name="UOMTableEntry" maxOccurs="unbounded">
440
+ <xs:complexType>
441
+ <xs:sequence>
442
+ <xs:element name="UnitOfMeasure" type="SAFcodeType">
443
+ <xs:annotation>
444
+ <xs:documentation>Quantity unit of measure e.g. pack of 12</xs:documentation>
445
+ </xs:annotation>
446
+ </xs:element>
447
+ <xs:element name="Description" type="SAFlongtextType">
448
+ <xs:annotation>
449
+ <xs:documentation>Description of the UOM</xs:documentation>
450
+ </xs:annotation>
451
+ </xs:element>
452
+ </xs:sequence>
453
+ </xs:complexType>
454
+ </xs:element>
455
+ </xs:sequence>
456
+ </xs:complexType>
457
+ </xs:element>
458
+ <xs:element name="AnalysisTypeTable" minOccurs="0">
459
+ <xs:annotation>
460
+ <xs:documentation>Table with the analysis code identifiers. Used for further specification of transaction data. Example: cost unit, cost center, project, department, provider, journal type, employees, etc. Journal type (bilagsart) should always be used on all transactions.</xs:documentation>
461
+ </xs:annotation>
462
+ <xs:complexType>
463
+ <xs:sequence>
464
+ <xs:element name="AnalysisTypeTableEntry" maxOccurs="unbounded">
465
+ <xs:annotation>
466
+ <xs:documentation>Analysis entry information.</xs:documentation>
467
+ </xs:annotation>
468
+ <xs:complexType>
469
+ <xs:sequence>
470
+ <xs:element name="AnalysisType" type="SAFcodeType">
471
+ <xs:annotation>
472
+ <xs:documentation>Analysis type identifier/code for the dimension type (e.g. departments, projects, journal types, cost centers, employees, etc.).</xs:documentation>
473
+ </xs:annotation>
474
+ </xs:element>
475
+ <xs:element name="AnalysisTypeDescription" type="SAFlongtextType">
476
+ <xs:annotation>
477
+ <xs:documentation>Description of the dimension type.</xs:documentation>
478
+ </xs:annotation>
479
+ </xs:element>
480
+ <xs:element name="AnalysisID" type="SAFmiddle1textType">
481
+ <xs:annotation>
482
+ <xs:documentation>Analysis ID of the specific dimension entity.</xs:documentation>
483
+ </xs:annotation>
484
+ </xs:element>
485
+ <xs:element name="AnalysisIDDescription" type="SAFlongtextType">
486
+ <xs:annotation>
487
+ <xs:documentation>Description of the specific dimension entity.</xs:documentation>
488
+ </xs:annotation>
489
+ </xs:element>
490
+ <xs:element name="StartDate" type="xs:date" minOccurs="0">
491
+ <xs:annotation>
492
+ <xs:documentation>Start date.</xs:documentation>
493
+ </xs:annotation>
494
+ </xs:element>
495
+ <xs:element name="EndDate" type="xs:date" minOccurs="0">
496
+ <xs:annotation>
497
+ <xs:documentation>End date.</xs:documentation>
498
+ </xs:annotation>
499
+ </xs:element>
500
+ <xs:element name="Status" minOccurs="0">
501
+ <xs:annotation>
502
+ <xs:documentation>Status of the analysis entry. Choose from the predefined enumerations: Active, Closed, Observation, Passive.</xs:documentation>
503
+ </xs:annotation>
504
+ <xs:simpleType>
505
+ <xs:restriction base="SAFmiddle1textType">
506
+ <xs:enumeration value="Active"/>
507
+ <xs:enumeration value="Closed"/>
508
+ <xs:enumeration value="Observation"/>
509
+ <xs:enumeration value="Passive"/>
510
+ </xs:restriction>
511
+ </xs:simpleType>
512
+ </xs:element>
513
+ <xs:element name="Analysis" type="AnalysisPartyInfoStructure" minOccurs="0" maxOccurs="unbounded">
514
+ <xs:annotation>
515
+ <xs:documentation>Standard linked analysis codes for the analysis entry, such as project, department, cost center, groups, etc.</xs:documentation>
516
+ </xs:annotation>
517
+ </xs:element>
518
+ </xs:sequence>
519
+ </xs:complexType>
520
+ </xs:element>
521
+ </xs:sequence>
522
+ </xs:complexType>
523
+ </xs:element>
524
+ <xs:element name="MovementTypeTable" minOccurs="0">
525
+ <xs:annotation>
526
+ <xs:documentation>Not in use.</xs:documentation>
527
+ </xs:annotation>
528
+ <xs:complexType>
529
+ <xs:sequence>
530
+ <xs:element name="MovementTypeTableEntry" maxOccurs="unbounded">
531
+ <xs:complexType>
532
+ <xs:sequence>
533
+ <xs:element name="MovementType" type="SAFcodeType">
534
+ <xs:annotation>
535
+ <xs:documentation>Identify kind of movement or movement line. E.g. sale, purchase, adjustment, etc. Or efficiencyloss, use of components in production, etc. Predescribed TABLE is possible.</xs:documentation>
536
+ </xs:annotation>
537
+ </xs:element>
538
+ <xs:element name="Description" type="SAFlongtextType">
539
+ <xs:annotation>
540
+ <xs:documentation>Description of the movement(sub)type</xs:documentation>
541
+ </xs:annotation>
542
+ </xs:element>
543
+ </xs:sequence>
544
+ </xs:complexType>
545
+ </xs:element>
546
+ </xs:sequence>
547
+ </xs:complexType>
548
+ </xs:element>
549
+ <xs:element name="Products" minOccurs="0">
550
+ <xs:annotation>
551
+ <xs:documentation>Not in use.</xs:documentation>
552
+ </xs:annotation>
553
+ <xs:complexType>
554
+ <xs:sequence>
555
+ <xs:element name="Product" maxOccurs="unbounded">
556
+ <xs:complexType>
557
+ <xs:sequence>
558
+ <xs:element name="ProductCode" type="SAFmiddle2textType">
559
+ <xs:annotation>
560
+ <xs:documentation>Product code</xs:documentation>
561
+ </xs:annotation>
562
+ </xs:element>
563
+ <xs:element name="GoodsServicesID" type="SAFcodeType" minOccurs="0">
564
+ <xs:annotation>
565
+ <xs:documentation>Indicator showing if goods or services (Predescribed TABLE is possible)</xs:documentation>
566
+ </xs:annotation>
567
+ </xs:element>
568
+ <xs:element name="ProductGroup" type="SAFmiddle2textType" minOccurs="0">
569
+ <xs:annotation>
570
+ <xs:documentation>Code identifying aggregated level at which similar products are grouped</xs:documentation>
571
+ </xs:annotation>
572
+ </xs:element>
573
+ <xs:element name="Description" type="SAFlongtextType">
574
+ <xs:annotation>
575
+ <xs:documentation>Description of goods or services.</xs:documentation>
576
+ </xs:annotation>
577
+ </xs:element>
578
+ <xs:element name="ProductCommodityCode" type="SAFmiddle1textType" minOccurs="0">
579
+ <xs:annotation>
580
+ <xs:documentation>Classification for import / export</xs:documentation>
581
+ </xs:annotation>
582
+ </xs:element>
583
+ <xs:element name="ProductNumberCode" type="SAFmiddle2textType" minOccurs="0">
584
+ <xs:annotation>
585
+ <xs:documentation>EAN or other code</xs:documentation>
586
+ </xs:annotation>
587
+ </xs:element>
588
+ <xs:element name="ValuationMethod" type="SAFcodeType" minOccurs="0">
589
+ <xs:annotation>
590
+ <xs:documentation>FIFO, LIFO, Average cost etc.</xs:documentation>
591
+ </xs:annotation>
592
+ </xs:element>
593
+ <xs:element name="UOMBase" type="SAFcodeType">
594
+ <xs:annotation>
595
+ <xs:documentation>Unit of measure for Stock Administration for this product Predescribed TABLE is possible.</xs:documentation>
596
+ </xs:annotation>
597
+ </xs:element>
598
+ <xs:sequence minOccurs="0">
599
+ <xs:annotation>
600
+ <xs:documentation>Not needed when not applicable</xs:documentation>
601
+ </xs:annotation>
602
+ <xs:element name="UOMStandard" type="SAFcodeType">
603
+ <xs:annotation>
604
+ <xs:documentation>A Standard Unit of Measure applicable for this product, f.i. Kilo, Metres, Litres (Predescribed TABLE is possible)</xs:documentation>
605
+ </xs:annotation>
606
+ </xs:element>
607
+ <xs:element name="UOMToUOMBaseConversionFactor" type="xs:decimal">
608
+ <xs:annotation>
609
+ <xs:documentation>Conversion factor of the UOM to UOM Base</xs:documentation>
610
+ </xs:annotation>
611
+ </xs:element>
612
+ </xs:sequence>
613
+ <xs:element name="Tax" minOccurs="0" maxOccurs="unbounded">
614
+ <xs:complexType>
615
+ <xs:sequence minOccurs="0">
616
+ <xs:element name="TaxType" type="SAFcodeType">
617
+ <xs:annotation>
618
+ <xs:documentation>Tax Type for lookup in tables</xs:documentation>
619
+ </xs:annotation>
620
+ </xs:element>
621
+ <xs:element name="TaxCode" type="SAFcodeType">
622
+ <xs:annotation>
623
+ <xs:documentation>Tax Code for lookup in tables</xs:documentation>
624
+ </xs:annotation>
625
+ </xs:element>
626
+ </xs:sequence>
627
+ </xs:complexType>
628
+ </xs:element>
629
+ </xs:sequence>
630
+ </xs:complexType>
631
+ </xs:element>
632
+ </xs:sequence>
633
+ </xs:complexType>
634
+ </xs:element>
635
+ <xs:element name="PhysicalStock" minOccurs="0">
636
+ <xs:annotation>
637
+ <xs:documentation>Not in use.</xs:documentation>
638
+ </xs:annotation>
639
+ <xs:complexType>
640
+ <xs:sequence>
641
+ <xs:element name="PhysicalStockEntry" maxOccurs="unbounded">
642
+ <xs:complexType>
643
+ <xs:sequence>
644
+ <xs:element name="WarehouseID" type="SAFmiddle1textType" minOccurs="0">
645
+ <xs:annotation>
646
+ <xs:documentation>Warehouse where goods held - possoble also to identify work-in-progress, or stock-in-transit</xs:documentation>
647
+ </xs:annotation>
648
+ </xs:element>
649
+ <xs:element name="LocationID" type="SAFshorttextType" minOccurs="0">
650
+ <xs:annotation>
651
+ <xs:documentation>Location of goods in warehouse</xs:documentation>
652
+ </xs:annotation>
653
+ </xs:element>
654
+ <xs:element name="ProductCode" type="SAFmiddle2textType">
655
+ <xs:annotation>
656
+ <xs:documentation>Product code</xs:documentation>
657
+ </xs:annotation>
658
+ </xs:element>
659
+ <xs:element name="StockAccountNo" type="SAFmiddle2textType" minOccurs="0">
660
+ <xs:annotation>
661
+ <xs:documentation>Stock batch, lot, serial identification. Not used when there is exactly 1 PhysicalStock entry per ProductCode</xs:documentation>
662
+ </xs:annotation>
663
+ </xs:element>
664
+ <xs:element name="ProductType" type="SAFshorttextType" minOccurs="0">
665
+ <xs:annotation>
666
+ <xs:documentation>To determine whether the product/stockaccount is raw material, work-in-progress, finished good, merchandise for resale, etc.</xs:documentation>
667
+ </xs:annotation>
668
+ </xs:element>
669
+ <xs:element name="ProductStatus" type="SAFshorttextType" minOccurs="0">
670
+ <xs:annotation>
671
+ <xs:documentation>To determine whether the product/stockaccount is discontinued, damaged, obsolete, active, etc.</xs:documentation>
672
+ </xs:annotation>
673
+ </xs:element>
674
+ <xs:element name="StockAccountCommodityCode" type="SAFmiddle1textType" minOccurs="0">
675
+ <xs:annotation>
676
+ <xs:documentation>Classification for import / export</xs:documentation>
677
+ </xs:annotation>
678
+ </xs:element>
679
+ <xs:element name="OwnerID" type="SAFmiddle1textType" minOccurs="0">
680
+ <xs:annotation>
681
+ <xs:documentation>Reference to the owner Master File</xs:documentation>
682
+ </xs:annotation>
683
+ </xs:element>
684
+ <xs:sequence minOccurs="0">
685
+ <xs:annotation>
686
+ <xs:documentation>Not needed when UOMPhysicalStock equals UOMBase</xs:documentation>
687
+ </xs:annotation>
688
+ <xs:element name="UOMPhysicalStock" type="SAFcodeType">
689
+ <xs:annotation>
690
+ <xs:documentation>Unit of Measurement for this Physical Stock position</xs:documentation>
691
+ </xs:annotation>
692
+ </xs:element>
693
+ <xs:element name="UOMToUOMBaseConversionFactor" type="xs:decimal">
694
+ <xs:annotation>
695
+ <xs:documentation>Conversion factor of the UOM to UOM Base</xs:documentation>
696
+ </xs:annotation>
697
+ </xs:element>
698
+ </xs:sequence>
699
+ <xs:element name="UnitPrice" type="SAFmonetaryType" minOccurs="0">
700
+ <xs:annotation>
701
+ <xs:documentation>Base Unit price for this stock account in the header's default currency.</xs:documentation>
702
+ </xs:annotation>
703
+ </xs:element>
704
+ <xs:element name="OpeningStockQuantity" type="SAFquantityType">
705
+ <xs:annotation>
706
+ <xs:documentation>In UOM Physical Stock for selection period</xs:documentation>
707
+ </xs:annotation>
708
+ </xs:element>
709
+ <xs:element name="OpeningStockValue" type="SAFmonetaryType" minOccurs="0">
710
+ <xs:annotation>
711
+ <xs:documentation>In the header's currency code for selection period</xs:documentation>
712
+ </xs:annotation>
713
+ </xs:element>
714
+ <xs:element name="ClosingStockQuantity" type="SAFquantityType">
715
+ <xs:annotation>
716
+ <xs:documentation>In UOM Physical Stock for selection period</xs:documentation>
717
+ </xs:annotation>
718
+ </xs:element>
719
+ <xs:element name="ClosingStockValue" type="SAFmonetaryType" minOccurs="0">
720
+ <xs:annotation>
721
+ <xs:documentation>Closing stock value in the header's default currency for selection period</xs:documentation>
722
+ </xs:annotation>
723
+ </xs:element>
724
+ <xs:element name="StockCharacteristics" minOccurs="0">
725
+ <xs:complexType>
726
+ <xs:sequence maxOccurs="unbounded">
727
+ <xs:element name="StockCharacteristic" type="SAFshorttextType">
728
+ <xs:annotation>
729
+ <xs:documentation>User definable characteristics of the goods. Predescribed TABLE is possible.</xs:documentation>
730
+ </xs:annotation>
731
+ </xs:element>
732
+ <xs:element name="StockCharacteristicValue" type="SAFmiddle1textType">
733
+ <xs:annotation>
734
+ <xs:documentation>The weight, pack size, colour etc.</xs:documentation>
735
+ </xs:annotation>
736
+ </xs:element>
737
+ </xs:sequence>
738
+ </xs:complexType>
739
+ </xs:element>
740
+ </xs:sequence>
741
+ </xs:complexType>
742
+ </xs:element>
743
+ </xs:sequence>
744
+ </xs:complexType>
745
+ </xs:element>
746
+ <xs:element name="Owners" minOccurs="0">
747
+ <xs:annotation>
748
+ <xs:documentation>The owners of a company.</xs:documentation>
749
+ </xs:annotation>
750
+ <xs:complexType>
751
+ <xs:sequence>
752
+ <xs:element name="Owner" maxOccurs="unbounded">
753
+ <xs:annotation>
754
+ <xs:documentation>Owner information.</xs:documentation>
755
+ </xs:annotation>
756
+ <xs:complexType>
757
+ <xs:complexContent>
758
+ <xs:extension base="CompanyStructure">
759
+ <xs:sequence>
760
+ <xs:element name="OwnerID" type="SAFmiddle1textType" minOccurs="0">
761
+ <xs:annotation>
762
+ <xs:documentation>Unique ID code/number for the owner.</xs:documentation>
763
+ </xs:annotation>
764
+ </xs:element>
765
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
766
+ <xs:annotation>
767
+ <xs:documentation>General ledger account code for this owner. Can be including sub-account id. It can contain many different levels to identify the Account. </xs:documentation>
768
+ </xs:annotation>
769
+ </xs:element>
770
+ </xs:sequence>
771
+ </xs:extension>
772
+ </xs:complexContent>
773
+ </xs:complexType>
774
+ </xs:element>
775
+ </xs:sequence>
776
+ </xs:complexType>
777
+ </xs:element>
778
+ <xs:element name="Assets" minOccurs="0">
779
+ <xs:annotation>
780
+ <xs:documentation>Not in use.</xs:documentation>
781
+ </xs:annotation>
782
+ <xs:complexType>
783
+ <xs:sequence>
784
+ <xs:element name="Asset" maxOccurs="unbounded">
785
+ <xs:complexType>
786
+ <xs:sequence>
787
+ <xs:element name="AssetID" type="SAFmiddle1textType">
788
+ <xs:annotation>
789
+ <xs:documentation>Unique identifier of the asset</xs:documentation>
790
+ </xs:annotation>
791
+ </xs:element>
792
+ <xs:element name="AccountID" type="SAFmiddle2textType">
793
+ <xs:annotation>
794
+ <xs:documentation>General Ledger Account code. Can be including sub-account id. It can contain many different levels to identify the Account. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
795
+ </xs:annotation>
796
+ </xs:element>
797
+ <xs:element name="Description" type="SAFlongtextType">
798
+ <xs:annotation>
799
+ <xs:documentation>Description of this asset</xs:documentation>
800
+ </xs:annotation>
801
+ </xs:element>
802
+ <xs:element name="Supplier" minOccurs="0" maxOccurs="unbounded">
803
+ <xs:annotation>
804
+ <xs:documentation>Contains the information of all suppliers, including the historical suppliers.</xs:documentation>
805
+ </xs:annotation>
806
+ <xs:complexType>
807
+ <xs:sequence>
808
+ <xs:element name="SupplierName" type="SAFmiddle2textType">
809
+ <xs:annotation>
810
+ <xs:documentation>Name of the supplier of the asset</xs:documentation>
811
+ </xs:annotation>
812
+ </xs:element>
813
+ <xs:element name="SupplierID" type="SAFmiddle1textType" minOccurs="0">
814
+ <xs:annotation>
815
+ <xs:documentation>Unique code for the supplier</xs:documentation>
816
+ </xs:annotation>
817
+ </xs:element>
818
+ <xs:element name="PostalAddress" type="AddressStructure">
819
+ <xs:annotation>
820
+ <xs:documentation>Address information of the supplier of the asset</xs:documentation>
821
+ </xs:annotation>
822
+ </xs:element>
823
+ </xs:sequence>
824
+ </xs:complexType>
825
+ </xs:element>
826
+ <xs:element name="PurchaseOrderDate" type="xs:date" minOccurs="0">
827
+ <xs:annotation>
828
+ <xs:documentation>Date of the purchase order of this asset</xs:documentation>
829
+ </xs:annotation>
830
+ </xs:element>
831
+ <xs:element name="DateOfAcquisition" type="xs:date">
832
+ <xs:annotation>
833
+ <xs:documentation>Date of the acquisition of the asset (usually the date of delivery).</xs:documentation>
834
+ </xs:annotation>
835
+ </xs:element>
836
+ <xs:element name="StartUpDate" type="xs:date" minOccurs="0">
837
+ <xs:annotation>
838
+ <xs:documentation>Commissioning date of the asset.</xs:documentation>
839
+ </xs:annotation>
840
+ </xs:element>
841
+ <xs:element name="Valuations">
842
+ <xs:annotation>
843
+ <xs:documentation>The data can be reported for different purposes. More than one can be in this SAF.</xs:documentation>
844
+ </xs:annotation>
845
+ <xs:complexType>
846
+ <xs:sequence>
847
+ <xs:element name="Valuation" maxOccurs="unbounded">
848
+ <xs:complexType>
849
+ <xs:sequence>
850
+ <xs:element name="AssetValuationType" type="SAFshorttextType" minOccurs="0">
851
+ <xs:annotation>
852
+ <xs:documentation>Describes the purpose for the reporting: f.i. commercial, tax in country 1, tax in country 2, etc.</xs:documentation>
853
+ </xs:annotation>
854
+ </xs:element>
855
+ <xs:element name="ValuationClass" type="SAFshorttextType" minOccurs="0">
856
+ <xs:annotation>
857
+ <xs:documentation>This describes the classification of the asset for (tax) reporting purposes.</xs:documentation>
858
+ </xs:annotation>
859
+ </xs:element>
860
+ <xs:element name="AcquisitionAndProductionCostsBegin" type="SAFmonetaryType">
861
+ <xs:annotation>
862
+ <xs:documentation>Total costs of acquisition and/or production of the asset at SelectionStartDate in the header's default currency.</xs:documentation>
863
+ </xs:annotation>
864
+ </xs:element>
865
+ <xs:element name="AcquisitionAndProductionCostsEnd" type="SAFmonetaryType">
866
+ <xs:annotation>
867
+ <xs:documentation>Total costs of acquisition and/or production of the asset at SelectionEndDate in the header's default currency.</xs:documentation>
868
+ </xs:annotation>
869
+ </xs:element>
870
+ <xs:element name="InvestmentSupport" type="SAFmonetaryType" minOccurs="0">
871
+ <xs:annotation>
872
+ <xs:documentation>Total amount of investment support for this asset in the header's default currency.</xs:documentation>
873
+ </xs:annotation>
874
+ </xs:element>
875
+ <xs:choice>
876
+ <xs:element name="AssetLifeYear" type="xs:decimal">
877
+ <xs:annotation>
878
+ <xs:documentation>Periode of useful life in years</xs:documentation>
879
+ </xs:annotation>
880
+ </xs:element>
881
+ <xs:element name="AssetLifeMonth" type="xs:decimal">
882
+ <xs:annotation>
883
+ <xs:documentation>Period of useful life in months</xs:documentation>
884
+ </xs:annotation>
885
+ </xs:element>
886
+ </xs:choice>
887
+ <xs:element name="AssetAddition" type="SAFmonetaryType" minOccurs="0">
888
+ <xs:annotation>
889
+ <xs:documentation>Bookvalue of the acquisition and/or production of the asset in the Selectionperiod in the header's default currency.</xs:documentation>
890
+ </xs:annotation>
891
+ </xs:element>
892
+ <xs:element name="Transfers" type="SAFmonetaryType" minOccurs="0">
893
+ <xs:annotation>
894
+ <xs:documentation>Book value of the transfers of the asset during the Selectionperiod in the header's default currency.</xs:documentation>
895
+ </xs:annotation>
896
+ </xs:element>
897
+ <xs:element name="AssetDisposal" type="SAFmonetaryType" minOccurs="0">
898
+ <xs:annotation>
899
+ <xs:documentation>Book value of the disposals of the asset during the Selectionperiod in the header's default currency.</xs:documentation>
900
+ </xs:annotation>
901
+ </xs:element>
902
+ <xs:element name="BookValueBegin" type="SAFmonetaryType" minOccurs="0">
903
+ <xs:annotation>
904
+ <xs:documentation>Bookvalue at the beginning of the Selectionperiod in the header's default currency.</xs:documentation>
905
+ </xs:annotation>
906
+ </xs:element>
907
+ <xs:element name="DepreciationMethod" type="SAFmiddle1textType" minOccurs="0">
908
+ <xs:annotation>
909
+ <xs:documentation>Method of normal depreciation during the Selectionperiod.</xs:documentation>
910
+ </xs:annotation>
911
+ </xs:element>
912
+ <xs:element name="DepreciationPercentage" type="xs:decimal" minOccurs="0">
913
+ <xs:annotation>
914
+ <xs:documentation>The rate of the normal depreciation per year or month (depends on choice useful life periode)</xs:documentation>
915
+ </xs:annotation>
916
+ </xs:element>
917
+ <xs:element name="DepreciationForPeriod" type="SAFmonetaryType">
918
+ <xs:annotation>
919
+ <xs:documentation>Total amouunt of normal depreciation during the Selectionperiod in the header's default currency.</xs:documentation>
920
+ </xs:annotation>
921
+ </xs:element>
922
+ <xs:element name="AppreciationForPeriod" type="SAFmonetaryType" minOccurs="0">
923
+ <xs:annotation>
924
+ <xs:documentation>Total amouunt of appreciation during the Selectionperiod in the header's default currency.</xs:documentation>
925
+ </xs:annotation>
926
+ </xs:element>
927
+ <xs:element name="ExtraordinaryDepreciationsForPeriod" minOccurs="0">
928
+ <xs:annotation>
929
+ <xs:documentation>Extraordinary depreciations for this asset during the Selectionperiod.</xs:documentation>
930
+ </xs:annotation>
931
+ <xs:complexType>
932
+ <xs:sequence>
933
+ <xs:element name="ExtraordinaryDepreciationForPeriod" maxOccurs="unbounded">
934
+ <xs:complexType>
935
+ <xs:sequence>
936
+ <xs:element name="ExtraordinaryDepreciationMethod" type="SAFmiddle1textType">
937
+ <xs:annotation>
938
+ <xs:documentation>Method of extraordinary depreciation during the Selectionperiod.</xs:documentation>
939
+ </xs:annotation>
940
+ </xs:element>
941
+ <xs:element name="ExtraordinaryDepreciationForPeriod" type="SAFmonetaryType">
942
+ <xs:annotation>
943
+ <xs:documentation>Amouunt of extraordinary depreciation during the Selectionperiod in the header's default currency.</xs:documentation>
944
+ </xs:annotation>
945
+ </xs:element>
946
+ </xs:sequence>
947
+ </xs:complexType>
948
+ </xs:element>
949
+ </xs:sequence>
950
+ </xs:complexType>
951
+ </xs:element>
952
+ <xs:element name="AccumulatedDepreciation" type="SAFmonetaryType" minOccurs="0">
953
+ <xs:annotation>
954
+ <xs:documentation>Total amount of depreciation for this asset</xs:documentation>
955
+ </xs:annotation>
956
+ </xs:element>
957
+ <xs:element name="BookValueEnd" type="SAFmonetaryType">
958
+ <xs:annotation>
959
+ <xs:documentation>Bookvalue at the end of the Selectionperiod in the header's default currency.</xs:documentation>
960
+ </xs:annotation>
961
+ </xs:element>
962
+ </xs:sequence>
963
+ </xs:complexType>
964
+ </xs:element>
965
+ </xs:sequence>
966
+ </xs:complexType>
967
+ </xs:element>
968
+ </xs:sequence>
969
+ </xs:complexType>
970
+ </xs:element>
971
+ </xs:sequence>
972
+ </xs:complexType>
973
+ </xs:element>
974
+ </xs:sequence>
975
+ </xs:complexType>
976
+ </xs:element>
977
+ <xs:element name="GeneralLedgerEntries" minOccurs="0">
978
+ <xs:annotation>
979
+ <xs:documentation>Accounting transactions.</xs:documentation>
980
+ </xs:annotation>
981
+ <xs:complexType>
982
+ <xs:sequence>
983
+ <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
984
+ <xs:annotation>
985
+ <xs:documentation>Number of entries. This is the total number of Transaction entries (accounting documents/vouchers) from all Journals included in the audit file.</xs:documentation>
986
+ </xs:annotation>
987
+ </xs:element>
988
+ <xs:element name="TotalDebit" type="SAFmonetaryType">
989
+ <xs:annotation>
990
+ <xs:documentation>The total of all debit amounts in the header's default currency.</xs:documentation>
991
+ </xs:annotation>
992
+ </xs:element>
993
+ <xs:element name="TotalCredit" type="SAFmonetaryType">
994
+ <xs:annotation>
995
+ <xs:documentation>The total of all credit amounts in the header's default currency.</xs:documentation>
996
+ </xs:annotation>
997
+ </xs:element>
998
+ <xs:element name="Journal" minOccurs="0" maxOccurs="unbounded">
999
+ <xs:annotation>
1000
+ <xs:documentation>Journal information.</xs:documentation>
1001
+ </xs:annotation>
1002
+ <xs:complexType>
1003
+ <xs:sequence>
1004
+ <xs:element name="JournalID" type="SAFshorttextType">
1005
+ <xs:annotation>
1006
+ <xs:documentation>Source GL journal identifier, or invoices and payments in single ledger systems.</xs:documentation>
1007
+ </xs:annotation>
1008
+ </xs:element>
1009
+ <xs:element name="Description" type="SAFlongtextType">
1010
+ <xs:annotation>
1011
+ <xs:documentation>Description of the Journal.</xs:documentation>
1012
+ </xs:annotation>
1013
+ </xs:element>
1014
+ <xs:element name="Type" type="SAFcodeType">
1015
+ <xs:annotation>
1016
+ <xs:documentation>Grouping mechanism for journals. Please use the examples in the technical description when appropriate.</xs:documentation>
1017
+ </xs:annotation>
1018
+ </xs:element>
1019
+ <xs:element name="Transaction" minOccurs="0" maxOccurs="unbounded">
1020
+ <xs:annotation>
1021
+ <xs:documentation>Accounting transactions.</xs:documentation>
1022
+ </xs:annotation>
1023
+ <xs:complexType>
1024
+ <xs:sequence>
1025
+ <xs:element name="TransactionID" type="SAFmiddle2textType">
1026
+ <xs:annotation>
1027
+ <xs:documentation>The number/ID of the accounting document/voucher. </xs:documentation>
1028
+ </xs:annotation>
1029
+ </xs:element>
1030
+ <xs:element name="Period" type="xs:nonNegativeInteger">
1031
+ <xs:annotation>
1032
+ <xs:documentation>Accounting Period.</xs:documentation>
1033
+ </xs:annotation>
1034
+ </xs:element>
1035
+ <xs:element name="PeriodYear">
1036
+ <xs:annotation>
1037
+ <xs:documentation>The year of the Accounting Period. Restriction: 1970-2100.</xs:documentation>
1038
+ </xs:annotation>
1039
+ <xs:simpleType>
1040
+ <xs:restriction base="xs:nonNegativeInteger">
1041
+ <xs:minInclusive value="1970"/>
1042
+ <xs:maxInclusive value="2100"/>
1043
+ </xs:restriction>
1044
+ </xs:simpleType>
1045
+ </xs:element>
1046
+ <xs:element name="TransactionDate" type="xs:date">
1047
+ <xs:annotation>
1048
+ <xs:documentation>The date of the accounting document/voucher.</xs:documentation>
1049
+ </xs:annotation>
1050
+ </xs:element>
1051
+ <xs:element name="SourceID" type="SAFmiddle1textType" minOccurs="0">
1052
+ <xs:annotation>
1053
+ <xs:documentation>Details of person or application that entered the transaction.</xs:documentation>
1054
+ </xs:annotation>
1055
+ </xs:element>
1056
+ <xs:element name="TransactionType" type="SAFshorttextType" minOccurs="0">
1057
+ <xs:annotation>
1058
+ <xs:documentation>Type of journaltransaction: normal, (automated) periodically, etc.</xs:documentation>
1059
+ </xs:annotation>
1060
+ </xs:element>
1061
+ <xs:element name="Description" type="SAFlongtextType">
1062
+ <xs:annotation>
1063
+ <xs:documentation>Description of Journal Transaction.</xs:documentation>
1064
+ </xs:annotation>
1065
+ </xs:element>
1066
+ <xs:element name="BatchID" type="SAFmiddle1textType" minOccurs="0">
1067
+ <xs:annotation>
1068
+ <xs:documentation>Systems generated ID for batch.</xs:documentation>
1069
+ </xs:annotation>
1070
+ </xs:element>
1071
+ <xs:element name="SystemEntryDate" type="xs:date">
1072
+ <xs:annotation>
1073
+ <xs:documentation>Date captured by system. The date when the transaction was entered into the system - manual entry, imported transaction, etc. If this date is not available in your system, use the TransactionDate.</xs:documentation>
1074
+ </xs:annotation>
1075
+ </xs:element>
1076
+ <xs:element name="GLPostingDate" type="xs:date">
1077
+ <xs:annotation>
1078
+ <xs:documentation>Date posting to the general ledger account. The date when the transaction was updated to the database. If this date is not available in your system, use the TransactionDate.</xs:documentation>
1079
+ </xs:annotation>
1080
+ </xs:element>
1081
+ <xs:element name="CustomerID" type="SAFmiddle1textType" minOccurs="0">
1082
+ <xs:annotation>
1083
+ <xs:documentation>Not in use.</xs:documentation>
1084
+ </xs:annotation>
1085
+ </xs:element>
1086
+ <xs:element name="SupplierID" type="SAFmiddle1textType" minOccurs="0">
1087
+ <xs:annotation>
1088
+ <xs:documentation>Not in use.</xs:documentation>
1089
+ </xs:annotation>
1090
+ </xs:element>
1091
+ <xs:element name="SystemID" type="SAFshorttextType" minOccurs="0">
1092
+ <xs:annotation>
1093
+ <xs:documentation>Unique ID/number created by the system for the accounting document/voucher.</xs:documentation>
1094
+ </xs:annotation>
1095
+ </xs:element>
1096
+ <xs:element name="Line" maxOccurs="unbounded">
1097
+ <xs:annotation>
1098
+ <xs:documentation>Transaction lines.</xs:documentation>
1099
+ </xs:annotation>
1100
+ <xs:complexType>
1101
+ <xs:sequence>
1102
+ <xs:element name="RecordID" type="SAFshorttextType">
1103
+ <xs:annotation>
1104
+ <xs:documentation>Identifier to trace entry to journal line or posting reference.</xs:documentation>
1105
+ </xs:annotation>
1106
+ </xs:element>
1107
+ <xs:element name="AccountID" type="SAFmiddle2textType">
1108
+ <xs:annotation>
1109
+ <xs:documentation>General ledger account code/number. If this Line is a ledger/sub account (accounts payable or accounts receivable) entry, then this is the account code/number into where this ledger/sub account is consolidated in the balance sheet. </xs:documentation>
1110
+ </xs:annotation>
1111
+ </xs:element>
1112
+ <xs:element name="Analysis" type="AnalysisStructure" minOccurs="0" maxOccurs="unbounded">
1113
+ <xs:annotation>
1114
+ <xs:documentation>General Ledger analysis codes</xs:documentation>
1115
+ </xs:annotation>
1116
+ </xs:element>
1117
+ <xs:element name="ValueDate" type="xs:date" minOccurs="0">
1118
+ <xs:annotation>
1119
+ <xs:documentation>Effective date from which interest charged. To be reported when this date or this Line of the accounting document/voucher differs from the TransactionDate.</xs:documentation>
1120
+ </xs:annotation>
1121
+ </xs:element>
1122
+ <xs:element name="SourceDocumentID" type="SAFmiddle1textType" minOccurs="0">
1123
+ <xs:annotation>
1124
+ <xs:documentation>Source document number to which line relates.</xs:documentation>
1125
+ </xs:annotation>
1126
+ </xs:element>
1127
+ <xs:element name="CustomerID" type="SAFmiddle1textType" minOccurs="0">
1128
+ <xs:annotation>
1129
+ <xs:documentation>Unique account code/number for the customer. Is only used if this Line is a ledger/sub account (accounts payable or accounts receivable) entry. Must not be used in conjunction with SupplierID.</xs:documentation>
1130
+ </xs:annotation>
1131
+ </xs:element>
1132
+ <xs:element name="SupplierID" type="SAFmiddle1textType" minOccurs="0">
1133
+ <xs:annotation>
1134
+ <xs:documentation>Unique account code/number for the supplier. Is only used if this Line is a ledger/sub account (accounts payable or accounts receivable) entry. Must not be used in conjunction with CustomerID.</xs:documentation>
1135
+ </xs:annotation>
1136
+ </xs:element>
1137
+ <xs:element name="Description" type="SAFlongtextType">
1138
+ <xs:annotation>
1139
+ <xs:documentation>Description of the Journal Line.</xs:documentation>
1140
+ </xs:annotation>
1141
+ </xs:element>
1142
+ <xs:choice>
1143
+ <xs:element name="DebitAmount" type="AmountStructure">
1144
+ <xs:annotation>
1145
+ <xs:documentation>Debit amount information for transaction.</xs:documentation>
1146
+ </xs:annotation>
1147
+ </xs:element>
1148
+ <xs:element name="CreditAmount" type="AmountStructure">
1149
+ <xs:annotation>
1150
+ <xs:documentation>Credit amount information for transaction.</xs:documentation>
1151
+ </xs:annotation>
1152
+ </xs:element>
1153
+ </xs:choice>
1154
+ <xs:element name="TaxInformation" type="TaxInformationStructure" minOccurs="0" maxOccurs="unbounded">
1155
+ <xs:annotation>
1156
+ <xs:documentation>Tax information for the accounting line.</xs:documentation>
1157
+ </xs:annotation>
1158
+ </xs:element>
1159
+ <xs:element name="ReferenceNumber" type="SAFmiddle1textType" minOccurs="0">
1160
+ <xs:annotation>
1161
+ <xs:documentation>The reference number, such as invoice or credit note number.</xs:documentation>
1162
+ </xs:annotation>
1163
+ </xs:element>
1164
+ <xs:element name="CID" type="SAFmiddle1textType" minOccurs="0">
1165
+ <xs:annotation>
1166
+ <xs:documentation>The CID number.</xs:documentation>
1167
+ </xs:annotation>
1168
+ </xs:element>
1169
+ <xs:element name="DueDate" type="xs:date" minOccurs="0">
1170
+ <xs:annotation>
1171
+ <xs:documentation>The due date.</xs:documentation>
1172
+ </xs:annotation>
1173
+ </xs:element>
1174
+ <xs:element name="Quantity" type="SAFquantityType" minOccurs="0">
1175
+ <xs:annotation>
1176
+ <xs:documentation>Quantity.</xs:documentation>
1177
+ </xs:annotation>
1178
+ </xs:element>
1179
+ <xs:element name="CrossReference" type="SAFmiddle1textType" minOccurs="0">
1180
+ <xs:annotation>
1181
+ <xs:documentation>Cross-reference. Information about matched documents/records.</xs:documentation>
1182
+ </xs:annotation>
1183
+ </xs:element>
1184
+ <xs:element name="SystemEntryTime" type="xs:dateTime" minOccurs="0">
1185
+ <xs:annotation>
1186
+ <xs:documentation>Time captured by system. The time when the transaction was entered into the system - manual entry, imported transaction, etc.</xs:documentation>
1187
+ </xs:annotation>
1188
+ </xs:element>
1189
+ <xs:element name="OwnerID" type="SAFmiddle1textType" minOccurs="0">
1190
+ <xs:annotation>
1191
+ <xs:documentation>The unique ID code/number for the owner.</xs:documentation>
1192
+ </xs:annotation>
1193
+ </xs:element>
1194
+ </xs:sequence>
1195
+ </xs:complexType>
1196
+ </xs:element>
1197
+ </xs:sequence>
1198
+ </xs:complexType>
1199
+ </xs:element>
1200
+ </xs:sequence>
1201
+ </xs:complexType>
1202
+ </xs:element>
1203
+ </xs:sequence>
1204
+ </xs:complexType>
1205
+ </xs:element>
1206
+ <xs:element name="SourceDocuments" minOccurs="0">
1207
+ <xs:annotation>
1208
+ <xs:documentation>Not in use.</xs:documentation>
1209
+ </xs:annotation>
1210
+ <xs:complexType>
1211
+ <xs:sequence>
1212
+ <xs:element name="SalesInvoices" minOccurs="0">
1213
+ <xs:complexType>
1214
+ <xs:sequence>
1215
+ <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
1216
+ <xs:annotation>
1217
+ <xs:documentation>Number of entries</xs:documentation>
1218
+ </xs:annotation>
1219
+ </xs:element>
1220
+ <xs:element name="TotalDebit" type="SAFmonetaryType">
1221
+ <xs:annotation>
1222
+ <xs:documentation>The total of all debit amounts in the header's default currency</xs:documentation>
1223
+ </xs:annotation>
1224
+ </xs:element>
1225
+ <xs:element name="TotalCredit" type="SAFmonetaryType">
1226
+ <xs:annotation>
1227
+ <xs:documentation>The total of all credit amounts in the header's default currency</xs:documentation>
1228
+ </xs:annotation>
1229
+ </xs:element>
1230
+ <xs:element name="Invoice" type="InvoiceStructure" maxOccurs="unbounded"/>
1231
+ </xs:sequence>
1232
+ </xs:complexType>
1233
+ </xs:element>
1234
+ <xs:element name="PurchaseInvoices" minOccurs="0">
1235
+ <xs:complexType>
1236
+ <xs:sequence>
1237
+ <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
1238
+ <xs:annotation>
1239
+ <xs:documentation>Number of entries</xs:documentation>
1240
+ </xs:annotation>
1241
+ </xs:element>
1242
+ <xs:element name="TotalDebit" type="SAFmonetaryType">
1243
+ <xs:annotation>
1244
+ <xs:documentation>The total of all debit amounts in the header's default currency</xs:documentation>
1245
+ </xs:annotation>
1246
+ </xs:element>
1247
+ <xs:element name="TotalCredit" type="SAFmonetaryType">
1248
+ <xs:annotation>
1249
+ <xs:documentation>The total of all credit amounts in the header's default currency</xs:documentation>
1250
+ </xs:annotation>
1251
+ </xs:element>
1252
+ <xs:element name="Invoice" type="InvoiceStructure" maxOccurs="unbounded"/>
1253
+ </xs:sequence>
1254
+ </xs:complexType>
1255
+ </xs:element>
1256
+ <xs:element name="Payments" minOccurs="0">
1257
+ <xs:complexType>
1258
+ <xs:sequence>
1259
+ <xs:element name="NumberOfEntries" type="xs:nonNegativeInteger">
1260
+ <xs:annotation>
1261
+ <xs:documentation>Number of entries</xs:documentation>
1262
+ </xs:annotation>
1263
+ </xs:element>
1264
+ <xs:element name="TotalDebit" type="SAFmonetaryType">
1265
+ <xs:annotation>
1266
+ <xs:documentation>The total of all debit amounts in the header's default currency</xs:documentation>
1267
+ </xs:annotation>
1268
+ </xs:element>
1269
+ <xs:element name="TotalCredit" type="SAFmonetaryType">
1270
+ <xs:annotation>
1271
+ <xs:documentation>The total of all credit amounts in the header's default currency</xs:documentation>
1272
+ </xs:annotation>
1273
+ </xs:element>
1274
+ <xs:element name="Payment" maxOccurs="unbounded">
1275
+ <xs:complexType>
1276
+ <xs:sequence>
1277
+ <xs:element name="PaymentRefNo" type="SAFmiddle1textType">
1278
+ <xs:annotation>
1279
+ <xs:documentation>Unique reference number for payment</xs:documentation>
1280
+ </xs:annotation>
1281
+ </xs:element>
1282
+ <xs:element name="Period" type="xs:nonNegativeInteger" minOccurs="0">
1283
+ <xs:annotation>
1284
+ <xs:documentation>Accounting Period</xs:documentation>
1285
+ </xs:annotation>
1286
+ </xs:element>
1287
+ <xs:element name="PeriodYear" minOccurs="0">
1288
+ <xs:annotation>
1289
+ <xs:documentation>The year of the Accounting Period.</xs:documentation>
1290
+ </xs:annotation>
1291
+ <xs:simpleType>
1292
+ <xs:restriction base="xs:nonNegativeInteger">
1293
+ <xs:minInclusive value="1970"/>
1294
+ <xs:maxInclusive value="2100"/>
1295
+ </xs:restriction>
1296
+ </xs:simpleType>
1297
+ </xs:element>
1298
+ <xs:element name="TransactionID" type="SAFmiddle2textType" minOccurs="0">
1299
+ <xs:annotation>
1300
+ <xs:documentation>Cross-reference to GL posting. It can contain many different levels to identify the transaction. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
1301
+ </xs:annotation>
1302
+ </xs:element>
1303
+ <xs:element name="TransactionDate" type="xs:date">
1304
+ <xs:annotation>
1305
+ <xs:documentation>Document date </xs:documentation>
1306
+ </xs:annotation>
1307
+ </xs:element>
1308
+ <xs:element name="PaymentMethod" type="SAFcodeType" minOccurs="0">
1309
+ <xs:annotation>
1310
+ <xs:documentation>Cheque, Bank, Giro, Cash, etc.</xs:documentation>
1311
+ </xs:annotation>
1312
+ </xs:element>
1313
+ <xs:element name="Description" type="SAFlongtextType">
1314
+ <xs:annotation>
1315
+ <xs:documentation>Description of the payment.</xs:documentation>
1316
+ </xs:annotation>
1317
+ </xs:element>
1318
+ <xs:element name="BatchID" type="SAFmiddle1textType" minOccurs="0">
1319
+ <xs:annotation>
1320
+ <xs:documentation>Systems generated ID for batch</xs:documentation>
1321
+ </xs:annotation>
1322
+ </xs:element>
1323
+ <xs:element name="SystemID" type="SAFmiddle1textType" minOccurs="0">
1324
+ <xs:annotation>
1325
+ <xs:documentation>Unique number created by the system for the document</xs:documentation>
1326
+ </xs:annotation>
1327
+ </xs:element>
1328
+ <xs:element name="SourceID" type="SAFmiddle1textType" minOccurs="0">
1329
+ <xs:annotation>
1330
+ <xs:documentation>Details of person or application that entered the transaction</xs:documentation>
1331
+ </xs:annotation>
1332
+ </xs:element>
1333
+ <xs:element name="Line" maxOccurs="unbounded">
1334
+ <xs:complexType>
1335
+ <xs:sequence>
1336
+ <xs:element name="LineNumber" type="SAFshorttextType" minOccurs="0">
1337
+ <xs:annotation>
1338
+ <xs:documentation>Number of the paymentline</xs:documentation>
1339
+ </xs:annotation>
1340
+ </xs:element>
1341
+ <xs:element name="SourceDocumentID" type="SAFmiddle1textType" minOccurs="0">
1342
+ <xs:annotation>
1343
+ <xs:documentation>The source document to which the line relates</xs:documentation>
1344
+ </xs:annotation>
1345
+ </xs:element>
1346
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
1347
+ <xs:annotation>
1348
+ <xs:documentation>General Ledger Account code. Can be including sub-account id. It can contain many different levels to identify the Account. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
1349
+ </xs:annotation>
1350
+ </xs:element>
1351
+ <xs:element name="Analysis" type="AnalysisStructure" minOccurs="0" maxOccurs="unbounded">
1352
+ <xs:annotation>
1353
+ <xs:documentation>General Ledger analysis codes</xs:documentation>
1354
+ </xs:annotation>
1355
+ </xs:element>
1356
+ <xs:element name="CustomerID" type="SAFmiddle1textType" minOccurs="0">
1357
+ <xs:annotation>
1358
+ <xs:documentation>Unique code for the customer </xs:documentation>
1359
+ </xs:annotation>
1360
+ </xs:element>
1361
+ <xs:element name="SupplierID" type="SAFmiddle1textType" minOccurs="0">
1362
+ <xs:annotation>
1363
+ <xs:documentation>Unique code for the supplier</xs:documentation>
1364
+ </xs:annotation>
1365
+ </xs:element>
1366
+ <xs:element name="TaxPointDate" type="xs:date" minOccurs="0">
1367
+ <xs:annotation>
1368
+ <xs:documentation>Tax Point date where recorded or if not recorded then the Invoice date </xs:documentation>
1369
+ </xs:annotation>
1370
+ </xs:element>
1371
+ <xs:element name="Description" type="SAFlongtextType" minOccurs="0">
1372
+ <xs:annotation>
1373
+ <xs:documentation>Description of the payment line.</xs:documentation>
1374
+ </xs:annotation>
1375
+ </xs:element>
1376
+ <xs:element name="DebitCreditIndicator">
1377
+ <xs:annotation>
1378
+ <xs:documentation>Indicates whether the amounts on line-level are debit or credit amounts. Entry must correspond to entry reflected in General Ledger Entry. Signing of lineamounts is relative to this indicator. E.g. a return can lead to a negative amount.</xs:documentation>
1379
+ </xs:annotation>
1380
+ <xs:simpleType>
1381
+ <xs:restriction base="SAFcodeType">
1382
+ <xs:enumeration value="D"/>
1383
+ <xs:enumeration value="C"/>
1384
+ </xs:restriction>
1385
+ </xs:simpleType>
1386
+ </xs:element>
1387
+ <xs:element name="PaymentLineAmount" type="AmountStructure">
1388
+ <xs:annotation>
1389
+ <xs:documentation>Amount for transaction excluding taxes.</xs:documentation>
1390
+ </xs:annotation>
1391
+ </xs:element>
1392
+ <xs:element name="TaxInformation" type="TaxInformationStructure" minOccurs="0" maxOccurs="unbounded"/>
1393
+ </xs:sequence>
1394
+ </xs:complexType>
1395
+ </xs:element>
1396
+ <xs:element name="Settlement" minOccurs="0">
1397
+ <xs:complexType>
1398
+ <xs:sequence>
1399
+ <xs:element name="SettlementDiscount" type="SAFmiddle1textType" minOccurs="0">
1400
+ <xs:annotation>
1401
+ <xs:documentation>Description Settlement / Other Discount </xs:documentation>
1402
+ </xs:annotation>
1403
+ </xs:element>
1404
+ <xs:element name="SettlementAmount" type="AmountStructure" minOccurs="0">
1405
+ <xs:annotation>
1406
+ <xs:documentation>Settlement amount</xs:documentation>
1407
+ </xs:annotation>
1408
+ </xs:element>
1409
+ <xs:element name="SettlementDate" type="xs:date" minOccurs="0">
1410
+ <xs:annotation>
1411
+ <xs:documentation>Date settled</xs:documentation>
1412
+ </xs:annotation>
1413
+ </xs:element>
1414
+ <xs:element name="PaymentMechanism" type="SAFcodeType" minOccurs="0">
1415
+ <xs:annotation>
1416
+ <xs:documentation>Payment mechanism </xs:documentation>
1417
+ </xs:annotation>
1418
+ </xs:element>
1419
+ </xs:sequence>
1420
+ </xs:complexType>
1421
+ </xs:element>
1422
+ <xs:element name="DocumentTotals" minOccurs="0">
1423
+ <xs:complexType>
1424
+ <xs:sequence>
1425
+ <xs:element name="TaxInformationTotals" type="TaxInformationStructure" minOccurs="0" maxOccurs="unbounded">
1426
+ <xs:annotation>
1427
+ <xs:documentation>Control totals tax payable information. Per TaxType/TaxCode the TaxBase and TaxAmount are summarised.</xs:documentation>
1428
+ </xs:annotation>
1429
+ </xs:element>
1430
+ <xs:element name="NetTotal" type="SAFmonetaryType" minOccurs="0">
1431
+ <xs:annotation>
1432
+ <xs:documentation>Total amount excluding tax in the header's default currency.</xs:documentation>
1433
+ </xs:annotation>
1434
+ </xs:element>
1435
+ <xs:element name="GrossTotal" type="SAFmonetaryType">
1436
+ <xs:annotation>
1437
+ <xs:documentation>Total amount including tax in the header's default currency.</xs:documentation>
1438
+ </xs:annotation>
1439
+ </xs:element>
1440
+ </xs:sequence>
1441
+ </xs:complexType>
1442
+ </xs:element>
1443
+ </xs:sequence>
1444
+ </xs:complexType>
1445
+ </xs:element>
1446
+ </xs:sequence>
1447
+ </xs:complexType>
1448
+ </xs:element>
1449
+ <xs:element name="MovementOfGoods" minOccurs="0">
1450
+ <xs:complexType>
1451
+ <xs:sequence>
1452
+ <xs:element name="NumberOfMovementLines" type="xs:nonNegativeInteger">
1453
+ <xs:annotation>
1454
+ <xs:documentation>Number of movementlines in selected period</xs:documentation>
1455
+ </xs:annotation>
1456
+ </xs:element>
1457
+ <xs:element name="TotalQuantityReceived" type="SAFquantityType">
1458
+ <xs:annotation>
1459
+ <xs:documentation>Quantity of goods received</xs:documentation>
1460
+ </xs:annotation>
1461
+ </xs:element>
1462
+ <xs:element name="TotalQuantityIssued" type="SAFquantityType">
1463
+ <xs:annotation>
1464
+ <xs:documentation>Quantity of goods issued in selected period</xs:documentation>
1465
+ </xs:annotation>
1466
+ </xs:element>
1467
+ <xs:element name="StockMovement" maxOccurs="unbounded">
1468
+ <xs:complexType>
1469
+ <xs:sequence>
1470
+ <xs:element name="MovementReference" type="SAFmiddle1textType">
1471
+ <xs:annotation>
1472
+ <xs:documentation>Unique reference to the movement.</xs:documentation>
1473
+ </xs:annotation>
1474
+ </xs:element>
1475
+ <xs:element name="MovementDate" type="xs:date">
1476
+ <xs:annotation>
1477
+ <xs:documentation>Document date </xs:documentation>
1478
+ </xs:annotation>
1479
+ </xs:element>
1480
+ <xs:element name="MovementPostingDate" type="xs:date" minOccurs="0">
1481
+ <xs:annotation>
1482
+ <xs:documentation>Date of posting of the movement if different to Movement Date</xs:documentation>
1483
+ </xs:annotation>
1484
+ </xs:element>
1485
+ <xs:element name="MovementPostingTime" type="xs:time" minOccurs="0">
1486
+ <xs:annotation>
1487
+ <xs:documentation>Time of posting of the movement</xs:documentation>
1488
+ </xs:annotation>
1489
+ </xs:element>
1490
+ <xs:element name="TaxPointDate" type="xs:date" minOccurs="0">
1491
+ <xs:annotation>
1492
+ <xs:documentation>Date of supply of goods</xs:documentation>
1493
+ </xs:annotation>
1494
+ </xs:element>
1495
+ <xs:element name="MovementType" type="SAFcodeType">
1496
+ <xs:annotation>
1497
+ <xs:documentation>The movementtype expresses the type of the process for the underlaying lines. E.g. production, sales, purchase. Predescribed TABLE is possible.</xs:documentation>
1498
+ </xs:annotation>
1499
+ </xs:element>
1500
+ <xs:element name="SourceID" type="SAFmiddle1textType" minOccurs="0">
1501
+ <xs:annotation>
1502
+ <xs:documentation>Details of person or application that entered the transaction</xs:documentation>
1503
+ </xs:annotation>
1504
+ </xs:element>
1505
+ <xs:element name="SystemID" type="SAFmiddle1textType" minOccurs="0">
1506
+ <xs:annotation>
1507
+ <xs:documentation>Unique number created by the system for the document</xs:documentation>
1508
+ </xs:annotation>
1509
+ </xs:element>
1510
+ <xs:element name="DocumentReference" minOccurs="0">
1511
+ <xs:complexType>
1512
+ <xs:sequence>
1513
+ <xs:element name="DocumentType" type="SAFshorttextType">
1514
+ <xs:annotation>
1515
+ <xs:documentation>Type of document</xs:documentation>
1516
+ </xs:annotation>
1517
+ </xs:element>
1518
+ <xs:element name="DocumentNumber" type="SAFmiddle1textType">
1519
+ <xs:annotation>
1520
+ <xs:documentation>Reference number of the document</xs:documentation>
1521
+ </xs:annotation>
1522
+ </xs:element>
1523
+ <xs:element name="DocumentLine" type="SAFshorttextType" minOccurs="0">
1524
+ <xs:annotation>
1525
+ <xs:documentation>Line number of the document</xs:documentation>
1526
+ </xs:annotation>
1527
+ </xs:element>
1528
+ </xs:sequence>
1529
+ </xs:complexType>
1530
+ </xs:element>
1531
+ <xs:element name="Line" maxOccurs="unbounded">
1532
+ <xs:complexType>
1533
+ <xs:sequence>
1534
+ <xs:element name="LineNumber" type="SAFshorttextType">
1535
+ <xs:annotation>
1536
+ <xs:documentation>Number of the movementline</xs:documentation>
1537
+ </xs:annotation>
1538
+ </xs:element>
1539
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
1540
+ <xs:annotation>
1541
+ <xs:documentation>General Ledger Account code. Can be including sub-account id.</xs:documentation>
1542
+ </xs:annotation>
1543
+ </xs:element>
1544
+ <xs:element name="TransactionID" type="SAFmiddle2textType" minOccurs="0">
1545
+ <xs:annotation>
1546
+ <xs:documentation>Cross-reference to GL posting. It can contain many different levels to identify the transaction. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
1547
+ </xs:annotation>
1548
+ </xs:element>
1549
+ <xs:element name="CustomerID" type="SAFmiddle1textType" minOccurs="0">
1550
+ <xs:annotation>
1551
+ <xs:documentation>Unique code for the customer </xs:documentation>
1552
+ </xs:annotation>
1553
+ </xs:element>
1554
+ <xs:element name="SupplierID" type="SAFmiddle1textType" minOccurs="0">
1555
+ <xs:annotation>
1556
+ <xs:documentation>Unique code for the supplier</xs:documentation>
1557
+ </xs:annotation>
1558
+ </xs:element>
1559
+ <xs:element name="ShipTo" type="ShippingPointStructure" minOccurs="0">
1560
+ <xs:annotation>
1561
+ <xs:documentation>Ship To details</xs:documentation>
1562
+ </xs:annotation>
1563
+ </xs:element>
1564
+ <xs:element name="ShipFrom" type="ShippingPointStructure" minOccurs="0">
1565
+ <xs:annotation>
1566
+ <xs:documentation>Ship from Details</xs:documentation>
1567
+ </xs:annotation>
1568
+ </xs:element>
1569
+ <xs:element name="ProductCode" type="SAFmiddle2textType">
1570
+ <xs:annotation>
1571
+ <xs:documentation>Product code</xs:documentation>
1572
+ </xs:annotation>
1573
+ </xs:element>
1574
+ <xs:element name="StockAccountNo" type="SAFmiddle2textType" minOccurs="0">
1575
+ <xs:annotation>
1576
+ <xs:documentation>Stock batch, lot, serial identification. Not used when there is exactly 1 PhysicalStock entry per ProductCode</xs:documentation>
1577
+ </xs:annotation>
1578
+ </xs:element>
1579
+ <xs:element name="Quantity" type="SAFquantityType">
1580
+ <xs:annotation>
1581
+ <xs:documentation>Quantity of goods </xs:documentation>
1582
+ </xs:annotation>
1583
+ </xs:element>
1584
+ <xs:sequence minOccurs="0">
1585
+ <xs:annotation>
1586
+ <xs:documentation>Not needed when UOM of this line equals UOMPhysicalStock</xs:documentation>
1587
+ </xs:annotation>
1588
+ <xs:element name="UnitOfMeasure" type="SAFcodeType">
1589
+ <xs:annotation>
1590
+ <xs:documentation>Quantity unit of measure e.g. pack of 12</xs:documentation>
1591
+ </xs:annotation>
1592
+ </xs:element>
1593
+ <xs:element name="UOMToUOMPhysicalStockConversionFactor" type="xs:decimal">
1594
+ <xs:annotation>
1595
+ <xs:documentation>Conversion factor of the UOM to UOM Physical Stock</xs:documentation>
1596
+ </xs:annotation>
1597
+ </xs:element>
1598
+ </xs:sequence>
1599
+ <xs:element name="BookValue" type="SAFmonetaryType" minOccurs="0">
1600
+ <xs:annotation>
1601
+ <xs:documentation>Value of the transaction line as registrerd in the general ledger in the header's default currency.</xs:documentation>
1602
+ </xs:annotation>
1603
+ </xs:element>
1604
+ <xs:element name="MovementSubType" type="SAFcodeType">
1605
+ <xs:annotation>
1606
+ <xs:documentation>Indentify the type of the movement on line / article level. A movement(type) production contains f.i. use of components, getting finished product, efficiencyloss as movementsubtypes. Predescribed TABLE is possible.</xs:documentation>
1607
+ </xs:annotation>
1608
+ </xs:element>
1609
+ <xs:element name="MovementComments" type="SAFlongtextType" minOccurs="0">
1610
+ <xs:annotation>
1611
+ <xs:documentation>A reason for the movement</xs:documentation>
1612
+ </xs:annotation>
1613
+ </xs:element>
1614
+ <xs:element name="TaxInformation" type="TaxInformationStructure" minOccurs="0" maxOccurs="unbounded"/>
1615
+ </xs:sequence>
1616
+ </xs:complexType>
1617
+ </xs:element>
1618
+ </xs:sequence>
1619
+ </xs:complexType>
1620
+ </xs:element>
1621
+ </xs:sequence>
1622
+ </xs:complexType>
1623
+ </xs:element>
1624
+ <xs:element name="AssetTransactions" minOccurs="0">
1625
+ <xs:annotation>
1626
+ <xs:documentation>Details of all transactions related to an asset during the Selectionperiod.</xs:documentation>
1627
+ </xs:annotation>
1628
+ <xs:complexType>
1629
+ <xs:sequence>
1630
+ <xs:element name="NumberOfAssetTransactions" type="xs:nonNegativeInteger">
1631
+ <xs:annotation>
1632
+ <xs:documentation>Number of movementlines during selected period</xs:documentation>
1633
+ </xs:annotation>
1634
+ </xs:element>
1635
+ <xs:element name="AssetTransaction" maxOccurs="unbounded">
1636
+ <xs:complexType>
1637
+ <xs:sequence>
1638
+ <xs:element name="AssetTransactionID" type="SAFmiddle2textType">
1639
+ <xs:annotation>
1640
+ <xs:documentation>Unique Identification of the transaction</xs:documentation>
1641
+ </xs:annotation>
1642
+ </xs:element>
1643
+ <xs:element name="AssetID" type="SAFmiddle1textType">
1644
+ <xs:annotation>
1645
+ <xs:documentation>Unique identifier of the asset</xs:documentation>
1646
+ </xs:annotation>
1647
+ </xs:element>
1648
+ <xs:element name="AssetTransactionType" type="SAFcodeType">
1649
+ <xs:annotation>
1650
+ <xs:documentation>Code for the type of the transaction</xs:documentation>
1651
+ </xs:annotation>
1652
+ </xs:element>
1653
+ <xs:element name="Description" type="SAFlongtextType" minOccurs="0">
1654
+ <xs:annotation>
1655
+ <xs:documentation>Description of the type of the transaction.</xs:documentation>
1656
+ </xs:annotation>
1657
+ </xs:element>
1658
+ <xs:element name="AssetTransactionDate" type="xs:date">
1659
+ <xs:annotation>
1660
+ <xs:documentation>Recording date of the transaction type (e. g. assets: date of the addition of the asset)</xs:documentation>
1661
+ </xs:annotation>
1662
+ </xs:element>
1663
+ <xs:element name="Supplier" minOccurs="0">
1664
+ <xs:annotation>
1665
+ <xs:documentation>Information about the supplier of the asset</xs:documentation>
1666
+ </xs:annotation>
1667
+ <xs:complexType>
1668
+ <xs:sequence>
1669
+ <xs:element name="SupplierName" type="SAFmiddle2textType">
1670
+ <xs:annotation>
1671
+ <xs:documentation>Name of the supplier of the asset</xs:documentation>
1672
+ </xs:annotation>
1673
+ </xs:element>
1674
+ <xs:element name="SupplierID" type="SAFmiddle1textType" minOccurs="0">
1675
+ <xs:annotation>
1676
+ <xs:documentation>Unique code for the supplier</xs:documentation>
1677
+ </xs:annotation>
1678
+ </xs:element>
1679
+ <xs:element name="PostalAddress" type="AddressStructure">
1680
+ <xs:annotation>
1681
+ <xs:documentation>Address information of the supplier of the asset</xs:documentation>
1682
+ </xs:annotation>
1683
+ </xs:element>
1684
+ </xs:sequence>
1685
+ </xs:complexType>
1686
+ </xs:element>
1687
+ <xs:element name="TransactionID" type="SAFmiddle2textType" minOccurs="0">
1688
+ <xs:annotation>
1689
+ <xs:documentation>Cross-reference to GL posting in the journal. It can contain many different levels to identify the transaction. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
1690
+ </xs:annotation>
1691
+ </xs:element>
1692
+ <xs:element name="AssetTransactionValuations">
1693
+ <xs:annotation>
1694
+ <xs:documentation>These amounts of the transaction can differ per asset valuation type.</xs:documentation>
1695
+ </xs:annotation>
1696
+ <xs:complexType>
1697
+ <xs:sequence>
1698
+ <xs:element name="AssetTransactionValuation" maxOccurs="unbounded">
1699
+ <xs:complexType>
1700
+ <xs:sequence>
1701
+ <xs:element name="AssetValuationType" type="SAFshorttextType" minOccurs="0">
1702
+ <xs:annotation>
1703
+ <xs:documentation>Describes the purpose for the reporting: f.i. commercial, tax in country 1, tax in country 2, etc.</xs:documentation>
1704
+ </xs:annotation>
1705
+ </xs:element>
1706
+ <xs:element name="AcquisitionAndProductionCostsOnTransaction" type="SAFmonetaryType">
1707
+ <xs:annotation>
1708
+ <xs:documentation>Costs of acquisition and/or production of related asset transaction in the header's default currency at date of transaction.</xs:documentation>
1709
+ </xs:annotation>
1710
+ </xs:element>
1711
+ <xs:element name="BookValueOnTransaction" type="SAFmonetaryType">
1712
+ <xs:annotation>
1713
+ <xs:documentation>Bookvalue of related asset transaction in the header's default currency at date of transaction.</xs:documentation>
1714
+ </xs:annotation>
1715
+ </xs:element>
1716
+ <xs:element name="AssetTransactionAmount" type="SAFmonetaryType">
1717
+ <xs:annotation>
1718
+ <xs:documentation>Net Amount of related asset transaction in the header's default currency, for instance the net sales revenue.</xs:documentation>
1719
+ </xs:annotation>
1720
+ </xs:element>
1721
+ </xs:sequence>
1722
+ </xs:complexType>
1723
+ </xs:element>
1724
+ </xs:sequence>
1725
+ </xs:complexType>
1726
+ </xs:element>
1727
+ </xs:sequence>
1728
+ </xs:complexType>
1729
+ </xs:element>
1730
+ </xs:sequence>
1731
+ </xs:complexType>
1732
+ </xs:element>
1733
+ </xs:sequence>
1734
+ </xs:complexType>
1735
+ </xs:element>
1736
+ </xs:sequence>
1737
+ </xs:complexType>
1738
+ <xs:key name="KeyGeneralLedgerAccount">
1739
+ <xs:selector xpath="MasterFiles/GeneralLedgerAccounts/Account"/>
1740
+ <xs:field xpath="AccountID"/>
1741
+ </xs:key>
1742
+ <xs:key name="KeySupplier">
1743
+ <xs:selector xpath="MasterFiles/Suppliers/Supplier"/>
1744
+ <xs:field xpath="SupplierID"/>
1745
+ </xs:key>
1746
+ <xs:key name="KeyCustomer">
1747
+ <xs:selector xpath="MasterFiles/Customers/Customer"/>
1748
+ <xs:field xpath="CustomerID"/>
1749
+ </xs:key>
1750
+ <xs:key name="KeyTaxType">
1751
+ <xs:selector xpath="MasterFiles/TaxTable/TaxTableEntry"/>
1752
+ <xs:field xpath="TaxType"/>
1753
+ </xs:key>
1754
+ <xs:key name="KeyUnitOfMeasure">
1755
+ <xs:selector xpath="MasterFiles/UOMTable/UOMTableEntry"/>
1756
+ <xs:field xpath="UnitOfMeasure"/>
1757
+ </xs:key>
1758
+ <xs:key name="KeyMovementType">
1759
+ <xs:selector xpath="MasterFiles/MovementTypeTable/MovementTypeTableEntry"/>
1760
+ <xs:field xpath="MovementType"/>
1761
+ </xs:key>
1762
+ <xs:key name="KeyProductCode">
1763
+ <xs:selector xpath="MasterFiles/Products/Product"/>
1764
+ <xs:field xpath="ProductCode"/>
1765
+ </xs:key>
1766
+ <xs:key name="KeyOwner">
1767
+ <xs:selector xpath="MasterFiles/Owners/Owner"/>
1768
+ <xs:field xpath="OwnerID"/>
1769
+ </xs:key>
1770
+ <xs:key name="KeyAsset">
1771
+ <xs:selector xpath="MasterFiles/Assets/Asset"/>
1772
+ <xs:field xpath="AssetID"/>
1773
+ </xs:key>
1774
+ <xs:key name="KeyMovementReference">
1775
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement"/>
1776
+ <xs:field xpath="MovementReference"/>
1777
+ </xs:key>
1778
+ <xs:key name="KeyTransactionReference">
1779
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction"/>
1780
+ <xs:field xpath="TransactionID"/>
1781
+ </xs:key>
1782
+ <xs:key name="KeyTaxCode">
1783
+ <xs:selector xpath="MasterFiles/TaxTable/TaxTableEntry/TaxCodeDetails"/>
1784
+ <xs:field xpath="TaxCode"/>
1785
+ </xs:key>
1786
+ <xs:key name="KeyAnalysisType">
1787
+ <xs:selector xpath="MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry"/>
1788
+ <xs:field xpath="AnalysisType"/>
1789
+ </xs:key>
1790
+ <xs:key name="KeyAnalysisID">
1791
+ <xs:selector xpath="MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry"/>
1792
+ <xs:field xpath="AnalysisID"/>
1793
+ </xs:key>
1794
+ <xs:key name="KeyStockAccountNo">
1795
+ <xs:selector xpath="MasterFiles/PhysicalStock/PhysicalStockEntry"/>
1796
+ <xs:field xpath="StockAccountNo"/>
1797
+ </xs:key>
1798
+ <xs:keyref name="RefTaxonomyAccount" refer="KeyGeneralLedgerAccount">
1799
+ <xs:selector xpath="MasterFiles/Taxonomies/Taxonomy/TaxonomyElement"/>
1800
+ <xs:field xpath="AccountID"/>
1801
+ </xs:keyref>
1802
+ <xs:keyref name="RefCustomerAccount" refer="KeyGeneralLedgerAccount">
1803
+ <xs:selector xpath="MasterFiles/Customers/Customer"/>
1804
+ <xs:field xpath="AccountID"/>
1805
+ </xs:keyref>
1806
+ <xs:keyref name="RefSupplierAccount" refer="KeyGeneralLedgerAccount">
1807
+ <xs:selector xpath="MasterFiles/Suppliers/Supplier"/>
1808
+ <xs:field xpath="AccountID"/>
1809
+ </xs:keyref>
1810
+ <xs:keyref name="RefOwnerAccount" refer="KeyGeneralLedgerAccount">
1811
+ <xs:selector xpath="MasterFiles/Owners/Owner"/>
1812
+ <xs:field xpath="AccountID"/>
1813
+ </xs:keyref>
1814
+ <xs:keyref name="RefAssetAccount" refer="KeyGeneralLedgerAccount">
1815
+ <xs:selector xpath="MasterFiles/Assets/Asset"/>
1816
+ <xs:field xpath="AccountID"/>
1817
+ </xs:keyref>
1818
+ <xs:keyref name="RefTransactionLineAccount" refer="KeyGeneralLedgerAccount">
1819
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
1820
+ <xs:field xpath="AccountID"/>
1821
+ </xs:keyref>
1822
+ <xs:keyref name="RefSalesInvoiceAccount" refer="KeyGeneralLedgerAccount">
1823
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice"/>
1824
+ <xs:field xpath="AccountID"/>
1825
+ </xs:keyref>
1826
+ <xs:keyref name="RefSalesInvoiceLineAccount" refer="KeyGeneralLedgerAccount">
1827
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line"/>
1828
+ <xs:field xpath="AccountID"/>
1829
+ </xs:keyref>
1830
+ <xs:keyref name="RefPurchaseInvoiceAccount" refer="KeyGeneralLedgerAccount">
1831
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice"/>
1832
+ <xs:field xpath="AccountID"/>
1833
+ </xs:keyref>
1834
+ <xs:keyref name="RefPurchaseInvoiceLineAccount" refer="KeyGeneralLedgerAccount">
1835
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line"/>
1836
+ <xs:field xpath="AccountID"/>
1837
+ </xs:keyref>
1838
+ <xs:keyref name="RefPaymentLineAccount" refer="KeyGeneralLedgerAccount">
1839
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line"/>
1840
+ <xs:field xpath="AccountID"/>
1841
+ </xs:keyref>
1842
+ <xs:keyref name="RefStockMovementLineAccount" refer="KeyGeneralLedgerAccount">
1843
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
1844
+ <xs:field xpath="AccountID"/>
1845
+ </xs:keyref>
1846
+ <xs:keyref name="RefAssetSupplier" refer="KeySupplier">
1847
+ <xs:selector xpath="MasterFiles/Assets/Asset/Supplier"/>
1848
+ <xs:field xpath="SupplierID"/>
1849
+ </xs:keyref>
1850
+ <xs:keyref name="RefGLTransactionSupplier" refer="KeySupplier">
1851
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction"/>
1852
+ <xs:field xpath="SupplierID"/>
1853
+ </xs:keyref>
1854
+ <xs:keyref name="RefGLTransactionLineSupplier" refer="KeySupplier">
1855
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
1856
+ <xs:field xpath="SupplierID"/>
1857
+ </xs:keyref>
1858
+ <xs:keyref name="RefSalesInvoiceSupplier" refer="KeySupplier">
1859
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/SupplierInfo"/>
1860
+ <xs:field xpath="SupplierID"/>
1861
+ </xs:keyref>
1862
+ <xs:keyref name="RefPurchaseInvoiceSupplier" refer="KeySupplier">
1863
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/SupplierInfo"/>
1864
+ <xs:field xpath="SupplierID"/>
1865
+ </xs:keyref>
1866
+ <xs:keyref name="RefPaymenLineSupplier" refer="KeySupplier">
1867
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line"/>
1868
+ <xs:field xpath="SupplierID"/>
1869
+ </xs:keyref>
1870
+ <xs:keyref name="RefStockMovementLineSupplier" refer="KeySupplier">
1871
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
1872
+ <xs:field xpath="SupplierID"/>
1873
+ </xs:keyref>
1874
+ <xs:keyref name="RefAssetTransactionSupplier" refer="KeySupplier">
1875
+ <xs:selector xpath="SourceDocuments/AssetTransactions/AssetTransaction/Supplier"/>
1876
+ <xs:field xpath="SupplierID"/>
1877
+ </xs:keyref>
1878
+ <xs:keyref name="RefGLTransactionCustomer" refer="KeyCustomer">
1879
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction"/>
1880
+ <xs:field xpath="CustomerID"/>
1881
+ </xs:keyref>
1882
+ <xs:keyref name="RefGLTransactionLineCustomer" refer="KeyCustomer">
1883
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
1884
+ <xs:field xpath="CustomerID"/>
1885
+ </xs:keyref>
1886
+ <xs:keyref name="RefSalesInvoiceCustomer" refer="KeyCustomer">
1887
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/CustomerInfo"/>
1888
+ <xs:field xpath="CustomerID"/>
1889
+ </xs:keyref>
1890
+ <xs:keyref name="RefPurchaseInvoiceCustomer" refer="KeyCustomer">
1891
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/CustomerInfo"/>
1892
+ <xs:field xpath="CustomerID"/>
1893
+ </xs:keyref>
1894
+ <xs:keyref name="RefPaymentLineCustomer" refer="KeyCustomer">
1895
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line"/>
1896
+ <xs:field xpath="CustomerID"/>
1897
+ </xs:keyref>
1898
+ <xs:keyref name="RefStockMovementLineCustomer" refer="KeyCustomer">
1899
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
1900
+ <xs:field xpath="CustomerID"/>
1901
+ </xs:keyref>
1902
+ <xs:keyref name="RefRegistrationTaxType" refer="KeyTaxType">
1903
+ <xs:selector xpath="Header/Company/TaxRegistration"/>
1904
+ <xs:field xpath="TaxType"/>
1905
+ </xs:keyref>
1906
+ <xs:keyref name="RefCustomerTaxType" refer="KeyTaxType">
1907
+ <xs:selector xpath="MasterFiles/Customers/Customer/TaxRegistration"/>
1908
+ <xs:field xpath="TaxType"/>
1909
+ </xs:keyref>
1910
+ <xs:keyref name="RefSupplierTaxType" refer="KeyTaxType">
1911
+ <xs:selector xpath="MasterFiles/Suppliers/Supplier/TaxRegistration"/>
1912
+ <xs:field xpath="TaxType"/>
1913
+ </xs:keyref>
1914
+ <xs:keyref name="RefProductTaxType" refer="KeyTaxType">
1915
+ <xs:selector xpath="MasterFiles/Products/Product/Tax"/>
1916
+ <xs:field xpath="TaxType"/>
1917
+ </xs:keyref>
1918
+ <xs:keyref name="RefOwnerTaxType" refer="KeyTaxType">
1919
+ <xs:selector xpath="MasterFiles/Owners/Owner/TaxRegistration"/>
1920
+ <xs:field xpath="TaxType"/>
1921
+ </xs:keyref>
1922
+ <xs:keyref name="RefGLTransactionTaxType" refer="KeyTaxType">
1923
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/TaxInformation"/>
1924
+ <xs:field xpath="TaxType"/>
1925
+ </xs:keyref>
1926
+ <xs:keyref name="RefPurchaseInvoiceLineTaxType" refer="KeyTaxType">
1927
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/TaxInformation"/>
1928
+ <xs:field xpath="TaxType"/>
1929
+ </xs:keyref>
1930
+ <xs:keyref name="RefPurchaseInvoiceTotalsTaxType" refer="KeyTaxType">
1931
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
1932
+ <xs:field xpath="TaxType"/>
1933
+ </xs:keyref>
1934
+ <xs:keyref name="RefSalesInvoiceLineTaxType" refer="KeyTaxType">
1935
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/TaxInformation"/>
1936
+ <xs:field xpath="TaxType"/>
1937
+ </xs:keyref>
1938
+ <xs:keyref name="RefSalesInvoiceTotalsTaxType" refer="KeyTaxType">
1939
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
1940
+ <xs:field xpath="TaxType"/>
1941
+ </xs:keyref>
1942
+ <xs:keyref name="RefPaymentLineTaxType" refer="KeyTaxType">
1943
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line/TaxInformation"/>
1944
+ <xs:field xpath="TaxType"/>
1945
+ </xs:keyref>
1946
+ <xs:keyref name="RefPaymentTotalsTaxType" refer="KeyTaxType">
1947
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line/TaxInformation"/>
1948
+ <xs:field xpath="TaxType"/>
1949
+ </xs:keyref>
1950
+ <xs:keyref name="RefStockMovementLineTaxType" refer="KeyTaxType">
1951
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line/TaxInformation"/>
1952
+ <xs:field xpath="TaxType"/>
1953
+ </xs:keyref>
1954
+ <xs:keyref name="RefProductUOMBase" refer="KeyUnitOfMeasure">
1955
+ <xs:selector xpath="MasterFiles/Products/Product"/>
1956
+ <xs:field xpath="UOMBase"/>
1957
+ </xs:keyref>
1958
+ <xs:keyref name="RefProductUOMStandard" refer="KeyUnitOfMeasure">
1959
+ <xs:selector xpath="MasterFiles/Products/Product"/>
1960
+ <xs:field xpath="UOMStandard"/>
1961
+ </xs:keyref>
1962
+ <xs:keyref name="RefUOMPhysicalStock" refer="KeyUnitOfMeasure">
1963
+ <xs:selector xpath="MasterFiles/PhysicalStock/PhysicalStockEntry"/>
1964
+ <xs:field xpath="UOMPhysicalStock"/>
1965
+ </xs:keyref>
1966
+ <xs:keyref name="RefSalesInvoiceLineUOM" refer="KeyUnitOfMeasure">
1967
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line"/>
1968
+ <xs:field xpath="InvoiceUOM"/>
1969
+ </xs:keyref>
1970
+ <xs:keyref name="RefPurchaseInvoiceLineUOM" refer="KeyUnitOfMeasure">
1971
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line"/>
1972
+ <xs:field xpath="InvoiceUOM"/>
1973
+ </xs:keyref>
1974
+ <xs:keyref name="RefStockMovementUOM" refer="KeyUnitOfMeasure">
1975
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
1976
+ <xs:field xpath="UnitOfMeasure"/>
1977
+ </xs:keyref>
1978
+ <xs:keyref name="RefStockMovementType" refer="KeyMovementType">
1979
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement"/>
1980
+ <xs:field xpath="MovementType"/>
1981
+ </xs:keyref>
1982
+ <xs:keyref name="RefStockMovementLineType" refer="KeyMovementType">
1983
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
1984
+ <xs:field xpath="MovementSubType"/>
1985
+ </xs:keyref>
1986
+ <xs:keyref name="RefPhysicalStockProductCode" refer="KeyProductCode">
1987
+ <xs:selector xpath="MasterFiles/PhysicalStock/PhysicalStockEntry"/>
1988
+ <xs:field xpath="ProductCode"/>
1989
+ </xs:keyref>
1990
+ <xs:keyref name="RefSalesInvoiceLineProductCode" refer="KeyProductCode">
1991
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line"/>
1992
+ <xs:field xpath="ProductCode"/>
1993
+ </xs:keyref>
1994
+ <xs:keyref name="RefPurchaseInvpiceLineProductCode" refer="KeyProductCode">
1995
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line"/>
1996
+ <xs:field xpath="ProductCode"/>
1997
+ </xs:keyref>
1998
+ <xs:keyref name="RefStockMovementLineProductCode" refer="KeyProductCode">
1999
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
2000
+ <xs:field xpath="ProductCode"/>
2001
+ </xs:keyref>
2002
+ <xs:keyref name="RefPhysicalStockOwner" refer="KeyOwner">
2003
+ <xs:selector xpath="MasterFiles/PhysicalStock/PhysicalStockEntry"/>
2004
+ <xs:field xpath="OwnerID"/>
2005
+ </xs:keyref>
2006
+ <xs:keyref name="RefTransactionLineOwner" refer="KeyOwner">
2007
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line"/>
2008
+ <xs:field xpath="OwnerID"/>
2009
+ </xs:keyref>
2010
+ <xs:keyref name="RefAssetTransactionAsset" refer="KeyAsset">
2011
+ <xs:selector xpath="SourceDocuments/AssetTransactions/AssetTransaction"/>
2012
+ <xs:field xpath="AssetID"/>
2013
+ </xs:keyref>
2014
+ <xs:keyref name="RefSalesInvoiceLineMovementReference" refer="KeyMovementReference">
2015
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/Delivery"/>
2016
+ <xs:field xpath="MovementReference"/>
2017
+ </xs:keyref>
2018
+ <xs:keyref name="RefPurchaseInvoiceLineMovementReference" refer="KeyMovementReference">
2019
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/Delivery"/>
2020
+ <xs:field xpath="MovementReference"/>
2021
+ </xs:keyref>
2022
+ <xs:keyref name="RefSalesInvoiceTransactionReference" refer="KeyTransactionReference">
2023
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice"/>
2024
+ <xs:field xpath="TransactionID"/>
2025
+ </xs:keyref>
2026
+ <xs:keyref name="RefPurchaseInvoideTransacrionReference" refer="KeyTransactionReference">
2027
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice"/>
2028
+ <xs:field xpath="TransactionID"/>
2029
+ </xs:keyref>
2030
+ <xs:keyref name="RefStockMovementTransactionReference" refer="KeyTransactionReference">
2031
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
2032
+ <xs:field xpath="TransactionID"/>
2033
+ </xs:keyref>
2034
+ <xs:keyref name="RefPaymentTransactionReference" refer="KeyTransactionReference">
2035
+ <xs:selector xpath="SourceDocuments/Payments/Payment"/>
2036
+ <xs:field xpath="TransactionID"/>
2037
+ </xs:keyref>
2038
+ <xs:keyref name="RefAssetTransactionReference" refer="KeyTransactionReference">
2039
+ <xs:selector xpath="SourceDocuments/AssetTransactions/AssetTransaction"/>
2040
+ <xs:field xpath="AssetTransactionID"/>
2041
+ </xs:keyref>
2042
+ <xs:keyref name="RefProductTaxCode" refer="KeyTaxCode">
2043
+ <xs:selector xpath="MasterFiles/Products/Product/Tax"/>
2044
+ <xs:field xpath="TaxCode"/>
2045
+ </xs:keyref>
2046
+ <xs:keyref name="RefGLTransactionLineTaxCode" refer="KeyTaxCode">
2047
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/TaxInformation"/>
2048
+ <xs:field xpath="TaxCode"/>
2049
+ </xs:keyref>
2050
+ <xs:keyref name="RefPurchaseInvoiceLineTaxCode" refer="KeyTaxCode">
2051
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/TaxInformation"/>
2052
+ <xs:field xpath="TaxCode"/>
2053
+ </xs:keyref>
2054
+ <xs:keyref name="RefPurchaseInvoiceTotalsTaxCode" refer="KeyTaxCode">
2055
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
2056
+ <xs:field xpath="TaxCode"/>
2057
+ </xs:keyref>
2058
+ <xs:keyref name="RefSalesInvoiceLineTaxCode" refer="KeyTaxCode">
2059
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/TaxInformation"/>
2060
+ <xs:field xpath="TaxCode"/>
2061
+ </xs:keyref>
2062
+ <xs:keyref name="RefSalesInvoiceTotalsTaxCode" refer="KeyTaxCode">
2063
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/DocumentTotals/TaxInformationTotals"/>
2064
+ <xs:field xpath="TaxCode"/>
2065
+ </xs:keyref>
2066
+ <xs:keyref name="RefPaymentLineTaxCode" refer="KeyTaxCode">
2067
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line/TaxInformation"/>
2068
+ <xs:field xpath="TaxCode"/>
2069
+ </xs:keyref>
2070
+ <xs:keyref name="RefPaymentTotalsTaxCode" refer="KeyTaxCode">
2071
+ <xs:selector xpath="SourceDocuments/Payments/Payment/DocumentTotals/TaxInformationTotals"/>
2072
+ <xs:field xpath="TaxCode"/>
2073
+ </xs:keyref>
2074
+ <xs:keyref name="RefStockMovementLineTaxCode" refer="KeyTaxCode">
2075
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line/TaxInformation"/>
2076
+ <xs:field xpath="TaxCode"/>
2077
+ </xs:keyref>
2078
+ <xs:keyref name="RefGLAnalysisType" refer="KeyAnalysisType">
2079
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/Analysis"/>
2080
+ <xs:field xpath="AnalysisType"/>
2081
+ </xs:keyref>
2082
+ <xs:keyref name="RefGLAnalysisID" refer="KeyAnalysisID">
2083
+ <xs:selector xpath="GeneralLedgerEntries/Journal/Transaction/Line/Analysis"/>
2084
+ <xs:field xpath="AnalysisID"/>
2085
+ </xs:keyref>
2086
+ <xs:keyref name="RefSalesInvoiceLineAnalysisType" refer="KeyAnalysisType">
2087
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/Analysis"/>
2088
+ <xs:field xpath="AnalysisType"/>
2089
+ </xs:keyref>
2090
+ <xs:keyref name="RefSalesInvoiceLineAnalysisID" refer="KeyAnalysisID">
2091
+ <xs:selector xpath="SourceDocuments/SalesInvoices/Invoice/Line/Analysis"/>
2092
+ <xs:field xpath="AnalysisID"/>
2093
+ </xs:keyref>
2094
+ <xs:keyref name="RefPurchaseInvoiceLineAnalysisType" refer="KeyAnalysisType">
2095
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/Analysis"/>
2096
+ <xs:field xpath="AnalysisType"/>
2097
+ </xs:keyref>
2098
+ <xs:keyref name="RefPurchaseInvoiceLineAnalysisID" refer="KeyAnalysisID">
2099
+ <xs:selector xpath="SourceDocuments/PurchaseInvoices/Invoice/Line/Analysis"/>
2100
+ <xs:field xpath="AnalysisID"/>
2101
+ </xs:keyref>
2102
+ <xs:keyref name="RefPaymentLineAnalysisType" refer="KeyAnalysisType">
2103
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line/Analysis"/>
2104
+ <xs:field xpath="AnalysisType"/>
2105
+ </xs:keyref>
2106
+ <xs:keyref name="RefPaymentLineAnalysisID" refer="KeyAnalysisID">
2107
+ <xs:selector xpath="SourceDocuments/Payments/Payment/Line/Analysis"/>
2108
+ <xs:field xpath="AnalysisID"/>
2109
+ </xs:keyref>
2110
+ <xs:keyref name="RefCustomerPartyAnalysisType" refer="KeyAnalysisType">
2111
+ <xs:selector xpath="MasterFiles/Customers/Customer/PartyInfo/Analysis"/>
2112
+ <xs:field xpath="AnalysisType"/>
2113
+ </xs:keyref>
2114
+ <xs:keyref name="RefCustomerPartyAnalysisID" refer="KeyAnalysisID">
2115
+ <xs:selector xpath="MasterFiles/Customers/Customer/PartyInfo/Analysis"/>
2116
+ <xs:field xpath="AnalysisID"/>
2117
+ </xs:keyref>
2118
+ <xs:keyref name="RefSupplierPartyAnalysisType" refer="KeyAnalysisType">
2119
+ <xs:selector xpath="MasterFiles/Suppliers/Supplier/PartyInfo/Analysis"/>
2120
+ <xs:field xpath="AnalysisType"/>
2121
+ </xs:keyref>
2122
+ <xs:keyref name="RefSupplierPartyAnalysisID" refer="KeyAnalysisID">
2123
+ <xs:selector xpath="MasterFiles/Suppliers/Supplier/PartyInfo/Analysis"/>
2124
+ <xs:field xpath="AnalysisID"/>
2125
+ </xs:keyref>
2126
+ <xs:keyref name="RefAnalysisPartyAnalysisType" refer="KeyAnalysisType">
2127
+ <xs:selector xpath="MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry/Analysis"/>
2128
+ <xs:field xpath="AnalysisType"/>
2129
+ </xs:keyref>
2130
+ <xs:keyref name="RefAnalysisPartyAnalysisID" refer="KeyAnalysisID">
2131
+ <xs:selector xpath="MasterFiles/AnalysisTypeTable/AnalysisTypeTableEntry/Analysis"/>
2132
+ <xs:field xpath="AnalysisID"/>
2133
+ </xs:keyref>
2134
+ <xs:keyref name="RefStockMovementLineStockAccountNo" refer="KeyStockAccountNo">
2135
+ <xs:selector xpath="SourceDocuments/MovementOfGoods/StockMovement/Line"/>
2136
+ <xs:field xpath="StockAccountNo"/>
2137
+ </xs:keyref>
2138
+ </xs:element>
2139
+ <xs:complexType name="InvoiceStructure">
2140
+ <xs:annotation>
2141
+ <xs:documentation>Containing all information about sales invoices and suppliers invoices.</xs:documentation>
2142
+ </xs:annotation>
2143
+ <xs:sequence>
2144
+ <xs:element name="InvoiceNo" type="SAFmiddle2textType"/>
2145
+ <xs:choice minOccurs="0">
2146
+ <xs:element name="CustomerInfo">
2147
+ <xs:complexType>
2148
+ <xs:sequence>
2149
+ <xs:choice>
2150
+ <xs:element name="CustomerID" type="SAFmiddle1textType">
2151
+ <xs:annotation>
2152
+ <xs:documentation>Unique code for the customer</xs:documentation>
2153
+ </xs:annotation>
2154
+ </xs:element>
2155
+ <xs:element name="Name" type="SAFmiddle2textType">
2156
+ <xs:annotation>
2157
+ <xs:documentation>Name of the customer</xs:documentation>
2158
+ </xs:annotation>
2159
+ </xs:element>
2160
+ </xs:choice>
2161
+ <xs:element name="BillingAddress" type="AddressStructure"/>
2162
+ </xs:sequence>
2163
+ </xs:complexType>
2164
+ </xs:element>
2165
+ <xs:element name="SupplierInfo">
2166
+ <xs:complexType>
2167
+ <xs:sequence>
2168
+ <xs:choice>
2169
+ <xs:element name="SupplierID" type="SAFmiddle1textType">
2170
+ <xs:annotation>
2171
+ <xs:documentation>Unique code for the supplier</xs:documentation>
2172
+ </xs:annotation>
2173
+ </xs:element>
2174
+ <xs:element name="Name" type="SAFmiddle2textType">
2175
+ <xs:annotation>
2176
+ <xs:documentation>Name of the supplier</xs:documentation>
2177
+ </xs:annotation>
2178
+ </xs:element>
2179
+ </xs:choice>
2180
+ <xs:element name="BillingAddress" type="AddressStructure"/>
2181
+ </xs:sequence>
2182
+ </xs:complexType>
2183
+ </xs:element>
2184
+ </xs:choice>
2185
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
2186
+ <xs:annotation>
2187
+ <xs:documentation>General Ledger Account code of the customer / supplier. Can be including sub-account id. It can contain many different levels to identify the Account. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
2188
+ </xs:annotation>
2189
+ </xs:element>
2190
+ <xs:element name="BranchStoreNumber" type="SAFmiddle1textType" minOccurs="0">
2191
+ <xs:annotation>
2192
+ <xs:documentation>Branch or Storenumber, additional segregation of customer/supplier, used if not included as part of the customer/supplier id.</xs:documentation>
2193
+ </xs:annotation>
2194
+ </xs:element>
2195
+ <xs:element name="Period" type="xs:nonNegativeInteger" minOccurs="0">
2196
+ <xs:annotation>
2197
+ <xs:documentation>Accounting Period</xs:documentation>
2198
+ </xs:annotation>
2199
+ </xs:element>
2200
+ <xs:element name="PeriodYear" minOccurs="0">
2201
+ <xs:annotation>
2202
+ <xs:documentation>The year of the Accounting Period.</xs:documentation>
2203
+ </xs:annotation>
2204
+ <xs:simpleType>
2205
+ <xs:restriction base="xs:nonNegativeInteger">
2206
+ <xs:minInclusive value="1970"/>
2207
+ <xs:maxInclusive value="2100"/>
2208
+ </xs:restriction>
2209
+ </xs:simpleType>
2210
+ </xs:element>
2211
+ <xs:element name="InvoiceDate" type="xs:date"/>
2212
+ <xs:element name="InvoiceType" type="SAFcodeType" minOccurs="0">
2213
+ <xs:annotation>
2214
+ <xs:documentation>Type of invoice: Debit invoice, Credit invoice, Cash, Ticket, etc.</xs:documentation>
2215
+ </xs:annotation>
2216
+ </xs:element>
2217
+ <xs:element name="ShipTo" type="ShippingPointStructure" minOccurs="0">
2218
+ <xs:annotation>
2219
+ <xs:documentation>Ship To details</xs:documentation>
2220
+ </xs:annotation>
2221
+ </xs:element>
2222
+ <xs:element name="ShipFrom" type="ShippingPointStructure" minOccurs="0">
2223
+ <xs:annotation>
2224
+ <xs:documentation>Ship from Details</xs:documentation>
2225
+ </xs:annotation>
2226
+ </xs:element>
2227
+ <xs:element name="PaymentTerms" type="SAFmiddle2textType" minOccurs="0">
2228
+ <xs:annotation>
2229
+ <xs:documentation>Payments terms for this invoice</xs:documentation>
2230
+ </xs:annotation>
2231
+ </xs:element>
2232
+ <xs:element name="SelfBillingIndicator" type="SAFcodeType" minOccurs="0">
2233
+ <xs:annotation>
2234
+ <xs:documentation>Indicator showing if self-billing is used for this invoice.</xs:documentation>
2235
+ </xs:annotation>
2236
+ </xs:element>
2237
+ <xs:element name="SourceID" type="SAFmiddle1textType" minOccurs="0">
2238
+ <xs:annotation>
2239
+ <xs:documentation>Details of person or application that entered the transaction</xs:documentation>
2240
+ </xs:annotation>
2241
+ </xs:element>
2242
+ <xs:element name="GLPostingDate" type="xs:date" minOccurs="0">
2243
+ <xs:annotation>
2244
+ <xs:documentation>Date posting to GL</xs:documentation>
2245
+ </xs:annotation>
2246
+ </xs:element>
2247
+ <xs:element name="BatchID" type="SAFmiddle1textType" minOccurs="0">
2248
+ <xs:annotation>
2249
+ <xs:documentation>Systems generated ID for batch</xs:documentation>
2250
+ </xs:annotation>
2251
+ </xs:element>
2252
+ <xs:element name="SystemID" type="SAFmiddle1textType" minOccurs="0">
2253
+ <xs:annotation>
2254
+ <xs:documentation>Unique number created by the system for the document</xs:documentation>
2255
+ </xs:annotation>
2256
+ </xs:element>
2257
+ <xs:element name="TransactionID" type="SAFmiddle2textType" minOccurs="0">
2258
+ <xs:annotation>
2259
+ <xs:documentation>Cross-reference to GL posting. It can contain many different levels to identify the transaction. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
2260
+ </xs:annotation>
2261
+ </xs:element>
2262
+ <xs:element name="ReceiptNumbers" type="SAFlongtextType" minOccurs="0">
2263
+ <xs:annotation>
2264
+ <xs:documentation>The number(s) of the receipt(s) on this "consolidated invoicerecord". Can be a single number, a range or a list. </xs:documentation>
2265
+ </xs:annotation>
2266
+ </xs:element>
2267
+ <xs:element name="Line" maxOccurs="unbounded">
2268
+ <xs:complexType>
2269
+ <xs:sequence>
2270
+ <xs:element name="LineNumber" type="SAFshorttextType" minOccurs="0">
2271
+ <xs:annotation>
2272
+ <xs:documentation>Number of the invoiceline</xs:documentation>
2273
+ </xs:annotation>
2274
+ </xs:element>
2275
+ <xs:element name="AccountID" type="SAFmiddle2textType" minOccurs="0">
2276
+ <xs:annotation>
2277
+ <xs:documentation>General Ledger Account code of the GL-revenue-account. Can be including sub-account id. It can contain many different levels to identify the Account. It could include cost centres such as company, division, region, group and branch/department.</xs:documentation>
2278
+ </xs:annotation>
2279
+ </xs:element>
2280
+ <xs:element name="Analysis" type="AnalysisStructure" minOccurs="0" maxOccurs="unbounded">
2281
+ <xs:annotation>
2282
+ <xs:documentation>General Ledger analysis codes</xs:documentation>
2283
+ </xs:annotation>
2284
+ </xs:element>
2285
+ <xs:element name="OrderReferences" minOccurs="0" maxOccurs="unbounded">
2286
+ <xs:annotation>
2287
+ <xs:documentation>Relevant order references</xs:documentation>
2288
+ </xs:annotation>
2289
+ <xs:complexType>
2290
+ <xs:sequence>
2291
+ <xs:element name="OriginatingON" type="SAFmiddle2textType" minOccurs="0">
2292
+ <xs:annotation>
2293
+ <xs:documentation>Origination Order Number </xs:documentation>
2294
+ </xs:annotation>
2295
+ </xs:element>
2296
+ <xs:element name="OrderDate" type="xs:date" minOccurs="0">
2297
+ <xs:annotation>
2298
+ <xs:documentation>Date of order</xs:documentation>
2299
+ </xs:annotation>
2300
+ </xs:element>
2301
+ </xs:sequence>
2302
+ </xs:complexType>
2303
+ </xs:element>
2304
+ <xs:element name="ShipTo" type="ShippingPointStructure" minOccurs="0">
2305
+ <xs:annotation>
2306
+ <xs:documentation>Ship To details</xs:documentation>
2307
+ </xs:annotation>
2308
+ </xs:element>
2309
+ <xs:element name="ShipFrom" type="ShippingPointStructure" minOccurs="0">
2310
+ <xs:annotation>
2311
+ <xs:documentation>Ship from Details</xs:documentation>
2312
+ </xs:annotation>
2313
+ </xs:element>
2314
+ <xs:element name="GoodsServicesID" type="SAFcodeType" minOccurs="0">
2315
+ <xs:annotation>
2316
+ <xs:documentation>Indicator showing if goods or service</xs:documentation>
2317
+ </xs:annotation>
2318
+ </xs:element>
2319
+ <xs:element name="ProductCode" type="SAFmiddle2textType" minOccurs="0">
2320
+ <xs:annotation>
2321
+ <xs:documentation>Product code</xs:documentation>
2322
+ </xs:annotation>
2323
+ </xs:element>
2324
+ <xs:element name="ProductDescription" type="SAFlongtextType" minOccurs="0">
2325
+ <xs:annotation>
2326
+ <xs:documentation>Description of goods or services.</xs:documentation>
2327
+ </xs:annotation>
2328
+ </xs:element>
2329
+ <xs:element name="Delivery" minOccurs="0">
2330
+ <xs:annotation>
2331
+ <xs:documentation>Information about the date or timeframe of the delivery of the goods or services.</xs:documentation>
2332
+ </xs:annotation>
2333
+ <xs:complexType>
2334
+ <xs:choice>
2335
+ <xs:element name="MovementReference" type="SAFmiddle1textType" maxOccurs="unbounded">
2336
+ <xs:annotation>
2337
+ <xs:documentation>Unique reference to the movement.</xs:documentation>
2338
+ </xs:annotation>
2339
+ </xs:element>
2340
+ <xs:element name="DeliveryDate" type="xs:date">
2341
+ <xs:annotation>
2342
+ <xs:documentation>The date of the delivery</xs:documentation>
2343
+ </xs:annotation>
2344
+ </xs:element>
2345
+ <xs:element name="DeliveryPeriod">
2346
+ <xs:annotation>
2347
+ <xs:documentation>Timeframe of the deliveries</xs:documentation>
2348
+ </xs:annotation>
2349
+ <xs:complexType>
2350
+ <xs:sequence>
2351
+ <xs:element name="FromDate" type="xs:date">
2352
+ <xs:annotation>
2353
+ <xs:documentation>Startdate of the deliveries</xs:documentation>
2354
+ </xs:annotation>
2355
+ </xs:element>
2356
+ <xs:element name="ToDate" type="xs:date">
2357
+ <xs:annotation>
2358
+ <xs:documentation>Enddate of the deliveries</xs:documentation>
2359
+ </xs:annotation>
2360
+ </xs:element>
2361
+ </xs:sequence>
2362
+ </xs:complexType>
2363
+ </xs:element>
2364
+ </xs:choice>
2365
+ </xs:complexType>
2366
+ </xs:element>
2367
+ <xs:element name="Quantity" type="SAFquantityType" minOccurs="0">
2368
+ <xs:annotation>
2369
+ <xs:documentation>Quantity of goods and services supplied.</xs:documentation>
2370
+ </xs:annotation>
2371
+ </xs:element>
2372
+ <xs:element name="InvoiceUOM" type="SAFcodeType" minOccurs="0">
2373
+ <xs:annotation>
2374
+ <xs:documentation>Quantity unit of measure e.g. pack of 12</xs:documentation>
2375
+ </xs:annotation>
2376
+ </xs:element>
2377
+ <xs:element name="UOMToUOMBaseConversionFactor" type="xs:decimal" minOccurs="0">
2378
+ <xs:annotation>
2379
+ <xs:documentation>Conversion factor of the InvoiceUOM to UOM Base. Only needed when InvoiceUOM is reported and is different from the UOM Base.</xs:documentation>
2380
+ </xs:annotation>
2381
+ </xs:element>
2382
+ <xs:element name="UnitPrice" type="SAFmonetaryType">
2383
+ <xs:annotation>
2384
+ <xs:documentation>Unit price for the unit/group of units per UOM in the header's default currency.</xs:documentation>
2385
+ </xs:annotation>
2386
+ </xs:element>
2387
+ <xs:element name="TaxPointDate" type="xs:date">
2388
+ <xs:annotation>
2389
+ <xs:documentation>Tax Point date where recorded or if not recorded then the Invoice date </xs:documentation>
2390
+ </xs:annotation>
2391
+ </xs:element>
2392
+ <xs:element name="References" minOccurs="0">
2393
+ <xs:annotation>
2394
+ <xs:documentation>Credit Note references</xs:documentation>
2395
+ </xs:annotation>
2396
+ <xs:complexType>
2397
+ <xs:sequence>
2398
+ <xs:element name="CreditNote" minOccurs="0">
2399
+ <xs:complexType>
2400
+ <xs:sequence>
2401
+ <xs:element name="Reference" type="SAFmiddle1textType" minOccurs="0">
2402
+ <xs:annotation>
2403
+ <xs:documentation>Credit note reference (where applicable) to original invoice </xs:documentation>
2404
+ </xs:annotation>
2405
+ </xs:element>
2406
+ <xs:element name="Reason" type="SAFlongtextType" minOccurs="0">
2407
+ <xs:annotation>
2408
+ <xs:documentation>Credit note reason or rationale </xs:documentation>
2409
+ </xs:annotation>
2410
+ </xs:element>
2411
+ </xs:sequence>
2412
+ </xs:complexType>
2413
+ </xs:element>
2414
+ </xs:sequence>
2415
+ </xs:complexType>
2416
+ </xs:element>
2417
+ <xs:element name="Description" type="SAFlongtextType">
2418
+ <xs:annotation>
2419
+ <xs:documentation>Description of Invoice Line.</xs:documentation>
2420
+ </xs:annotation>
2421
+ </xs:element>
2422
+ <xs:element name="InvoiceLineAmount" type="AmountStructure">
2423
+ <xs:annotation>
2424
+ <xs:documentation>Amount for transaction excluding taxes and freightcharges.</xs:documentation>
2425
+ </xs:annotation>
2426
+ </xs:element>
2427
+ <xs:element name="DebitCreditIndicator">
2428
+ <xs:annotation>
2429
+ <xs:documentation>Indicates whether the amounts on line-level are debit or credit amounts. Entry must correspond to entry reflected in General Ledger Entry. Signing of lineamounts is relative to this indicator. E.g. a return can lead to a negative amount.</xs:documentation>
2430
+ </xs:annotation>
2431
+ <xs:simpleType>
2432
+ <xs:restriction base="SAFcodeType">
2433
+ <xs:enumeration value="D"/>
2434
+ <xs:enumeration value="C"/>
2435
+ </xs:restriction>
2436
+ </xs:simpleType>
2437
+ </xs:element>
2438
+ <xs:element name="ShippingCostsAmount" type="AmountStructure" minOccurs="0">
2439
+ <xs:annotation>
2440
+ <xs:documentation>Amount for shipping/freight charges. </xs:documentation>
2441
+ </xs:annotation>
2442
+ </xs:element>
2443
+ <xs:element name="TaxInformation" type="TaxInformationStructure" minOccurs="0" maxOccurs="unbounded"/>
2444
+ </xs:sequence>
2445
+ </xs:complexType>
2446
+ </xs:element>
2447
+ <xs:element name="Settlement" minOccurs="0">
2448
+ <xs:complexType>
2449
+ <xs:sequence>
2450
+ <xs:element name="SettlementDiscount" type="SAFmiddle1textType" minOccurs="0">
2451
+ <xs:annotation>
2452
+ <xs:documentation>Description Settlement / Other Discount </xs:documentation>
2453
+ </xs:annotation>
2454
+ </xs:element>
2455
+ <xs:element name="SettlementAmount" type="AmountStructure">
2456
+ <xs:annotation>
2457
+ <xs:documentation>Settlement amount</xs:documentation>
2458
+ </xs:annotation>
2459
+ </xs:element>
2460
+ <xs:element name="SettlementDate" type="xs:date" minOccurs="0">
2461
+ <xs:annotation>
2462
+ <xs:documentation>Date settled</xs:documentation>
2463
+ </xs:annotation>
2464
+ </xs:element>
2465
+ <xs:element name="PaymentMechanism" type="SAFcodeType" minOccurs="0">
2466
+ <xs:annotation>
2467
+ <xs:documentation>Payment mechanism </xs:documentation>
2468
+ </xs:annotation>
2469
+ </xs:element>
2470
+ </xs:sequence>
2471
+ </xs:complexType>
2472
+ </xs:element>
2473
+ <xs:element name="DocumentTotals" minOccurs="0">
2474
+ <xs:complexType>
2475
+ <xs:sequence>
2476
+ <xs:element name="TaxInformationTotals" type="TaxInformationStructure" minOccurs="0" maxOccurs="unbounded">
2477
+ <xs:annotation>
2478
+ <xs:documentation>Control totals tax payable information. Per TaxType/TaxCode the TaxBase and TaxAmount are summarised.</xs:documentation>
2479
+ </xs:annotation>
2480
+ </xs:element>
2481
+ <xs:element name="ShippingCostsAmountTotal" type="SAFmonetaryType" minOccurs="0">
2482
+ <xs:annotation>
2483
+ <xs:documentation>Control total amount freight charges</xs:documentation>
2484
+ </xs:annotation>
2485
+ </xs:element>
2486
+ <xs:element name="NetTotal" type="SAFmonetaryType">
2487
+ <xs:annotation>
2488
+ <xs:documentation>Control total sales value excluding tax and shippingcosts.</xs:documentation>
2489
+ </xs:annotation>
2490
+ </xs:element>
2491
+ <xs:element name="GrossTotal" type="SAFmonetaryType">
2492
+ <xs:annotation>
2493
+ <xs:documentation>Control total amount including tax and shippingcosts.</xs:documentation>
2494
+ </xs:annotation>
2495
+ </xs:element>
2496
+ </xs:sequence>
2497
+ </xs:complexType>
2498
+ </xs:element>
2499
+ </xs:sequence>
2500
+ </xs:complexType>
2501
+ <xs:complexType name="ShippingPointStructure">
2502
+ <xs:annotation>
2503
+ <xs:documentation>A structure that holds all shipping point information.</xs:documentation>
2504
+ </xs:annotation>
2505
+ <xs:sequence>
2506
+ <xs:element name="DeliveryID" type="SAFmiddle1textType" minOccurs="0">
2507
+ <xs:annotation>
2508
+ <xs:documentation>Identification of the delivery</xs:documentation>
2509
+ </xs:annotation>
2510
+ </xs:element>
2511
+ <xs:element name="DeliveryDate" type="xs:date" minOccurs="0">
2512
+ <xs:annotation>
2513
+ <xs:documentation>Date goods are delivered</xs:documentation>
2514
+ </xs:annotation>
2515
+ </xs:element>
2516
+ <xs:element name="WarehouseID" type="SAFmiddle1textType" minOccurs="0">
2517
+ <xs:annotation>
2518
+ <xs:documentation>Warehouse where goods held - also to identify work-in-progress, or stock-in-transit</xs:documentation>
2519
+ </xs:annotation>
2520
+ </xs:element>
2521
+ <xs:element name="LocationID" type="SAFshorttextType" minOccurs="0">
2522
+ <xs:annotation>
2523
+ <xs:documentation>Location of goods in warehouse</xs:documentation>
2524
+ </xs:annotation>
2525
+ </xs:element>
2526
+ <xs:element name="UCR" type="SAFmiddle1textType" minOccurs="0">
2527
+ <xs:annotation>
2528
+ <xs:documentation>Unique consignment reference number</xs:documentation>
2529
+ </xs:annotation>
2530
+ </xs:element>
2531
+ <xs:element name="Address" type="AddressStructure" minOccurs="0"/>
2532
+ </xs:sequence>
2533
+ </xs:complexType>
2534
+ <xs:complexType name="AddressStructure">
2535
+ <xs:annotation>
2536
+ <xs:documentation>A common structure used wherever an address is required.</xs:documentation>
2537
+ </xs:annotation>
2538
+ <xs:sequence>
2539
+ <xs:element name="StreetName" type="SAFmiddle2textType" minOccurs="0">
2540
+ <xs:annotation>
2541
+ <xs:documentation>Address line 1. Normally street name or post box. Can also include house number.</xs:documentation>
2542
+ </xs:annotation>
2543
+ </xs:element>
2544
+ <xs:element name="Number" type="SAFshorttextType" minOccurs="0">
2545
+ <xs:annotation>
2546
+ <xs:documentation>Address line 1. House number if available.</xs:documentation>
2547
+ </xs:annotation>
2548
+ </xs:element>
2549
+ <xs:element name="AdditionalAddressDetail" type="SAFmiddle2textType" minOccurs="0">
2550
+ <xs:annotation>
2551
+ <xs:documentation>Address line 2.</xs:documentation>
2552
+ </xs:annotation>
2553
+ </xs:element>
2554
+ <xs:element name="Building" type="SAFmiddle1textType" minOccurs="0">
2555
+ <xs:annotation>
2556
+ <xs:documentation>Not in use</xs:documentation>
2557
+ </xs:annotation>
2558
+ </xs:element>
2559
+ <xs:element name="City" type="SAFmiddle1textType" minOccurs="0">
2560
+ <xs:annotation>
2561
+ <xs:documentation>Name of the city/post district.</xs:documentation>
2562
+ </xs:annotation>
2563
+ </xs:element>
2564
+ <xs:element name="PostalCode" type="SAFshorttextType" minOccurs="0">
2565
+ <xs:annotation>
2566
+ <xs:documentation>Postal code for the relevant city/post district.</xs:documentation>
2567
+ </xs:annotation>
2568
+ </xs:element>
2569
+ <xs:element name="Region" type="SAFmiddle1textType" minOccurs="0">
2570
+ <xs:annotation>
2571
+ <xs:documentation>Country specific code to indicate regions / provinces within the tax authority. </xs:documentation>
2572
+ </xs:annotation>
2573
+ </xs:element>
2574
+ <xs:element name="Country" type="ISOCountryCode" minOccurs="0">
2575
+ <xs:annotation>
2576
+ <xs:documentation>Two-letter country code according to ISO 3166-1 alpha 2 standard.</xs:documentation>
2577
+ </xs:annotation>
2578
+ </xs:element>
2579
+ <xs:element name="AddressType" minOccurs="0">
2580
+ <xs:annotation>
2581
+ <xs:documentation>Field to differentiate between multiple addresses and to indicate the type of address.
2582
+ Choose from the predefined enumerations:
2583
+ StreetAddress, PostalAddress, BillingAddress, ShipToAddress, ShipFromAddress.</xs:documentation>
2584
+ </xs:annotation>
2585
+ <xs:simpleType>
2586
+ <xs:restriction base="xs:string">
2587
+ <xs:enumeration value="StreetAddress"/>
2588
+ <xs:enumeration value="PostalAddress"/>
2589
+ <xs:enumeration value="BillingAddress"/>
2590
+ <xs:enumeration value="ShipToAddress"/>
2591
+ <xs:enumeration value="ShipFromAddress"/>
2592
+ </xs:restriction>
2593
+ </xs:simpleType>
2594
+ </xs:element>
2595
+ </xs:sequence>
2596
+ </xs:complexType>
2597
+ <xs:complexType name="AmountStructure">
2598
+ <xs:annotation>
2599
+ <xs:documentation>A common structure used wherever an amount is required. Monetary amount with optional foreign currency exchange rate information.</xs:documentation>
2600
+ </xs:annotation>
2601
+ <xs:sequence>
2602
+ <xs:element name="Amount" type="SAFmonetaryType">
2603
+ <xs:annotation>
2604
+ <xs:documentation>Amount in the header’s default currency.</xs:documentation>
2605
+ </xs:annotation>
2606
+ </xs:element>
2607
+ <xs:sequence minOccurs="0">
2608
+ <xs:element name="CurrencyCode" type="ISOCurrencyCode">
2609
+ <xs:annotation>
2610
+ <xs:documentation>Three-letter currency code according to ISO 4217 standard.
2611
+ Required if CurrencyAmount is used.</xs:documentation>
2612
+ </xs:annotation>
2613
+ </xs:element>
2614
+ <xs:element name="CurrencyAmount" type="SAFmonetaryType">
2615
+ <xs:annotation>
2616
+ <xs:documentation>Amount in foreign currency.
2617
+ Required if CurrencyCode is used.</xs:documentation>
2618
+ </xs:annotation>
2619
+ </xs:element>
2620
+ <xs:element name="ExchangeRate" type="SAFexchangerateType" minOccurs="0">
2621
+ <xs:annotation>
2622
+ <xs:documentation>The exchange rate used.
2623
+ CurrencyAmount x ExchangeRate = Amount </xs:documentation>
2624
+ </xs:annotation>
2625
+ </xs:element>
2626
+ </xs:sequence>
2627
+ </xs:sequence>
2628
+ </xs:complexType>
2629
+ <xs:complexType name="AnalysisStructure">
2630
+ <xs:annotation>
2631
+ <xs:documentation>General Ledger analysis codes.</xs:documentation>
2632
+ </xs:annotation>
2633
+ <xs:sequence>
2634
+ <xs:element name="AnalysisType" type="SAFcodeType">
2635
+ <xs:annotation>
2636
+ <xs:documentation>Analysis type identifier/code for the dimension type (e.g. departments, projects, journal types, cost centers, etc.)</xs:documentation>
2637
+ </xs:annotation>
2638
+ </xs:element>
2639
+ <xs:element name="AnalysisID" type="SAFlongtextType">
2640
+ <xs:annotation>
2641
+ <xs:documentation>Analysis ID of the specific dimension.</xs:documentation>
2642
+ </xs:annotation>
2643
+ </xs:element>
2644
+ <xs:element name="AnalysisAmount" type="AmountStructure" minOccurs="0">
2645
+ <xs:annotation>
2646
+ <xs:documentation>Amount applying to the Analysis: f.i. the amount applying for this dimension.</xs:documentation>
2647
+ </xs:annotation>
2648
+ </xs:element>
2649
+ </xs:sequence>
2650
+ </xs:complexType>
2651
+ <xs:complexType name="AnalysisPartyInfoStructure">
2652
+ <xs:annotation>
2653
+ <xs:documentation>Analysis structure (restricted) for use in PartyInfoStructure.</xs:documentation>
2654
+ </xs:annotation>
2655
+ <xs:complexContent>
2656
+ <xs:restriction base="AnalysisStructure">
2657
+ <xs:sequence>
2658
+ <xs:element name="AnalysisType" type="SAFcodeType">
2659
+ <xs:annotation>
2660
+ <xs:documentation>Analysis type identifier/code for the dimension type (e.g. departments, projects, journal types, cost centers, etc.)</xs:documentation>
2661
+ </xs:annotation>
2662
+ </xs:element>
2663
+ <xs:element name="AnalysisID" type="SAFlongtextType">
2664
+ <xs:annotation>
2665
+ <xs:documentation>Analysis ID of the specific dimension.</xs:documentation>
2666
+ </xs:annotation>
2667
+ </xs:element>
2668
+ </xs:sequence>
2669
+ </xs:restriction>
2670
+ </xs:complexContent>
2671
+ </xs:complexType>
2672
+ <xs:complexType name="BankAccountStructure">
2673
+ <xs:annotation>
2674
+ <xs:documentation>Bank account number information. IBAN number, or account number with optional information.</xs:documentation>
2675
+ </xs:annotation>
2676
+ <xs:sequence>
2677
+ <xs:choice>
2678
+ <xs:element name="IBANNumber" type="SAFmiddle1textType">
2679
+ <xs:annotation>
2680
+ <xs:documentation>International Bank Account Number, ISO 13616</xs:documentation>
2681
+ </xs:annotation>
2682
+ </xs:element>
2683
+ <xs:sequence>
2684
+ <xs:element name="BankAccountNumber" type="SAFmiddle1textType">
2685
+ <xs:annotation>
2686
+ <xs:documentation>The number allocated to the account by the individual’s or company’s own bank.</xs:documentation>
2687
+ </xs:annotation>
2688
+ </xs:element>
2689
+ <xs:element name="BankAccountName" type="SAFmiddle2textType" minOccurs="0">
2690
+ <xs:annotation>
2691
+ <xs:documentation>The name of the individual or company holding the bank account.</xs:documentation>
2692
+ </xs:annotation>
2693
+ </xs:element>
2694
+ <xs:element name="SortCode" type="SAFshorttextType" minOccurs="0">
2695
+ <xs:annotation>
2696
+ <xs:documentation>Identifier for the bank branch at which the account is held. May be needed to uniquely identify the account. Also known as ABA Number or National Bank Code</xs:documentation>
2697
+ </xs:annotation>
2698
+ </xs:element>
2699
+ </xs:sequence>
2700
+ </xs:choice>
2701
+ <xs:element name="BIC" type="SAFshorttextType" minOccurs="0">
2702
+ <xs:annotation>
2703
+ <xs:documentation>Bank Identifier Code.</xs:documentation>
2704
+ </xs:annotation>
2705
+ </xs:element>
2706
+ <xs:element name="CurrencyCode" type="ISOCurrencyCode" minOccurs="0">
2707
+ <xs:annotation>
2708
+ <xs:documentation>Currency Code for the Bank Account from ISO 4217.</xs:documentation>
2709
+ </xs:annotation>
2710
+ </xs:element>
2711
+ <xs:element name="GeneralLedgerAccountID" type="SAFmiddle2textType" minOccurs="0">
2712
+ <xs:annotation>
2713
+ <xs:documentation>Link to a General Ledger account.</xs:documentation>
2714
+ </xs:annotation>
2715
+ </xs:element>
2716
+ </xs:sequence>
2717
+ </xs:complexType>
2718
+ <xs:complexType name="CompanyHeaderStructure">
2719
+ <xs:annotation>
2720
+ <xs:documentation>CompanyStructure with mandatory RegistrationNumber and Telephone (Contact).</xs:documentation>
2721
+ </xs:annotation>
2722
+ <xs:complexContent>
2723
+ <xs:restriction base="CompanyStructure">
2724
+ <xs:sequence>
2725
+ <xs:element name="RegistrationNumber" type="SAFmiddle1textType">
2726
+ <xs:annotation>
2727
+ <xs:documentation>Organization number from The Brønnøysund Register Centre (Brønnøysundregistrene) or other relevant government authority. In case of private persons, the social security number can be used.</xs:documentation>
2728
+ </xs:annotation>
2729
+ </xs:element>
2730
+ <xs:element name="Name" type="SAFmiddle2textType">
2731
+ <xs:annotation>
2732
+ <xs:documentation>The name of the company.</xs:documentation>
2733
+ </xs:annotation>
2734
+ </xs:element>
2735
+ <xs:element name="Address" type="AddressStructure" maxOccurs="unbounded">
2736
+ <xs:annotation>
2737
+ <xs:documentation>Addresses of the company.</xs:documentation>
2738
+ </xs:annotation>
2739
+ </xs:element>
2740
+ <xs:element name="Contact" type="ContactInformationStructure" maxOccurs="unbounded">
2741
+ <xs:annotation>
2742
+ <xs:documentation>Contacts of the company.</xs:documentation>
2743
+ </xs:annotation>
2744
+ </xs:element>
2745
+ <xs:element name="TaxRegistration" type="TaxIDStructure" minOccurs="0" maxOccurs="unbounded">
2746
+ <xs:annotation>
2747
+ <xs:documentation>Tax registration of the company.</xs:documentation>
2748
+ </xs:annotation>
2749
+ </xs:element>
2750
+ <xs:element name="BankAccount" type="BankAccountStructure" minOccurs="0" maxOccurs="unbounded">
2751
+ <xs:annotation>
2752
+ <xs:documentation>Bank accounts of the company.</xs:documentation>
2753
+ </xs:annotation>
2754
+ </xs:element>
2755
+ </xs:sequence>
2756
+ </xs:restriction>
2757
+ </xs:complexContent>
2758
+ </xs:complexType>
2759
+ <xs:complexType name="CompanyStructure">
2760
+ <xs:annotation>
2761
+ <xs:documentation>Name, address, contact and identification information of a company.</xs:documentation>
2762
+ </xs:annotation>
2763
+ <xs:sequence>
2764
+ <xs:element name="RegistrationNumber" type="SAFmiddle1textType" minOccurs="0">
2765
+ <xs:annotation>
2766
+ <xs:documentation>Organization number from The Brønnøysund Register Centre (Brønnøysundregistrene) or other relevant government authority. In case of private persons, the social security number can be used.</xs:documentation>
2767
+ </xs:annotation>
2768
+ </xs:element>
2769
+ <xs:element name="Name" type="SAFmiddle2textType">
2770
+ <xs:annotation>
2771
+ <xs:documentation>The name of the company.</xs:documentation>
2772
+ </xs:annotation>
2773
+ </xs:element>
2774
+ <xs:element name="Address" type="AddressStructure" maxOccurs="unbounded">
2775
+ <xs:annotation>
2776
+ <xs:documentation>Addresses of the company.</xs:documentation>
2777
+ </xs:annotation>
2778
+ </xs:element>
2779
+ <xs:element name="Contact" type="ContactInformationStructure" minOccurs="0" maxOccurs="unbounded">
2780
+ <xs:annotation>
2781
+ <xs:documentation>Contacts of the company.</xs:documentation>
2782
+ </xs:annotation>
2783
+ </xs:element>
2784
+ <xs:element name="TaxRegistration" type="TaxIDStructure" minOccurs="0" maxOccurs="unbounded">
2785
+ <xs:annotation>
2786
+ <xs:documentation>Tax registration of the company.</xs:documentation>
2787
+ </xs:annotation>
2788
+ </xs:element>
2789
+ <xs:element name="BankAccount" type="BankAccountStructure" minOccurs="0" maxOccurs="unbounded">
2790
+ <xs:annotation>
2791
+ <xs:documentation>Bank accounts of the company.</xs:documentation>
2792
+ </xs:annotation>
2793
+ </xs:element>
2794
+ </xs:sequence>
2795
+ </xs:complexType>
2796
+ <xs:complexType name="ContactHeaderStructure">
2797
+ <xs:annotation>
2798
+ <xs:documentation>ContactInformationStructure with madatory TelephoneNumber.</xs:documentation>
2799
+ </xs:annotation>
2800
+ <xs:complexContent>
2801
+ <xs:restriction base="ContactInformationStructure">
2802
+ <xs:sequence>
2803
+ <xs:element name="ContactPerson" type="PersonNameStructure">
2804
+ <xs:annotation>
2805
+ <xs:documentation>The name of the contact person.</xs:documentation>
2806
+ </xs:annotation>
2807
+ </xs:element>
2808
+ <xs:element name="Telephone" type="SAFshorttextType">
2809
+ <xs:annotation>
2810
+ <xs:documentation>Telephone number.</xs:documentation>
2811
+ </xs:annotation>
2812
+ </xs:element>
2813
+ <xs:element name="Fax" type="SAFshorttextType" minOccurs="0">
2814
+ <xs:annotation>
2815
+ <xs:documentation>Fax number.</xs:documentation>
2816
+ </xs:annotation>
2817
+ </xs:element>
2818
+ <xs:element name="Email" type="SAFmiddle2textType" minOccurs="0">
2819
+ <xs:annotation>
2820
+ <xs:documentation>E-mail address.</xs:documentation>
2821
+ </xs:annotation>
2822
+ </xs:element>
2823
+ <xs:element name="Website" type="xs:anyURI" minOccurs="0">
2824
+ <xs:annotation>
2825
+ <xs:documentation>Website address.</xs:documentation>
2826
+ </xs:annotation>
2827
+ </xs:element>
2828
+ <xs:element name="MobilePhone" type="SAFshorttextType" minOccurs="0">
2829
+ <xs:annotation>
2830
+ <xs:documentation>The mobile phone number (for SMS messages).</xs:documentation>
2831
+ </xs:annotation>
2832
+ </xs:element>
2833
+ </xs:sequence>
2834
+ </xs:restriction>
2835
+ </xs:complexContent>
2836
+ </xs:complexType>
2837
+ <xs:complexType name="ContactInformationStructure">
2838
+ <xs:annotation>
2839
+ <xs:documentation>Contact information of a company.</xs:documentation>
2840
+ </xs:annotation>
2841
+ <xs:sequence>
2842
+ <xs:element name="ContactPerson" type="PersonNameStructure">
2843
+ <xs:annotation>
2844
+ <xs:documentation>The name of the contact person.</xs:documentation>
2845
+ </xs:annotation>
2846
+ </xs:element>
2847
+ <xs:element name="Telephone" type="SAFshorttextType" minOccurs="0">
2848
+ <xs:annotation>
2849
+ <xs:documentation>Telephone number.</xs:documentation>
2850
+ </xs:annotation>
2851
+ </xs:element>
2852
+ <xs:element name="Fax" type="SAFshorttextType" minOccurs="0">
2853
+ <xs:annotation>
2854
+ <xs:documentation>Fax number.</xs:documentation>
2855
+ </xs:annotation>
2856
+ </xs:element>
2857
+ <xs:element name="Email" type="SAFmiddle2textType" minOccurs="0">
2858
+ <xs:annotation>
2859
+ <xs:documentation>E-mail address.</xs:documentation>
2860
+ </xs:annotation>
2861
+ </xs:element>
2862
+ <xs:element name="Website" type="xs:anyURI" minOccurs="0">
2863
+ <xs:annotation>
2864
+ <xs:documentation>Website address.</xs:documentation>
2865
+ </xs:annotation>
2866
+ </xs:element>
2867
+ <xs:element name="MobilePhone" type="SAFshorttextType" minOccurs="0">
2868
+ <xs:annotation>
2869
+ <xs:documentation>The mobile phone number (for SMS messages).</xs:documentation>
2870
+ </xs:annotation>
2871
+ </xs:element>
2872
+ </xs:sequence>
2873
+ </xs:complexType>
2874
+ <xs:complexType name="HeaderStructure">
2875
+ <xs:annotation>
2876
+ <xs:documentation>Overall information about this Standard Auditfile.</xs:documentation>
2877
+ </xs:annotation>
2878
+ <xs:sequence>
2879
+ <xs:element name="AuditFileVersion" type="SAFcodeType">
2880
+ <xs:annotation>
2881
+ <xs:documentation>Version of standard audit file being used. The version number to be used is displayed in an XML annotation in top of the XSD schema file.</xs:documentation>
2882
+ </xs:annotation>
2883
+ </xs:element>
2884
+ <xs:element name="AuditFileCountry" type="ISOCountryCode">
2885
+ <xs:annotation>
2886
+ <xs:documentation>Two-letter country code according to ISO 3166-1 alpha 2 standard.</xs:documentation>
2887
+ </xs:annotation>
2888
+ </xs:element>
2889
+ <xs:element name="AuditFileRegion" type="SAFcodeType" minOccurs="0">
2890
+ <xs:annotation>
2891
+ <xs:documentation>Not in use.</xs:documentation>
2892
+ </xs:annotation>
2893
+ </xs:element>
2894
+ <xs:element name="AuditFileDateCreated" type="xs:date">
2895
+ <xs:annotation>
2896
+ <xs:documentation>Date of production of the audit file.</xs:documentation>
2897
+ </xs:annotation>
2898
+ </xs:element>
2899
+ <xs:element name="SoftwareCompanyName" type="SAFmiddle2textType">
2900
+ <xs:annotation>
2901
+ <xs:documentation>Name of the software company whose product created the audit file.</xs:documentation>
2902
+ </xs:annotation>
2903
+ </xs:element>
2904
+ <xs:element name="SoftwareID" type="SAFlongtextType">
2905
+ <xs:annotation>
2906
+ <xs:documentation>Name of the software that generated the audit file.</xs:documentation>
2907
+ </xs:annotation>
2908
+ </xs:element>
2909
+ <xs:element name="SoftwareVersion" type="SAFshorttextType">
2910
+ <xs:annotation>
2911
+ <xs:documentation>Version of the software that generated the audit file.</xs:documentation>
2912
+ </xs:annotation>
2913
+ </xs:element>
2914
+ <xs:element name="Company" type="CompanyHeaderStructure">
2915
+ <xs:annotation>
2916
+ <xs:documentation>Company's name and address details.</xs:documentation>
2917
+ </xs:annotation>
2918
+ </xs:element>
2919
+ <xs:element name="DefaultCurrencyCode" type="ISOCurrencyCode">
2920
+ <xs:annotation>
2921
+ <xs:documentation>Three letter Currency Code (ISO 4217) of local currency which is the default for the audit file.</xs:documentation>
2922
+ </xs:annotation>
2923
+ </xs:element>
2924
+ <xs:element name="SelectionCriteria" type="SelectionCriteriaStructure" minOccurs="0">
2925
+ <xs:annotation>
2926
+ <xs:documentation>Criteria set by the user to populate the audit files</xs:documentation>
2927
+ </xs:annotation>
2928
+ </xs:element>
2929
+ <xs:element name="HeaderComment" type="SAFlongtextType" minOccurs="0">
2930
+ <xs:annotation>
2931
+ <xs:documentation>Space for any further generic comments on the audit file.</xs:documentation>
2932
+ </xs:annotation>
2933
+ </xs:element>
2934
+ </xs:sequence>
2935
+ </xs:complexType>
2936
+ <xs:complexType name="PartyInfoStructure">
2937
+ <xs:annotation>
2938
+ <xs:documentation>Additional party information.</xs:documentation>
2939
+ </xs:annotation>
2940
+ <xs:sequence>
2941
+ <xs:element name="PaymentTerms" minOccurs="0">
2942
+ <xs:annotation>
2943
+ <xs:documentation>Payment terms of the party.</xs:documentation>
2944
+ </xs:annotation>
2945
+ <xs:complexType>
2946
+ <xs:sequence>
2947
+ <xs:element name="Days" type="xs:nonNegativeInteger" minOccurs="0">
2948
+ <xs:annotation>
2949
+ <xs:documentation>Days of respite before due date from invoice date.</xs:documentation>
2950
+ </xs:annotation>
2951
+ </xs:element>
2952
+ <xs:element name="Months" type="xs:nonNegativeInteger" minOccurs="0">
2953
+ <xs:annotation>
2954
+ <xs:documentation>Months of respite before due date from invoice date.</xs:documentation>
2955
+ </xs:annotation>
2956
+ </xs:element>
2957
+ <xs:element name="CashDiscountDays" type="xs:nonNegativeInteger" minOccurs="0">
2958
+ <xs:annotation>
2959
+ <xs:documentation>Number of days from the invoice date the cash discount can be deducted.</xs:documentation>
2960
+ </xs:annotation>
2961
+ </xs:element>
2962
+ <xs:element name="CashDiscountRate" minOccurs="0">
2963
+ <xs:annotation>
2964
+ <xs:documentation>Rate for calculating cash discount.</xs:documentation>
2965
+ </xs:annotation>
2966
+ <xs:simpleType>
2967
+ <xs:restriction base="xs:decimal">
2968
+ <xs:minInclusive value="0.00"/>
2969
+ <xs:maxInclusive value="100.00"/>
2970
+ </xs:restriction>
2971
+ </xs:simpleType>
2972
+ </xs:element>
2973
+ <xs:element name="FreeBillingMonth" type="xs:boolean" minOccurs="0">
2974
+ <xs:annotation>
2975
+ <xs:documentation>Indicator that states whether free billing month is used or not. Free billing month sets the deadline to the last date of the invoice month.</xs:documentation>
2976
+ </xs:annotation>
2977
+ </xs:element>
2978
+ </xs:sequence>
2979
+ </xs:complexType>
2980
+ </xs:element>
2981
+ <xs:element name="NaceCode" type="SAFshorttextType" minOccurs="0">
2982
+ <xs:annotation>
2983
+ <xs:documentation>NACE (Nomenclature of Economic Activities) is the European statistical classification of economic activities.</xs:documentation>
2984
+ </xs:annotation>
2985
+ </xs:element>
2986
+ <xs:element name="CurrencyCode" type="ISOCurrencyCode" minOccurs="0">
2987
+ <xs:annotation>
2988
+ <xs:documentation>Three-letter currency code according to ISO 4217 standard. </xs:documentation>
2989
+ </xs:annotation>
2990
+ </xs:element>
2991
+ <xs:element name="Type" minOccurs="0">
2992
+ <xs:annotation>
2993
+ <xs:documentation>Type of party.
2994
+ Enumerated: Private, Company, Government</xs:documentation>
2995
+ </xs:annotation>
2996
+ <xs:simpleType>
2997
+ <xs:restriction base="SAFmiddle1textType">
2998
+ <xs:enumeration value="Private"/>
2999
+ <xs:enumeration value="Company"/>
3000
+ <xs:enumeration value="Government"/>
3001
+ </xs:restriction>
3002
+ </xs:simpleType>
3003
+ </xs:element>
3004
+ <xs:element name="Status" minOccurs="0">
3005
+ <xs:annotation>
3006
+ <xs:documentation>Type of account.
3007
+ Enumerated: Active, Observation, Passive.</xs:documentation>
3008
+ </xs:annotation>
3009
+ <xs:simpleType>
3010
+ <xs:restriction base="SAFmiddle1textType">
3011
+ <xs:enumeration value="Active"/>
3012
+ <xs:enumeration value="Observation"/>
3013
+ <xs:enumeration value="Passive"/>
3014
+ </xs:restriction>
3015
+ </xs:simpleType>
3016
+ </xs:element>
3017
+ <xs:element name="Analysis" type="AnalysisPartyInfoStructure" minOccurs="0" maxOccurs="unbounded">
3018
+ <xs:annotation>
3019
+ <xs:documentation>Standard analysis codes for the party, such as project, department, cost center, groups, etc.</xs:documentation>
3020
+ </xs:annotation>
3021
+ </xs:element>
3022
+ <xs:element name="Notes" type="xs:string" minOccurs="0">
3023
+ <xs:annotation>
3024
+ <xs:documentation>Notes.</xs:documentation>
3025
+ </xs:annotation>
3026
+ </xs:element>
3027
+ </xs:sequence>
3028
+ </xs:complexType>
3029
+ <xs:complexType name="PersonNameStructure">
3030
+ <xs:annotation>
3031
+ <xs:documentation>All information about the name of a natural person.</xs:documentation>
3032
+ </xs:annotation>
3033
+ <xs:sequence>
3034
+ <xs:element name="Title" type="SAFcodeType" minOccurs="0">
3035
+ <xs:annotation>
3036
+ <xs:documentation>Not in use.</xs:documentation>
3037
+ </xs:annotation>
3038
+ </xs:element>
3039
+ <xs:element name="FirstName" type="SAFmiddle1textType">
3040
+ <xs:annotation>
3041
+ <xs:documentation>First name of the person. If the name of the person is in an unstructured form, insert “NotUsed” in this element and enter the full unstructured name in the LastName element.</xs:documentation>
3042
+ </xs:annotation>
3043
+ </xs:element>
3044
+ <xs:element name="Initials" type="SAFshorttextType" minOccurs="0">
3045
+ <xs:annotation>
3046
+ <xs:documentation>Initials.</xs:documentation>
3047
+ </xs:annotation>
3048
+ </xs:element>
3049
+ <xs:element name="LastNamePrefix" type="SAFshorttextType" minOccurs="0">
3050
+ <xs:annotation>
3051
+ <xs:documentation>A textual expression of a prefix that precedes this person's family name such as Van, Von.</xs:documentation>
3052
+ </xs:annotation>
3053
+ </xs:element>
3054
+ <xs:element name="LastName" type="SAFmiddle2textType">
3055
+ <xs:annotation>
3056
+ <xs:documentation>Last name of the person. If the FirstName element has the text “NotUsed” then this element should contain the full unstructured name of the person.</xs:documentation>
3057
+ </xs:annotation>
3058
+ </xs:element>
3059
+ <xs:element name="BirthName" type="SAFmiddle2textType" minOccurs="0">
3060
+ <xs:annotation>
3061
+ <xs:documentation>Birth name of the person.</xs:documentation>
3062
+ </xs:annotation>
3063
+ </xs:element>
3064
+ <xs:element name="Salutation" type="SAFshorttextType" minOccurs="0">
3065
+ <xs:annotation>
3066
+ <xs:documentation>A formal sign or expression of greeting, expressed as text, that is appropriate for this person such as Right Honourable, Monsignor or Madam.</xs:documentation>
3067
+ </xs:annotation>
3068
+ </xs:element>
3069
+ <xs:element name="OtherTitles" type="SAFshorttextType" minOccurs="0" maxOccurs="unbounded">
3070
+ <xs:annotation>
3071
+ <xs:documentation>Used for roles in the company, such as Daglig leder, Styreleder, Regnskapsfører, etc. </xs:documentation>
3072
+ </xs:annotation>
3073
+ </xs:element>
3074
+ </xs:sequence>
3075
+ </xs:complexType>
3076
+ <xs:complexType name="SelectionCriteriaStructure">
3077
+ <xs:annotation>
3078
+ <xs:documentation>The selection criteria used to generate this Standard Auditfile.</xs:documentation>
3079
+ </xs:annotation>
3080
+ <xs:sequence minOccurs="0">
3081
+ <xs:element name="TaxReportingJurisdiction" type="SAFmiddle1textType" minOccurs="0">
3082
+ <xs:annotation>
3083
+ <xs:documentation>Identifies the tax jurisdiction for whose purpose the SAF has been created. Principally for use where a single Revenue body covers more than one territory.</xs:documentation>
3084
+ </xs:annotation>
3085
+ </xs:element>
3086
+ <xs:element name="CompanyEntity" type="SAFmiddle2textType" minOccurs="0">
3087
+ <xs:annotation>
3088
+ <xs:documentation>For use where data has been extracted from the full data set by reference to a specific corporate entity.</xs:documentation>
3089
+ </xs:annotation>
3090
+ </xs:element>
3091
+ <xs:choice>
3092
+ <xs:annotation>
3093
+ <xs:documentation>Allows for a choice between selection on calendar dates and periods according to the accounting system, e.g. 1 to 12 for a 12-months accounting system. </xs:documentation>
3094
+ </xs:annotation>
3095
+ <xs:sequence>
3096
+ <xs:element name="SelectionStartDate" type="xs:date">
3097
+ <xs:annotation>
3098
+ <xs:documentation>The start date for the reporting period covered by the SAF.</xs:documentation>
3099
+ </xs:annotation>
3100
+ </xs:element>
3101
+ <xs:element name="SelectionEndDate" type="xs:date">
3102
+ <xs:annotation>
3103
+ <xs:documentation>The end date for the reporting period covered by the SAF.</xs:documentation>
3104
+ </xs:annotation>
3105
+ </xs:element>
3106
+ </xs:sequence>
3107
+ <xs:sequence>
3108
+ <xs:element name="PeriodStart" type="xs:nonNegativeInteger">
3109
+ <xs:annotation>
3110
+ <xs:documentation>The first Accounting Period covered by the SAF.</xs:documentation>
3111
+ </xs:annotation>
3112
+ </xs:element>
3113
+ <xs:element name="PeriodStartYear">
3114
+ <xs:annotation>
3115
+ <xs:documentation>The Accounting Year in which the PeriodStart falls.</xs:documentation>
3116
+ </xs:annotation>
3117
+ <xs:simpleType>
3118
+ <xs:restriction base="xs:nonNegativeInteger">
3119
+ <xs:minInclusive value="1970"/>
3120
+ <xs:maxInclusive value="2100"/>
3121
+ </xs:restriction>
3122
+ </xs:simpleType>
3123
+ </xs:element>
3124
+ <xs:element name="PeriodEnd" type="xs:nonNegativeInteger">
3125
+ <xs:annotation>
3126
+ <xs:documentation>The last Accounting Period covered by the SAF.</xs:documentation>
3127
+ </xs:annotation>
3128
+ </xs:element>
3129
+ <xs:element name="PeriodEndYear">
3130
+ <xs:annotation>
3131
+ <xs:documentation>The Accounting Year in which the PeriodEnd falls.</xs:documentation>
3132
+ </xs:annotation>
3133
+ <xs:simpleType>
3134
+ <xs:restriction base="xs:nonNegativeInteger">
3135
+ <xs:minInclusive value="1970"/>
3136
+ <xs:maxInclusive value="2100"/>
3137
+ </xs:restriction>
3138
+ </xs:simpleType>
3139
+ </xs:element>
3140
+ </xs:sequence>
3141
+ </xs:choice>
3142
+ <xs:element name="DocumentType" type="SAFlongtextType" minOccurs="0">
3143
+ <xs:annotation>
3144
+ <xs:documentation>Type of documents selected. For use where the data has been restricted by reference to particular transaction types.</xs:documentation>
3145
+ </xs:annotation>
3146
+ </xs:element>
3147
+ <xs:element name="OtherCriteria" type="SAFlongtextType" minOccurs="0" maxOccurs="unbounded">
3148
+ <xs:annotation>
3149
+ <xs:documentation>Any other criteria used in selecting data. Individual Revenue Bodies may wish to draw up a list of other acceptable selection criteria for use within their jurisdiction.</xs:documentation>
3150
+ </xs:annotation>
3151
+ </xs:element>
3152
+ </xs:sequence>
3153
+ </xs:complexType>
3154
+ <xs:complexType name="TaxIDStructure">
3155
+ <xs:annotation>
3156
+ <xs:documentation>Tax information of a company.</xs:documentation>
3157
+ </xs:annotation>
3158
+ <xs:sequence>
3159
+ <xs:element name="TaxRegistrationNumber" type="SAFmiddle1textType">
3160
+ <xs:annotation>
3161
+ <xs:documentation>The company’s VAT (MVA) number.
3162
+ This is the unique number/organization number from The Brønnøysund Register Centre (Brønnøysundregistrene). This element is mandatory if the company is subject to VAT (MVA).</xs:documentation>
3163
+ </xs:annotation>
3164
+ </xs:element>
3165
+ <xs:element name="TaxType" type="SAFcodeType" minOccurs="0">
3166
+ <xs:annotation>
3167
+ <xs:documentation>Not in use.</xs:documentation>
3168
+ </xs:annotation>
3169
+ </xs:element>
3170
+ <xs:element name="TaxNumber" type="SAFmiddle1textType" minOccurs="0">
3171
+ <xs:annotation>
3172
+ <xs:documentation>Not in use.</xs:documentation>
3173
+ </xs:annotation>
3174
+ </xs:element>
3175
+ <xs:element name="TaxAuthority" minOccurs="0">
3176
+ <xs:annotation>
3177
+ <xs:documentation>Identification of the Revenue Body to which this TaxType refers.
3178
+ The only valid value is “Skatteetaten ”.</xs:documentation>
3179
+ </xs:annotation>
3180
+ <xs:simpleType>
3181
+ <xs:restriction base="SAFmiddle1textType">
3182
+ <xs:enumeration value="Skatteetaten"/>
3183
+ </xs:restriction>
3184
+ </xs:simpleType>
3185
+ </xs:element>
3186
+ <xs:element name="TaxVerificationDate" type="xs:date" minOccurs="0">
3187
+ <xs:annotation>
3188
+ <xs:documentation>The date that the tax registration details referred to above were last checked or when the tax registration was completed in the VAT register (Merverdiavgiftsregisteret).</xs:documentation>
3189
+ </xs:annotation>
3190
+ </xs:element>
3191
+ </xs:sequence>
3192
+ </xs:complexType>
3193
+ <xs:complexType name="TaxInformationStructure">
3194
+ <xs:annotation>
3195
+ <xs:documentation>Tax Amount information structure.</xs:documentation>
3196
+ </xs:annotation>
3197
+ <xs:sequence>
3198
+ <xs:element name="TaxType" minOccurs="0">
3199
+ <xs:annotation>
3200
+ <xs:documentation>Tax type for look-up in tables.
3201
+ If used, then the only valid value is "MVA".</xs:documentation>
3202
+ </xs:annotation>
3203
+ <xs:simpleType>
3204
+ <xs:restriction base="SAFcodeType">
3205
+ <xs:enumeration value="MVA"/>
3206
+ </xs:restriction>
3207
+ </xs:simpleType>
3208
+ </xs:element>
3209
+ <xs:element name="TaxCode" type="SAFmiddle1textType" minOccurs="0">
3210
+ <xs:annotation>
3211
+ <xs:documentation>Tax Code for lookup in tables.</xs:documentation>
3212
+ </xs:annotation>
3213
+ </xs:element>
3214
+ <xs:element name="TaxPercentage" type="xs:decimal" minOccurs="0">
3215
+ <xs:annotation>
3216
+ <xs:documentation>Tax percentage.</xs:documentation>
3217
+ </xs:annotation>
3218
+ </xs:element>
3219
+ <xs:element name="Country" type="ISOCountryCode" minOccurs="0">
3220
+ <xs:annotation>
3221
+ <xs:documentation>Two-letter country code according to ISO 3166-1 alpha 2 standard.</xs:documentation>
3222
+ </xs:annotation>
3223
+ </xs:element>
3224
+ <xs:element name="TaxBase" type="xs:decimal" minOccurs="0">
3225
+ <xs:annotation>
3226
+ <xs:documentation>The base on which the tax is calculated. This can be an amount, or a quantity, eg. Litres.</xs:documentation>
3227
+ </xs:annotation>
3228
+ </xs:element>
3229
+ <xs:element name="TaxBaseDescription" type="SAFmiddle2textType" minOccurs="0">
3230
+ <xs:annotation>
3231
+ <xs:documentation>Description of the value in the TaxBase. Eg. Litres for excises on alcoholic bevarages.</xs:documentation>
3232
+ </xs:annotation>
3233
+ </xs:element>
3234
+ <xs:element name="TaxAmount" type="AmountStructure">
3235
+ <xs:annotation>
3236
+ <xs:documentation>Tax amount information</xs:documentation>
3237
+ </xs:annotation>
3238
+ </xs:element>
3239
+ <xs:element name="TaxExemptionReason" type="SAFmiddle2textType" minOccurs="0">
3240
+ <xs:annotation>
3241
+ <xs:documentation>Tax exemption or reduction reason or rationale </xs:documentation>
3242
+ </xs:annotation>
3243
+ </xs:element>
3244
+ <xs:element name="TaxDeclarationPeriod" type="SAFmiddle1textType" minOccurs="0">
3245
+ <xs:annotation>
3246
+ <xs:documentation>The identification of the declaration/return in which the taxamount is reported to the Revenue body.</xs:documentation>
3247
+ </xs:annotation>
3248
+ </xs:element>
3249
+ </xs:sequence>
3250
+ </xs:complexType>
3251
+ <xs:simpleType name="SAFmonetaryType">
3252
+ <xs:annotation>
3253
+ <xs:documentation>Monetary amount.18 digits max, of which 2 can be fractional digits.</xs:documentation>
3254
+ </xs:annotation>
3255
+ <xs:restriction base="xs:decimal">
3256
+ <xs:totalDigits value="18"/>
3257
+ <xs:fractionDigits value="2"/>
3258
+ </xs:restriction>
3259
+ </xs:simpleType>
3260
+ <xs:simpleType name="SAFexchangerateType">
3261
+ <xs:annotation>
3262
+ <xs:documentation>18 digits max, of which 8 can be fractional digits.</xs:documentation>
3263
+ </xs:annotation>
3264
+ <xs:restriction base="xs:decimal">
3265
+ <xs:totalDigits value="18"/>
3266
+ <xs:fractionDigits value="8"/>
3267
+ </xs:restriction>
3268
+ </xs:simpleType>
3269
+ <xs:simpleType name="SAFquantityType">
3270
+ <xs:annotation>
3271
+ <xs:documentation>Used to describe a quantity. Monetary amount. 22 digits max, of which 6 can be fractional digits.</xs:documentation>
3272
+ </xs:annotation>
3273
+ <xs:restriction base="xs:decimal">
3274
+ <xs:totalDigits value="22"/>
3275
+ <xs:fractionDigits value="6"/>
3276
+ </xs:restriction>
3277
+ </xs:simpleType>
3278
+ <xs:simpleType name="SAFweightType">
3279
+ <xs:annotation>
3280
+ <xs:documentation>Describes a weight. Monetary amount.14 digits max, of which 3 can be fractional digits.</xs:documentation>
3281
+ </xs:annotation>
3282
+ <xs:restriction base="xs:decimal">
3283
+ <xs:totalDigits value="14"/>
3284
+ <xs:fractionDigits value="3"/>
3285
+ </xs:restriction>
3286
+ </xs:simpleType>
3287
+ <xs:simpleType name="SAFcodeType">
3288
+ <xs:annotation>
3289
+ <xs:documentation>Text of max 9 characters.</xs:documentation>
3290
+ </xs:annotation>
3291
+ <xs:restriction base="xs:string">
3292
+ <xs:maxLength value="9"/>
3293
+ </xs:restriction>
3294
+ </xs:simpleType>
3295
+ <xs:simpleType name="SAFshorttextType">
3296
+ <xs:annotation>
3297
+ <xs:documentation>18 character text.</xs:documentation>
3298
+ </xs:annotation>
3299
+ <xs:restriction base="xs:string">
3300
+ <xs:maxLength value="18"/>
3301
+ </xs:restriction>
3302
+ </xs:simpleType>
3303
+ <xs:simpleType name="SAFmiddle1textType">
3304
+ <xs:annotation>
3305
+ <xs:documentation>35 character text.</xs:documentation>
3306
+ </xs:annotation>
3307
+ <xs:restriction base="xs:string">
3308
+ <xs:maxLength value="35"/>
3309
+ </xs:restriction>
3310
+ </xs:simpleType>
3311
+ <xs:simpleType name="SAFmiddle2textType">
3312
+ <xs:annotation>
3313
+ <xs:documentation>70 character text.</xs:documentation>
3314
+ </xs:annotation>
3315
+ <xs:restriction base="xs:string">
3316
+ <xs:maxLength value="70"/>
3317
+ </xs:restriction>
3318
+ </xs:simpleType>
3319
+ <xs:simpleType name="SAFlongtextType">
3320
+ <xs:annotation>
3321
+ <xs:documentation>256 character text.</xs:documentation>
3322
+ </xs:annotation>
3323
+ <xs:restriction base="xs:string">
3324
+ <xs:maxLength value="256"/>
3325
+ </xs:restriction>
3326
+ </xs:simpleType>
3327
+ <xs:simpleType name="ISOCountryCode">
3328
+ <xs:annotation>
3329
+ <xs:documentation>Two-letter country code according to ISO 3166-1 alpha 2 standard. Example: NO for the Norway.</xs:documentation>
3330
+ </xs:annotation>
3331
+ <xs:restriction base="xs:string">
3332
+ <xs:length value="2"/>
3333
+ </xs:restriction>
3334
+ </xs:simpleType>
3335
+ <xs:simpleType name="ISOCurrencyCode">
3336
+ <xs:annotation>
3337
+ <xs:documentation>Three-letter currency code according to ISO 4217 standard. Example: EUR for the Euros or NOK for Norwegian kroner.</xs:documentation>
3338
+ </xs:annotation>
3339
+ <xs:restriction base="xs:string">
3340
+ <xs:length value="3"/>
3341
+ </xs:restriction>
3342
+ </xs:simpleType>
3343
+ </xs:schema>