einvoice 0.1.1

E-Invoice library with language bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed under European Union Public Licence (EUPL) version 1.2.

-->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->
<!--     PEPPOL BIS Billing 3.0 - MAXIMUM content: INVOICE                      -->
<!--     Reference - http://docs.peppol.eu/poacc/billing/3.0/                   -->
<!--                                                                            -->
<!--     Note - The purpose is to illustrate maximum contents of invoice        -->
<!--     instances, but without breaking breaking formal business rules.        -->
<!--                                                                            -->
<!--     Revised with validation rules according to PEPPOL's Fall release 2020  -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  -->

<Invoice 
 xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" 
 xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
 xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">

	<cbc:UBLVersionID>2.1</cbc:UBLVersionID>   
	<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
	<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
	<cbc:ID>2018210</cbc:ID>
	<cbc:IssueDate>2018-02-08</cbc:IssueDate>
	<cbc:DueDate>2018-03-07</cbc:DueDate>
	<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
	<cbc:Note>Document level Note
Line break should be respected here.</cbc:Note>
	<cbc:TaxPointDate>2018-02-08</cbc:TaxPointDate>
	<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode>
	<cbc:TaxCurrencyCode>EUR</cbc:TaxCurrencyCode>
	<cbc:AccountingCost>BES, 87392</cbc:AccountingCost>

<!-- For the use of references in invoices generally, see guide "The use of references and..." on
     http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html
-->
	<cbc:BuyerReference>Buyer reference</cbc:BuyerReference>

	<cac:InvoicePeriod>
		<cbc:StartDate>2018-02-01</cbc:StartDate>
		<cbc:EndDate>2018-02-07</cbc:EndDate>
<!-- *** Inactivated element in this message due to "mutually exclusive"-rule when validating:
     ***	<cbc:DescriptionCode>35</cbc:DescriptionCode>                         
-->
	</cac:InvoicePeriod>
	<cac:OrderReference>
		<cbc:ID>20180117</cbc:ID>
		<cbc:SalesOrderID>INK/0117/JM</cbc:SalesOrderID>
	</cac:OrderReference>
	<cac:BillingReference>
		<cac:InvoiceDocumentReference>
			<cbc:ID>Preceding invoice no.1</cbc:ID>
			<cbc:IssueDate>2018-01-31</cbc:IssueDate>
		</cac:InvoiceDocumentReference>
	</cac:BillingReference>
	<cac:BillingReference>
		<cac:InvoiceDocumentReference>
			<cbc:ID>Preceding invoice no.2</cbc:ID>
		</cac:InvoiceDocumentReference>
	</cac:BillingReference>
	<cac:DespatchDocumentReference>
		<cbc:ID>Despatch_advice Feb 01-07</cbc:ID>
	</cac:DespatchDocumentReference>
	<cac:ReceiptDocumentReference>
		<cbc:ID>Receipt_advice 01-07</cbc:ID>
	</cac:ReceiptDocumentReference>
	<cac:OriginatorDocumentReference>
		<cbc:ID>Tender 2017-12, lot no. 3</cbc:ID>
	</cac:OriginatorDocumentReference>
	<cac:ContractDocumentReference>
		<cbc:ID>2017-123</cbc:ID>
	</cac:ContractDocumentReference>

	<cac:AdditionalDocumentReference>
<!-- When the invoice refers to an "invoiced object": for more information, see guide "The use of references and..." on
     http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html
-->
		<cbc:ID schemeID="VT">ABC123</cbc:ID>
		<cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
	</cac:AdditionalDocumentReference>

	<cac:AdditionalDocumentReference> 
<!-- When the invoice refers to a document known to both parties: for more information, see guide "The use of references and..." on
     http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html
-->
		<cbc:ID>MT123</cbc:ID>
		<cbc:DocumentDescription>Contracted maintenance plan</cbc:DocumentDescription>
	</cac:AdditionalDocumentReference>

	<cac:AdditionalDocumentReference> 
<!-- When the invoice has an embedded attachment: for more information, see guide "The use of attachments" on
     http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html
-->
		<cbc:ID>Time report 1</cbc:ID>
		<cbc:DocumentDescription>Attached sample document</cbc:DocumentDescription>
		<cac:Attachment>
			<cbc:EmbeddedDocumentBinaryObject mimeCode="text/csv" filename="testfilnamn.abc">01234567,abc
				89012345,def</cbc:EmbeddedDocumentBinaryObject>
		</cac:Attachment>
	</cac:AdditionalDocumentReference>

	<cac:AdditionalDocumentReference> 
<!-- When the invoice has an external document as attachment: for more information, see guide "The use of attachments" on
     http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html
-->
		<cbc:ID>Example 1</cbc:ID>
		<cbc:DocumentDescription>Referenced external sample document</cbc:DocumentDescription>
		<cac:Attachment>
			<cac:ExternalReference>
				<cbc:URI>http://www.example.com/index.html</cbc:URI>
			</cac:ExternalReference>
		</cac:Attachment>
	</cac:AdditionalDocumentReference>

	<cac:ProjectReference>
		<cbc:ID>Project 99</cbc:ID>
	</cac:ProjectReference>

	<cac:AccountingSupplierParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0007">1234567890</cbc:EndpointID>
			<cac:PartyIdentification>
				<cbc:ID schemeID="0088">7350000001204</cbc:ID >
			</cac:PartyIdentification>
			<cac:PartyIdentification>
				<cbc:ID>BilateralID</cbc:ID >
			</cac:PartyIdentification>
			<cac:PartyName>
				<cbc:Name>Global Trade Chain</cbc:Name>
			</cac:PartyName>
			<cac:PostalAddress>
				<cbc:StreetName>Streetname-line1</cbc:StreetName>
				<cbc:AdditionalStreetName>AddStreetname-line2</cbc:AdditionalStreetName>
				<cbc:CityName>Big City</cbc:CityName>
				<cbc:PostalZone>11122</cbc:PostalZone>
				<cbc:CountrySubentity>Delstat A</cbc:CountrySubentity>
				<cac:AddressLine>
					<cbc:Line>Address-line3</cbc:Line>
				</cac:AddressLine>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>SE123456789001</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>GodkÀnd för F-skatt</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>TAX</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>The Global Chain Sweden AB</cbc:RegistrationName>
				<cbc:CompanyID schemeID="0007">1234567890</cbc:CompanyID>
				<cbc:CompanyLegalForm>SĂ€te: Big CIty</cbc:CompanyLegalForm>
			</cac:PartyLegalEntity>
			<cac:Contact>
				<cbc:Name>A Persson</cbc:Name>
				<cbc:Telephone>0201234567</cbc:Telephone>
				<cbc:ElectronicMail>info@UCS.se</cbc:ElectronicMail>
			</cac:Contact>
		</cac:Party>
	</cac:AccountingSupplierParty>

	<cac:AccountingCustomerParty>
		<cac:Party>
			<cbc:EndpointID schemeID="0007">1234512345</cbc:EndpointID>
			<cac:PartyIdentification>
				<cbc:ID schemeID="0088">7350000001228</cbc:ID >
	 		</cac:PartyIdentification>
			<cac:PartyName>
				<cbc:Name>Project Services</cbc:Name>
			</cac:PartyName>
			<cac:PostalAddress>
				<cbc:StreetName>Gata (rad1)</cbc:StreetName>
				<cbc:AdditionalStreetName>Box 8 (rad2)</cbc:AdditionalStreetName>
				<cbc:CityName>Motown</cbc:CityName>
				<cbc:PostalZone>10203</cbc:PostalZone>
				<cbc:CountrySubentity>Delstat B</cbc:CountrySubentity>
				<cac:AddressLine>
					<cbc:Line>Building 4 (rad3)</cbc:Line>
				</cac:AddressLine>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:PostalAddress>
			<cac:PartyTaxScheme>
				<cbc:CompanyID>SE123451234501</cbc:CompanyID>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:PartyTaxScheme>
			<cac:PartyLegalEntity>
				<cbc:RegistrationName>Project services AB</cbc:RegistrationName>
				<cbc:CompanyID schemeID="0007">1234512345</cbc:CompanyID>
			</cac:PartyLegalEntity>
			<cac:Contact>
				<cbc:Name>B. E. StÀllman</cbc:Name>
				<cbc:Telephone>070123456</cbc:Telephone>
				<cbc:ElectronicMail>B.E.Stallman@projekttjanst.se</cbc:ElectronicMail>
			</cac:Contact>
		</cac:Party>
	</cac:AccountingCustomerParty>

	<cac:PayeeParty>
		<cac:PartyIdentification>
			<cbc:ID schemeID="0088">7350053850019</cbc:ID >
		</cac:PartyIdentification>
		<cac:PartyName>
			<cbc:Name>Finansiell Support u.p.a.</cbc:Name>
		</cac:PartyName>
		<cac:PartyLegalEntity>
			<cbc:CompanyID schemeID="0007">5566778899</cbc:CompanyID>
		</cac:PartyLegalEntity>
	</cac:PayeeParty>

<!-- Be cautious if TaxRepresentative is found in invoices to Swedish buyers:
     If referenced in Sweden, still the supplier's Swedish VAT number is required, 
     and only one VAT number on the supplier's side should be present in an invoice.  
-->
	<cac:TaxRepresentativeParty>
		<cac:PartyName>
			<cbc:Name>Tax Administrators Inc.</cbc:Name>
		</cac:PartyName>
		<cac:PostalAddress>
			<cbc:StreetName>TaxREP Streetname-line1</cbc:StreetName>
			<cbc:AdditionalStreetName>TaxREP AddStreetname-line2</cbc:AdditionalStreetName>
			<cbc:CityName>TaxREP Village</cbc:CityName>
			<cbc:PostalZone>TaxREP 98765</cbc:PostalZone>
			<cbc:CountrySubentity>TaxREP State A</cbc:CountrySubentity>
			<cac:AddressLine>
				<cbc:Line>TaxREP-line3</cbc:Line>
			</cac:AddressLine>
			<cac:Country>
				<cbc:IdentificationCode>SE</cbc:IdentificationCode>
			</cac:Country>
		</cac:PostalAddress>
		<cac:PartyTaxScheme>
		<!-- Not compatible with Swedish VAT rules (but may be OK in other countries): -->
			<cbc:CompanyID>SE998877665501</cbc:CompanyID>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:PartyTaxScheme>
	</cac:TaxRepresentativeParty>

	<cac:Delivery>
		<cbc:ActualDeliveryDate>2017-12-01</cbc:ActualDeliveryDate>
		<cac:DeliveryLocation>
			<cbc:ID schemeID="0088">7350000001211</cbc:ID>
			<cac:Address>
				<cbc:StreetName>DELIV Streetname-line1</cbc:StreetName>
				<cbc:AdditionalStreetName>DELIV AddStreetname-line2</cbc:AdditionalStreetName>
				<cbc:CityName>DELIV Town</cbc:CityName>
				<cbc:PostalZone>DELIV 90807</cbc:PostalZone>
				<cbc:CountrySubentity>DELIV Delstat C</cbc:CountrySubentity>
				<cac:AddressLine>
					<cbc:Line>DELIV-line3</cbc:Line>
				</cac:AddressLine>
				<cac:Country>
					<cbc:IdentificationCode>SE</cbc:IdentificationCode>
				</cac:Country>
			</cac:Address>
		</cac:DeliveryLocation>
		<cac:DeliveryParty>
			<cac:PartyName>
				<cbc:Name>Deliver-to Name A.S.</cbc:Name>
			</cac:PartyName>
		</cac:DeliveryParty>
	</cac:Delivery>

<!-- NB! Note the restrictions on PaymentMeans in order for the invoice instance to be valid:   
         * Credit transfer, debit transfer and card payment are mutually exclusive options      
         * Credit transfer may be repeated, but then only with the same PaymentMeansCode         
         * The PaymentID value must be present in all PaymentMeans in the invoice instance (or just in one PaymentMeans)           
         * The below list shows common uses of credit transfer in Sweden                         
         * For information on other arrangements for payment, see the guide on the use of payment means on
         * http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html 
-->
	<cac:PaymentMeans> <!-- Credit transfer (domestic, with bank account on IBAN format) -->
		<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
		<cbc:PaymentID>1800355</cbc:PaymentID>
		<cac:PayeeFinancialAccount>
			<cbc:ID>SE1212341234123412341234</cbc:ID>
			<cbc:Name>Name-of-account_A (normally not used in Sweden)</cbc:Name>
		        <cac:FinancialInstitutionBranch>
			   <cbc:ID>BANKSBIC</cbc:ID>
		        </cac:FinancialInstitutionBranch>
		</cac:PayeeFinancialAccount>
	</cac:PaymentMeans>
	<cac:PaymentMeans> <!-- Credit transfer (domestic, with bank account on national format) -->
		<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
		<cbc:PaymentID>1800355</cbc:PaymentID>
		<cac:PayeeFinancialAccount>
			<cbc:ID>12341234567</cbc:ID> 
			<cbc:Name>Name-of-account_B (normally not used in Sweden)</cbc:Name>
		        <cac:FinancialInstitutionBranch>
			   <cbc:ID>BANKSBIC</cbc:ID>
		        </cac:FinancialInstitutionBranch>
		</cac:PayeeFinancialAccount>
	</cac:PaymentMeans>
	<cac:PaymentMeans> <!-- Credit transfer (Swedish Bankgiro) -->
		<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
		<cbc:PaymentID>1800355</cbc:PaymentID>
		<cac:PayeeFinancialAccount>
			<cbc:ID>1112222</cbc:ID>
		        <cac:FinancialInstitutionBranch>
			   <cbc:ID>SE:BANKGIRO</cbc:ID>
		        </cac:FinancialInstitutionBranch>
		</cac:PayeeFinancialAccount>
	</cac:PaymentMeans>
	<cac:PaymentMeans> <!-- Credit transfer (Swedish Plusgiro) -->
		<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
		<cbc:PaymentID>1800355</cbc:PaymentID>
		<cac:PayeeFinancialAccount>
			<cbc:ID>121212</cbc:ID>
		        <cac:FinancialInstitutionBranch>
			   <cbc:ID>SE:PLUSGIRO</cbc:ID>
		        </cac:FinancialInstitutionBranch>
		</cac:PayeeFinancialAccount>
	</cac:PaymentMeans>

<!-- NB! Payment means for card payment is de-activated in this instance of the document:
	<cac:PaymentMeans> 
		<cbc:PaymentMeansCode name="Credit card">54</cbc:PaymentMeansCode>
		<cbc:PaymentDueDate>2018-03-07</cbc:PaymentDueDate>
		<cbc:PaymentID>1800355</cbc:PaymentID>
		<cac:CardAccount>
			<cbc:PrimaryAccountNumberID>123236</cbc:PrimaryAccountNumberID>
			<cbc:NetworkID>VISA</cbc:NetworkID>
			<cbc:HolderName>Card holders name</cbc:HolderName>
		</cac:CardAccount>
	</cac:PaymentMeans>
-->
<!-- NB! Payment means for direct debit is de-activated in this instance of the document:
         (use PaymentMeansCode="49" for autogiro or "59" for SEPA autogiro)
	<cac:PaymentMeans> 
		<cbc:PaymentMeansCode name="SEPA direct debit">59</cbc:PaymentMeansCode>
		<cbc:PaymentDueDate>2018-03-07</cbc:PaymentDueDate>
		<cbc:PaymentID>1800355</cbc:PaymentID>
		<cac:PaymentMandate>
			<cbc:ID>123456</cbc:ID>
			<cac:PayerFinancialAccount>
				<cbc:ID>DK12328462834823</cbc:ID>
			</cac:PayerFinancialAccount>
		</cac:PaymentMandate>
	</cac:PaymentMeans>
-->
	<cac:PaymentTerms>
		<cbc:Note>30 days net. Penalty rate 12 %
Line break should be respected here.</cbc:Note>
	</cac:PaymentTerms>

	<cac:AllowanceCharge> <!-- Allowance: -->
		<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
		<cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric>
		<cbc:Amount currencyID="SEK">0</cbc:Amount>
		<cbc:BaseAmount currencyID="SEK">0</cbc:BaseAmount>
		<cac:TaxCategory>
			<cbc:ID>E</cbc:ID>
			<cbc:Percent>0</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>
	<cac:AllowanceCharge> <!-- Charge: -->
		<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
		<cbc:AllowanceChargeReasonCode>WH</cbc:AllowanceChargeReasonCode>
		<cbc:AllowanceChargeReason>Warehousing</cbc:AllowanceChargeReason>
		<cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric>
		<cbc:Amount currencyID="SEK">0</cbc:Amount>
		<cbc:BaseAmount currencyID="SEK">0</cbc:BaseAmount>
		<cac:TaxCategory>
			<cbc:ID>E</cbc:ID>
			<cbc:Percent>0</cbc:Percent>
			<cac:TaxScheme>
				<cbc:ID>VAT</cbc:ID>
			</cac:TaxScheme>
		</cac:TaxCategory>
	</cac:AllowanceCharge>

	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="SEK">2500</cbc:TaxAmount>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SEK">10000</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SEK">2500</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
		<cac:TaxSubtotal>
			<cbc:TaxableAmount currencyID="SEK">0</cbc:TaxableAmount>
			<cbc:TaxAmount currencyID="SEK">0</cbc:TaxAmount>
			<cac:TaxCategory>
				<cbc:ID>E</cbc:ID>
				<cbc:Percent>0</cbc:Percent>
				<cbc:TaxExemptionReasonCode>vatex-eu-132-1g</cbc:TaxExemptionReasonCode>
				<cbc:TaxExemptionReason>EU Direcive Article 132, section 1(g)</cbc:TaxExemptionReason>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:TaxCategory>
		</cac:TaxSubtotal>
	</cac:TaxTotal>

<!-- NB! Two occurrencies of TaxTotal may be present in an invoice: if so, one TaxTotal is
         to show the tax amount in a TaxCurrency that is different from DocumentCurrency: 
-->
	<cac:TaxTotal>
		<cbc:TaxAmount currencyID="EUR">249</cbc:TaxAmount>
	</cac:TaxTotal>

	<cac:LegalMonetaryTotal>
		<cbc:LineExtensionAmount currencyID="SEK">10000</cbc:LineExtensionAmount>
		<cbc:TaxExclusiveAmount currencyID="SEK">10000</cbc:TaxExclusiveAmount>
		<cbc:TaxInclusiveAmount currencyID="SEK">12500</cbc:TaxInclusiveAmount>
		<cbc:AllowanceTotalAmount currencyID="SEK">0</cbc:AllowanceTotalAmount>
		<cbc:ChargeTotalAmount currencyID="SEK">0</cbc:ChargeTotalAmount>
		<cbc:PrepaidAmount currencyID="SEK">0</cbc:PrepaidAmount>
		<cbc:PayableRoundingAmount currencyID="SEK">0</cbc:PayableRoundingAmount>
		<cbc:PayableAmount currencyID="SEK">12500</cbc:PayableAmount>
	</cac:LegalMonetaryTotal>

	<cac:InvoiceLine>
		<cbc:ID>1</cbc:ID>
		<cbc:Note>Line level Note
Line break should be respected here.</cbc:Note>

<!-- For guidance on measure units in invoices, see guide "Shortlisted codes for units of measure and package types" on
     http://www.sfti.se/standarder/peppolbisochsvehandel/peppolbisbilling3/implementationsradochfaq.4728.html
-->
		<cbc:InvoicedQuantity unitCode="MTR">500</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SEK">10000</cbc:LineExtensionAmount>
		<cbc:AccountingCost>Accounting 101-222-8</cbc:AccountingCost>
		<cac:InvoicePeriod>
			<cbc:StartDate>2018-02-01</cbc:StartDate>
			<cbc:EndDate>2018-02-07</cbc:EndDate>
		</cac:InvoicePeriod>
		<cac:OrderLineReference>
			<cbc:LineID>20080117/JM</cbc:LineID>
		</cac:OrderLineReference>
		<cac:DocumentReference> <!-- Identification of "invoiced object", applicable to this very line -->
			<cbc:ID schemeID="ABZ">130-DR35141</cbc:ID>
			<cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
		</cac:DocumentReference>

		<cac:AllowanceCharge> <!-- Allowance: -->
			<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
			<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">0</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">0</cbc:BaseAmount>
		</cac:AllowanceCharge>
		<cac:AllowanceCharge> <!-- Charge: -->
			<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
			<cbc:AllowanceChargeReasonCode>WH</cbc:AllowanceChargeReasonCode>
			<cbc:AllowanceChargeReason>Warehousing</cbc:AllowanceChargeReason>
			<cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric>
			<cbc:Amount currencyID="SEK">0</cbc:Amount>
			<cbc:BaseAmount currencyID="SEK">0</cbc:BaseAmount>
		</cac:AllowanceCharge>

		<cac:Item>
			<cbc:Description>Universal product, customized with option X</cbc:Description>
			<cbc:Name>Universal product</cbc:Name>
			<cac:BuyersItemIdentification>
				<cbc:ID>Buyer's ID</cbc:ID>
			</cac:BuyersItemIdentification>
			<cac:SellersItemIdentification>
				<cbc:ID>UNI+X</cbc:ID>
			</cac:SellersItemIdentification>
			<cac:StandardItemIdentification>
				<cbc:ID schemeID="0088">17350053850016</cbc:ID>
			</cac:StandardItemIdentification>
			<cac:OriginCountry>
				<cbc:IdentificationCode>SE</cbc:IdentificationCode>
			</cac:OriginCountry>
			<cac:CommodityClassification>
				<cbc:ItemClassificationCode listID="SSR" listVersionID="1.0">9873242</cbc:ItemClassificationCode>
			</cac:CommodityClassification>
			<cac:CommodityClassification>
				<cbc:ItemClassificationCode listID="SST">SST3242</cbc:ItemClassificationCode>
			</cac:CommodityClassification>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>S</cbc:ID>
				<cbc:Percent>25</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
			<cac:AdditionalItemProperty>
				<cbc:Name>Surface grade</cbc:Name>
				<cbc:Value>A11</cbc:Value>
			</cac:AdditionalItemProperty>
			<cac:AdditionalItemProperty>
				<cbc:Name>Density</cbc:Name>
				<cbc:Value>2.33</cbc:Value>
			</cac:AdditionalItemProperty>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SEK">20</cbc:PriceAmount>
			<cbc:BaseQuantity unitCode="MTR">1</cbc:BaseQuantity>
			<cac:AllowanceCharge>
				<!-- EN 16931-1 tillÄter endast rabatt, max en förekomst -->
				<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
				<cbc:Amount currencyID="SEK">0.50</cbc:Amount>
				<cbc:BaseAmount currencyID="SEK">20.50</cbc:BaseAmount>
			</cac:AllowanceCharge>
		</cac:Price>
	</cac:InvoiceLine>

	<cac:InvoiceLine>
		<cbc:ID>2</cbc:ID>
		<cbc:InvoicedQuantity unitCode="EA">10000</cbc:InvoicedQuantity>
		<cbc:LineExtensionAmount currencyID="SEK">0</cbc:LineExtensionAmount>
		<cac:Item>
			<cbc:Name>Guarantee facility</cbc:Name>
			<cac:ClassifiedTaxCategory>
				<cbc:ID>E</cbc:ID>
				<cbc:Percent>0</cbc:Percent>
				<cac:TaxScheme>
					<cbc:ID>VAT</cbc:ID>
				</cac:TaxScheme>
			</cac:ClassifiedTaxCategory>
		</cac:Item>
		<cac:Price>
			<cbc:PriceAmount currencyID="SEK">0</cbc:PriceAmount>
		</cac:Price>
	</cac:InvoiceLine>

</Invoice>