forked from peppolautoriteit-nl/validation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrules-inv-overview.html
1835 lines (1834 loc) · 82 KB
/
rules-inv-overview.html
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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<html xmlns:svrl="http://purl.oclc.org/dsdl/svrl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Rules overview</title>
</head>
<body>
<table>
<thead>
<tr>
<th>ID</th>
<th>Category</th>
<th>Description</th>
<th>Query</th>
</tr>
</thead>
<tbody>
<tr>
<td>BII2-T10-R001</td>
<td>BII2</td>
<td></td>
<td>cbc:CustomizationID</td>
</tr>
<tr>
<td>SI-V11-INV-R200</td>
<td>SI</td>
<td>This XML instance is NOT tagged as an SI-UBL invoice; please check the CustomizationID value</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>SI-INV-R000</td>
<td>SI</td>
<td>This is NOT a UBL 2.x Invoice, validation cannot continue</td>
<td>ubl:Invoice</td>
</tr>
<tr>
<td>SI-V12-INV-R200</td>
<td>SI</td>
<td>This XML instance is NOT tagged as an SI-UBL invoice</td>
<td>contains(., 'urn:www.simplerinvoicing.org:si:si-ubl:ver1.2')</td>
</tr>
<tr>
<td>SI-V12-INV-R200</td>
<td>SI</td>
<td>This XML instance is NOT tagged as an SI-UBL invoice; please check the CustomizationID value</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>SI-INV-R000</td>
<td>SI</td>
<td>This is NOT a UBL 2.x Invoice, validation cannot continue</td>
<td>ubl:Invoice</td>
</tr>
<tr>
<td>SI-V12-INV-R001</td>
<td>SI</td>
<td>Each invoice MUST be specified as a UBL 2.1 document</td>
<td>cbc:UBLVersionID='2.1'</td>
</tr>
<tr>
<td>SI-V12-INV-R002</td>
<td>SI</td>
<td>Each invoice MUST have an InvoiceTypeCode declaration</td>
<td>cbc:InvoiceTypeCode</td>
</tr>
<tr>
<td>SI-V11-INV-R453</td>
<td>SI</td>
<td>For corrective invoices a billing reference MUST be set</td>
<td>cbc:InvoiceTypeCode!='384' or cac:BillingReference</td>
</tr>
<tr>
<td>BII2-T10-R001</td>
<td>BII2</td>
<td></td>
<td>cbc:CustomizationID</td>
</tr>
<tr>
<td>SI-V12-INV-R003</td>
<td>SI</td>
<td>A CompanyID MUST be specified using a PEPPOL Party identifier</td>
<td>@schemeID</td>
</tr>
<tr>
<td>SI-V12-INV-R004</td>
<td>SI</td>
<td>An external reference MUST have its uri specified</td>
<td>normalize-space(cbc:URI) != ''</td>
</tr>
<tr>
<td>SI-V12-INV-R005</td>
<td>SI</td>
<td>A country MUST be identified by a two-letter identification code as specified in ISO3166-1:Alpha2</td>
<td>cbc:IdentificationCode</td>
</tr>
<tr>
<td>SI-V12-INV-R006</td>
<td>SI</td>
<td>A tax scheme MUST have an identifier specifying it uses the UN/ECE 5153 list</td>
<td>cbc:ID/@schemeID='UN/ECE 5153'</td>
</tr>
<tr>
<td>SI-V12-INV-R007</td>
<td>SI</td>
<td>A legal entity MUST have a company identifier</td>
<td>cbc:CompanyID</td>
</tr>
<tr>
<td>SI-V12-INV-R008</td>
<td>SI</td>
<td>If delivery terms are specified they MUST be expressed as special conditions</td>
<td>normalize-space(cbc:SpecialTerms/text()) != ''</td>
</tr>
<tr>
<td>SI-V12-INV-R009</td>
<td>SI</td>
<td>A primary account number MUST be specified if a card account is used</td>
<td>normalize-space(text()) != ''</td>
</tr>
<tr>
<td>SI-V12-INV-R010</td>
<td>SI</td>
<td>A network id MUST be specified if a card account is used</td>
<td>normalize-space(text()) != ''</td>
</tr>
<tr>
<td>SI-V12-INV-R011</td>
<td>SI</td>
<td>A financial account MUST have an id</td>
<td>cbc:ID</td>
</tr>
<tr>
<td>SI-V12-INV-R012</td>
<td>SI</td>
<td>A financial account id MUST have a value</td>
<td>string-length(normalize-space(text())) > 0</td>
</tr>
<tr>
<td>SI-V12-INV-R013</td>
<td>SI</td>
<td>A financial institution MUST have an id</td>
<td>cbc:ID</td>
</tr>
<tr>
<td>SI-V12-INV-R014</td>
<td>SI</td>
<td>A financial institution id MUST have a value</td>
<td>string-length(normalize-space(text())) > 0</td>
</tr>
<tr>
<td>SI-V12-INV-R015</td>
<td>SI</td>
<td>A tax category MUST have an id</td>
<td>cbc:ID</td>
</tr>
<tr>
<td>SI-V12-INV-R016</td>
<td>SI</td>
<td>The VAT category percentage MUST be provided if the VAT category code is standard.</td>
<td>string(cbc:ID) != 'S' or cbc:Percent</td>
</tr>
<tr>
<td>SI-V12-INV-R017</td>
<td>SI</td>
<td>A mathematic operator MUST be specified as a code specifying whether the calculation rate is a multiplier or divisor</td>
<td>translate(text(), 'MULTIPLY', 'multiply') = 'multiply' or translate(text(), 'DIVE', 'dive') = 'divide'</td>
</tr>
<tr>
<td>SI-V12-INV-R018</td>
<td>SI</td>
<td>An allowance total MUST be specified when allowances are applicable</td>
<td>not(/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator='false']) or cbc:AllowanceTotalAmount</td>
</tr>
<tr>
<td>SI-V12-INV-R019</td>
<td>SI</td>
<td>A charge total MUST be specified when charges are applicable</td>
<td>not(/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator='true']) or cbc:ChargeTotalAmount</td>
</tr>
<tr>
<td>SI-V12-INV-R020</td>
<td>SI</td>
<td>An item on an invoiceline MUST have a name</td>
<td>cbc:Name</td>
</tr>
<tr>
<td>SI-V12-INV-R021</td>
<td>SI</td>
<td>A country identification code MUST have a list identifier attribute 'ISO3166-1:Alpha2'</td>
<td>@listID='3166-1:Alpha2'</td>
</tr>
<tr>
<td>SI-V12-INV-R022</td>
<td>SI</td>
<td>An additional item property MUST have a name and a value</td>
<td>cbc:Value and cbc:Name</td>
</tr>
<tr>
<td>SI-V12-INV-R023</td>
<td>SI</td>
<td>An invoiceline MUST have a price section</td>
<td>cac:Price</td>
</tr>
<tr>
<td>SI-V12-INV-R024</td>
<td>SI</td>
<td>If payee information is provided then the payee name MUST be specified.</td>
<td>cac:PartyName/cbc:Name</td>
</tr>
<tr>
<td>SI-V12-INV-R025</td>
<td>SI</td>
<td>Transaction currency tax amounts MUST be in the local currency and equal to the tax currency defined on the header level</td>
<td>/ubl:Invoice/cbc:TaxCurrencyCode and string(.) = string(/ubl:Invoice/cbc:TaxCurrencyCode)</td>
</tr>
<tr>
<td>SI-V12-INV-R026</td>
<td>SI</td>
<td>Currency Identifier MUST be stated in the currency as defined on header level</td>
<td>string(.) = string(/ubl:Invoice/cbc:DocumentCurrencyCode)</td>
</tr>
<tr>
<td>SI-V12-INV-R027</td>
<td>SI</td>
<td>If the VAT total amount in an invoice exists then each invoice line item MUST have a VAT category ID.</td>
<td>not(/ubl:Invoice/cac:InvoiceLine/cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID != 'VAT'])</td>
</tr>
<tr>
<td>SI-V12-INV-R028</td>
<td>SI</td>
<td>An allowance percentage MUST NOT be negative.</td>
<td>not(cbc:MultiplierFactorNumeric) or number(cbc:MultiplierFactorNumeric) >=0</td>
</tr>
<tr>
<td>SI-V12-INV-R029</td>
<td>SI</td>
<td>In allowances, both or none of numeric factor and base amount MUST be provided</td>
<td>(cbc:MultiplierFactorNumeric and cbc:BaseAmount) or (not(cbc:MultiplierFactorNumeric) and not(cbc:BaseAmount))</td>
</tr>
<tr>
<td>SI-V12-CODE-R002</td>
<td>SI</td>
<td>A tax scheme identifier MUST be from the UN/ECE 5153 list</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>SI-V12-CODE-R003</td>
<td>SI</td>
<td>Country codes in an invoice MUST be coded using ISO code list 3166-1</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>SI-V12-CODE-R004</td>
<td>SI</td>
<td>Standard item identifiers SHOULD be GTIN.</td>
<td>( ( not(contains(normalize-space(.),' ')) and contains( ' GTIN ',concat(' ',normalize-space(.),' ') ) ) )</td>
</tr>
<tr>
<td>BII2-T10-R025</td>
<td>BII2</td>
<td>Each document level allowance or charge details MUST have an allowance and charge reason text</td>
<td>(cbc:AllowanceChargeReason)</td>
</tr>
<tr>
<td>BII2-T10-R043</td>
<td>BII2</td>
<td>Document level allowances and charges details MUST have allowance and charge VAT category if the invoice has a VAT total amount</td>
<td>((/ubl:Invoice/cac:TaxTotal/*/*/*/cbc:ID = 'VAT') and (cac:TaxCategory/cbc:ID)) or not(/ubl:Invoice/cac:TaxTotal)</td>
</tr>
<tr>
<td>BII2-T10-R001</td>
<td>BII2</td>
<td>An invoice MUST have a customization identifier</td>
<td>(cbc:CustomizationID)</td>
</tr>
<tr>
<td>BII2-T10-R002</td>
<td>BII2</td>
<td>An invoice MUST have a business profile identifier</td>
<td>(cbc:ProfileID)</td>
</tr>
<tr>
<td>BII2-T10-R003</td>
<td>BII2</td>
<td>An invoice MUST have an invoice identifier</td>
<td>(cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R004</td>
<td>BII2</td>
<td>An invoice MUST have an invoice issue date</td>
<td>(cbc:IssueDate)</td>
</tr>
<tr>
<td>BII2-T10-R005</td>
<td>BII2</td>
<td>An invoice MUST specify the currency code for the document</td>
<td>(cbc:DocumentCurrencyCode)</td>
</tr>
<tr>
<td>BII2-T10-R006</td>
<td>BII2</td>
<td>An invoice MUST have a seller name and/or a seller identifier</td>
<td>(cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name) or (cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R008</td>
<td>BII2</td>
<td>An invoice MUST have a buyer name and/or a buyer identifier</td>
<td>(cac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name) or (cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R010</td>
<td>BII2</td>
<td>An invoice MUST have the sum of line amounts</td>
<td>(cac:LegalMonetaryTotal/cbc:LineExtensionAmount)</td>
</tr>
<tr>
<td>BII2-T10-R011</td>
<td>BII2</td>
<td>An invoice MUST have the invoice total without VAT</td>
<td>(cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount)</td>
</tr>
<tr>
<td>BII2-T10-R012</td>
<td>BII2</td>
<td>An invoice MUST have the invoice total with VAT (value of purchase)</td>
<td>(cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount)</td>
</tr>
<tr>
<td>BII2-T10-R013</td>
<td>BII2</td>
<td>An invoice MUST have the amount due for payment</td>
<td>(cac:LegalMonetaryTotal/cbc:PayableAmount)</td>
</tr>
<tr>
<td>BII2-T10-R014</td>
<td>BII2</td>
<td>An invoice MUST have at least one invoice line</td>
<td>(cac:InvoiceLine)</td>
</tr>
<tr>
<td>BII2-T10-R015</td>
<td>BII2</td>
<td>An invoice MUST specify the VAT total amount, if there are VAT line amounts</td>
<td>(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']/cbc:TaxAmount) or not(cac:InvoiceLine/cac:TaxTotal)</td>
</tr>
<tr>
<td>BII2-T10-R026</td>
<td>BII2</td>
<td>An invoice MUST contain VAT category details unless VAT total amount is omitted.</td>
<td>(//cac:TaxScheme/cbc:ID = 'VAT') or not(/ubl:Invoice/cac:TaxTotal/cbc:TaxAmount)</td>
</tr>
<tr>
<td>BII2-T10-R044</td>
<td>BII2</td>
<td>A seller VAT identifier MUST be provided if the invoice has a VAT total amount</td>
<td>(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or not(cac:TaxTotal/*/*/*/cbc:ID = 'VAT')</td>
</tr>
<tr>
<td>BII2-T10-R047</td>
<td>BII2</td>
<td>A buyer VAT identifier MUST be present if the VAT category code is reverse VAT</td>
<td>(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or not(cac:TaxTotal/*/*/cbc:ID = 'AE')</td>
</tr>
<tr>
<td>BII2-T10-R048</td>
<td>BII2</td>
<td>An invoice with a VAT category code of reverse charge MUST NOT contain other VAT categories.</td>
<td>count(child::cac:TaxTotal/*/*/cbc:ID) = count(child::cac:TaxTotal/*/*/cbc:ID[. = 'AE']) or count(child::cac:TaxTotal/*/*/cbc:ID[.
= 'AE']) = 0
</td>
</tr>
<tr>
<td>BII2-T10-R049</td>
<td>BII2</td>
<td>The invoice total without VAT MUST be equal to the VAT category taxable amount if the VAT category code is reverse charge</td>
<td>(xs:decimal(cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID = 'AE']/cbc:TaxableAmount) = xs:decimal(cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount))
or not(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cbc:ID = 'AE'])
</td>
</tr>
<tr>
<td>BII2-T10-R050</td>
<td>BII2</td>
<td>The VAT category tax amount MUST be zero if the VAT category code is reverse charge (since there is only one VAT category
allowed it follows that the invoice tax total for reverse charge invoices is zero)
</td>
<td>(xs:decimal(cac:TaxTotal/cac:TaxSubtotal[cac:TaxCategory/cbc:ID = 'AE']/cbc:TaxAmount) = 0) or not(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cbc:ID
= 'AE'])
</td>
</tr>
<tr>
<td>BII2-T10-R058</td>
<td>BII2</td>
<td>Invoice total without VAT MUST be equal to the sum of VAT category taxable amounts</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>BII2-T10-R017</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoice line identifier</td>
<td>(cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R018</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoiced quantity</td>
<td>(cbc:InvoicedQuantity)</td>
</tr>
<tr>
<td>BII2-T10-R019</td>
<td>BII2</td>
<td>Each invoice line MUST have a quantity unit of measure</td>
<td>(cbc:InvoicedQuantity/@unitCode)</td>
</tr>
<tr>
<td>BII2-T10-R020</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoice line net amount</td>
<td>cbc:LineExtensionAmount</td>
</tr>
<tr>
<td>BII2-T10-R021</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoice line item name and/or the invoice line item identifier</td>
<td>(cac:Item/cbc:Name) or (cac:Item/cac:StandardItemIdentification/cbc:ID) or (cac:Item/cac:SellersItemIdentification/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R032</td>
<td>BII2</td>
<td>A scheme identifier for the invoice line item registered identifier MUST be provided if invoice line item registered identifiers
are used to identify a product.(e.g. GTIN)
</td>
<td>(cac:Item/cac:StandardItemIdentification/cbc:ID/@schemeID) or not(cac:Item/cac:StandardItemIdentification)</td>
</tr>
<tr>
<td>BII2-T10-R033</td>
<td>BII2</td>
<td>A scheme identifier for a invoice line item commodity classification MUST be provided if invoice line item commodity classification
are used to classify an invoice line item (e.g. CPV or UNSPSC)
</td>
<td>(//cac:CommodityClassification/cbc:ItemClassificationCode/@listID) or not(//cac:CommodityClassification)</td>
</tr>
<tr>
<td>BII2-T10-R023</td>
<td>BII2</td>
<td>Each invoice period information MUST have an invoice period start date</td>
<td>(cbc:StartDate)</td>
</tr>
<tr>
<td>BII2-T10-R024</td>
<td>BII2</td>
<td>Each invoice period information MUST have an invoice period end date</td>
<td>(cbc:EndDate)</td>
</tr>
<tr>
<td>BII2-T10-R031</td>
<td>BII2</td>
<td>An invoice period end date MUST be later or equal to an invoice period start date</td>
<td>(cbc:StartDate and cbc:EndDate) and (number(translate(cbc:StartDate,'-','')) <= number(translate(cbc:EndDate,'-','')))</td>
</tr>
<tr>
<td>BII2-T10-R039</td>
<td>BII2</td>
<td>An account identifier MUST be present if payment means type is funds transfer</td>
<td>((normalize-space(cbc:PaymentMeansCode) = '31') and (cac:PayeeFinancialAccount/cbc:ID)) or (string(cbc:PaymentMeansCode) !=
'31')
</td>
</tr>
<tr>
<td>BII2-T10-R040</td>
<td>BII2</td>
<td>A sellers financial institution identifier MUST be provided if the scheme of the account identifier is IBAN and the payment
means is international bank transfer
</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>BII2-T10-R041</td>
<td>BII2</td>
<td>A payment means MUST specify the payment means type</td>
<td>(cbc:PaymentMeansCode)</td>
</tr>
<tr>
<td>BII2-T10-R042</td>
<td>BII2</td>
<td>A sellers financial institution identifier scheme MUST be BIC if the scheme of the account identifier is IBAN and the payment
means type is international account transfer
</td>
<td>(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:ID/@schemeID='BIC') and (cac:PayeeFinancialAccount/cbc:ID/@schemeID
= 'IBAN') or not(cac:PayeeFinancialAccount/cbc:ID/@schemeID = 'IBAN')
</td>
</tr>
<tr>
<td>BII2-T10-R051</td>
<td>BII2</td>
<td>Sum of line amounts MUST equal the invoice line net amounts</td>
<td>(xs:decimal(cbc:LineExtensionAmount)) = (round(xs:decimal(sum(//cac:InvoiceLine/cbc:LineExtensionAmount)) * 10 * 10) div 100)</td>
</tr>
<tr>
<td>BII2-T10-R052</td>
<td>BII2</td>
<td>An invoice total without VAT MUST equal the sum of line amounts plus the sum of charges on document level minus the sum of
allowances on document level
</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>BII2-T10-R053</td>
<td>BII2</td>
<td>An invoice total with VAT MUST equal the invoice total without VAT plus the VAT total amount and the rounding of invoice total</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>BII2-T10-R054</td>
<td>BII2</td>
<td>The sum of allowances at document level MUST be equal to the sum of document level allowance amounts</td>
<td>(xs:decimal(cbc:AllowanceTotalAmount)) = (round(xs:decimal(sum(/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator="false"]/cbc:Amount))
* 10 * 10) div 100) or not(cbc:AllowanceTotalAmount)
</td>
</tr>
<tr>
<td>BII2-T10-R055</td>
<td>BII2</td>
<td>The sum of charges at document level MUST be equal to the sum of document level charge amounts</td>
<td>(xs:decimal(cbc:ChargeTotalAmount)) = (round(xs:decimal(sum(/ubl:Invoice/cac:AllowanceCharge[cbc:ChargeIndicator="true"]/cbc:Amount))
* 10 * 10) div 100) or not(cbc:ChargeTotalAmount)
</td>
</tr>
<tr>
<td>BII2-T10-R056</td>
<td>BII2</td>
<td>Amount due for payment MUST be equal to the invoice total amount with VAT minus the paid amounts</td>
<td>((cbc:PrepaidAmount) and ((xs:decimal(cbc:PayableAmount)) = (round((xs:decimal(cbc:TaxInclusiveAmount) - xs:decimal(cbc:PrepaidAmount))
* 10 * 10) div 100))) or (xs:decimal(cbc:PayableAmount) = xs:decimal(cbc:TaxInclusiveAmount))
</td>
</tr>
<tr>
<td>BII2-T10-R027</td>
<td>BII2</td>
<td>Each VAT category details MUST have a VAT category taxable amount</td>
<td>(cbc:TaxableAmount)</td>
</tr>
<tr>
<td>BII2-T10-R028</td>
<td>BII2</td>
<td>Each VAT category details MUST have a VAT category tax amount</td>
<td>(cbc:TaxAmount)</td>
</tr>
<tr>
<td>BII2-T10-R029</td>
<td>BII2</td>
<td>Every VAT category details MUST be defined through a VAT category code</td>
<td>(cac:TaxCategory/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R030</td>
<td>BII2</td>
<td>The VAT category percentage MUST be provided if the VAT category code is standard.</td>
<td>(cac:TaxCategory/cbc:Percent) or not(normalize-space(cac:TaxCategory/cbc:ID) = 'S')</td>
</tr>
<tr>
<td>CL-T10-R001</td>
<td>CL</td>
<td>An Invoice MUST be coded with the InvoiceTypeCode code list UNCL D1001 BII2 subset</td>
<td>( ( not(contains(normalize-space(.),' ')) and contains( ' 380 393 384 ',concat(' ',normalize-space(.),' ') ) ) )</td>
</tr>
<tr>
<td>CL-T10-R002</td>
<td>CL</td>
<td>DocumentCurrencyCode MUST be coded using ISO code list 4217</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>CL-T10-R003</td>
<td>CL</td>
<td>currencyID MUST be coded using ISO code list 4217</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>CL-T10-R004</td>
<td>CL</td>
<td>Country codes in an invoice MUST be coded using ISO code list 3166-1</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>CL-T10-R006</td>
<td>CL</td>
<td>Payment means in an invoice MUST be coded using UNCL 4461 BII2 subset</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>CL-T10-R007</td>
<td>CL</td>
<td>Invoice tax categories MUST be coded using UNCL 5305 code list BII2 subset</td>
<td>( ( not(contains(normalize-space(.),' ')) and contains( ' AE E S Z AA H ',concat(' ',normalize-space(.),' ') ) ) )</td>
</tr>
<tr>
<td>CL-T10-R008</td>
<td>CL</td>
<td>For Mime code in attribute use MIMEMediaType.</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>EUGEN-T10-R012</td>
<td>EUGEN</td>
<td>An allowance percentage MUST NOT be negative.</td>
<td>not(cbc:MultiplierFactorNumeric) or number(cbc:MultiplierFactorNumeric) >=0</td>
</tr>
<tr>
<td>EUGEN-T10-R029</td>
<td>EUGEN</td>
<td>An allowance charge reason code MUST have a list identifier attribute 'UNCL4465'.</td>
<td>@listID = 'UNCL4465'</td>
</tr>
<tr>
<td>EUGEN-T10-R027</td>
<td>EUGEN</td>
<td>A country identification code MUST have a list identifier attribute 'ISO3166-1:Alpha2'.</td>
<td>@listID = 'ISO3166-1:Alpha2'</td>
</tr>
<tr>
<td>EUGEN-T10-R034</td>
<td>EUGEN</td>
<td>An delivery location identifier MUST have a scheme identifier attribute.</td>
<td>@schemeID</td>
</tr>
<tr>
<td>EUGEN-T10-R033</td>
<td>EUGEN</td>
<td>A document type code MUST have a list identifier attribute 'UNCL1001'.</td>
<td>@listID = 'UNCL1001'</td>
</tr>
<tr>
<td>EUGEN-T10-R023</td>
<td>EUGEN</td>
<td>An endpoint identifier MUST have a scheme identifier attribute.</td>
<td>@schemeID</td>
</tr>
<tr>
<td>EUGEN-T10-R031</td>
<td>EUGEN</td>
<td>A financial account identifier MUST have a scheme identifier attribute.</td>
<td>@schemeID</td>
</tr>
<tr>
<td>EUGEN-T10-R044</td>
<td>EUGEN</td>
<td>If the tax currency code is different from the document currency code, the tax exchange rate MUST be provided</td>
<td>not(//cbc:TaxCurrencyCode) or (//cac:TaxExchangeRate)</td>
</tr>
<tr>
<td>EUGEN-T10-R025</td>
<td>EUGEN</td>
<td>An invoice type code MUST have a list identifier attribute 'UNCL1001'.</td>
<td>@listID = 'UNCL1001'</td>
</tr>
<tr>
<td>EUGEN-T10-R024</td>
<td>EUGEN</td>
<td>A party identifier MUST have a scheme identifier attribute.</td>
<td>@schemeID</td>
</tr>
<tr>
<td>EUGEN-T10-R028</td>
<td>EUGEN</td>
<td>A payment means code MUST have a list identifier attribute 'UNCL4461'.</td>
<td>@listID = 'UNCL4461'</td>
</tr>
<tr>
<td>EUGEN-T10-R008</td>
<td>EUGEN</td>
<td>For each tax subcategory the category ID and the applicable tax percentage MUST be provided.</td>
<td>(parent::cac:AllowanceCharge) or (cbc:ID and cbc:Percent) or (cbc:ID = 'AE')</td>
</tr>
<tr>
<td>EUGEN-T10-R032</td>
<td>EUGEN</td>
<td>A tax category identifier MUST have a scheme identifier attribute 'UNCL5305'.</td>
<td>@schemeID = 'UNCL5305'</td>
</tr>
<tr>
<td>EUGEN-T10-R045</td>
<td>EUGEN</td>
<td>Tax exchange rate MUST specify the calculation rate and the operator code.</td>
<td>(cbc:CalculationRate) and (cbc:MathematicOperatorCode)</td>
</tr>
<tr>
<td>EUGEN-T10-R043</td>
<td>EUGEN</td>
<td>The total tax amount MUST equal the sum of tax amounts per category.</td>
<td>(round(xs:decimal(child::cbc:TaxAmount) * 10 * 10) div 100= round(xs:decimal(sum(cac:TaxSubtotal/cbc:TaxAmount) * 10 * 10))
div 100)
</td>
</tr>
<tr>
<td>EUGEN-T10-R042</td>
<td>EUGEN</td>
<td>The tax amount per category MUST be the taxable amount multiplied by the category percentage.</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>EUGEN-T10-R046</td>
<td>EUGEN</td>
<td>If the tax currency code is different from the document currency code, each tax subtotal has to include the tax amount in
both currencies
</td>
<td>not(/ubl:Invoice/cbc:TaxCurrencyCode) or (cbc:TaxAmount and cbc:TransactionCurrencyTaxAmount)</td>
</tr>
<tr>
<td>OP-T10-R001</td>
<td>OP</td>
<td>Contract document type code MUST be coded using UNCL 1001 list BII2 subset.</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R002</td>
<td>OP</td>
<td>An Endpoint Identifier Scheme MUST be from the list of PEPPOL Party Identifiers described in the "PEPPOL Policy for using
Identifiers".
</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R003</td>
<td>OP</td>
<td>A Party Identifier Scheme MUST be from the list of PEPPOL Party Identifiers described in the "PEPPOL Policy for using Identifiers".</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R004</td>
<td>OP</td>
<td>A payee account identifier scheme MUST be from the Account ID PEPPOL code list</td>
<td>( ( not(contains(normalize-space(.),' ')) and contains( ' IBAN LOCAL ',concat(' ',normalize-space(.),' ') ) ) )</td>
</tr>
<tr>
<td>OP-T10-R006</td>
<td>OP</td>
<td>Unit code MUST be coded according to the UN/ECE Recommendation 20</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R008</td>
<td>OP</td>
<td>A Party Company Identifier Scheme MUST be from the list of PEPPOL Party Identifiers described in the "PEPPOL Policy for using
Identifiers".
</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R009</td>
<td>OP</td>
<td>TaxCurrencyCode MUST be coded using ISO code list 4217</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R010</td>
<td>OP</td>
<td>SourceCurrencyCode MUST be coded using ISO code list 4217</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>OP-T10-R011</td>
<td>OP</td>
<td>TargetCurrencyCode MUST be coded using ISO code list 4217</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>BII2-T10-R025</td>
<td>BII2</td>
<td>Each document level allowance or charge details MUST have an allowance and charge reason text</td>
<td>cbc:AllowanceChargeReason or cbc:AllowanceChargeReasonCode</td>
</tr>
<tr>
<td>BII2-T10-R043</td>
<td>BII2</td>
<td>Document level allowances and charges details MUST have allowance and charge VAT category if the invoice has a VAT total amount</td>
<td>((/ubl:Invoice/cac:TaxTotal/*/*/*/cbc:ID = 'VAT') and (//cac:TaxCategory/cbc:ID)) or not(/ubl:Invoice/cac:TaxTotal)</td>
</tr>
<tr>
<td>BII2-T10-R001</td>
<td>BII2</td>
<td>An invoice MUST have a customization identifier</td>
<td>(cbc:CustomizationID)</td>
</tr>
<tr>
<td>BII2-T10-R002</td>
<td>BII2</td>
<td>An invoice MUST have a business profile identifier</td>
<td>(cbc:ProfileID)</td>
</tr>
<tr>
<td>BII2-T10-R003</td>
<td>BII2</td>
<td>An invoice MUST have an invoice identifier</td>
<td>(cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R004</td>
<td>BII2</td>
<td>An invoice MUST have an invoice issue date</td>
<td>(cbc:IssueDate)</td>
</tr>
<tr>
<td>BII2-T10-R005</td>
<td>BII2</td>
<td>An invoice MUST specify the currency code for the document</td>
<td>(cbc:DocumentCurrencyCode)</td>
</tr>
<tr>
<td>BII2-T10-R006</td>
<td>BII2</td>
<td>An invoice MUST have a seller name and/or a seller identifier</td>
<td>(cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name) or (cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R008</td>
<td>BII2</td>
<td>An invoice MUST have a buyer name and/or a buyer identifier</td>
<td>(cac:AccountingCustomerParty/cac:Party/cac:PartyName/cbc:Name) or (cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R010</td>
<td>BII2</td>
<td>An invoice MUST have the sum of line amounts</td>
<td>(cac:LegalMonetaryTotal/cbc:LineExtensionAmount)</td>
</tr>
<tr>
<td>BII2-T10-R011</td>
<td>BII2</td>
<td>An invoice MUST have the invoice total without VAT</td>
<td>(cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount)</td>
</tr>
<tr>
<td>BII2-T10-R012</td>
<td>BII2</td>
<td>An invoice MUST have the invoice total with VAT (value of purchase)</td>
<td>(cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount)</td>
</tr>
<tr>
<td>BII2-T10-R013</td>
<td>BII2</td>
<td>An invoice MUST have the amount due for payment</td>
<td>(cac:LegalMonetaryTotal/cbc:PayableAmount)</td>
</tr>
<tr>
<td>BII2-T10-R014</td>
<td>BII2</td>
<td>An invoice MUST have at least one invoice line</td>
<td>(cac:InvoiceLine)</td>
</tr>
<tr>
<td>BII2-T10-R015</td>
<td>BII2</td>
<td>An invoice MUST specify the VAT total amount, if there are VAT line amounts</td>
<td>(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cac:TaxScheme/cbc:ID = 'VAT']/cbc:TaxAmount) or not(cac:InvoiceLine/cac:TaxTotal)</td>
</tr>
<tr>
<td>BII2-T10-R026</td>
<td>BII2</td>
<td>An invoice MUST contain VAT category details unless VAT total amount is omitted.</td>
<td>(//cac:TaxScheme/cbc:ID = 'VAT') or not(/ubl:Invoice/cac:TaxTotal/cbc:TaxAmount)</td>
</tr>
<tr>
<td>BII2-T10-R044</td>
<td>BII2</td>
<td>A seller VAT identifier MUST be provided if the invoice has a VAT total amount</td>
<td>(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or not(cac:TaxTotal/*/*/*/cbc:ID = 'VAT')</td>
</tr>
<tr>
<td>BII2-T10-R047</td>
<td>BII2</td>
<td>A buyer VAT identifier MUST be present if the VAT category code is reverse VAT</td>
<td>(cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or not(cac:TaxTotal/*/*/cbc:ID = 'AE')</td>
</tr>
<tr>
<td>BII2-T10-R049</td>
<td>BII2</td>
<td>The invoice total without VAT MUST be equal to the VAT category taxable amount if the VAT category code is reverse charge</td>
<td>(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cbc:ID = 'AE']/cbc:TaxableAmount = (cac:LegalMonetaryTotal/cbc:TaxExclusiveAmount))
or not(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cbc:ID = 'AE']/cbc:TaxableAmount)
</td>
</tr>
<tr>
<td>BII2-T10-R050</td>
<td>BII2</td>
<td>The VAT category tax amount MUST be zero if the VAT category code is reverse charge (since there is only one VAT category
allowed it follows that the invoice tax total for reverse charge invoices is zero)
</td>
<td>(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cbc:ID = 'AE']/cbc:TaxAmount = 0) or not(cac:TaxTotal[cac:TaxSubtotal/cac:TaxCategory/cbc:ID
= 'AE']/cbc:TaxAmount)
</td>
</tr>
<tr>
<td>BII2-T10-R048</td>
<td>BII2</td>
<td>An invoice with a VAT category code of reverse charge MUST NOT contain other VAT categories.</td>
<td>count(child::cac:TaxTotal/*/*/cbc:ID) = count(child::cac:TaxTotal/*/*/cbc:ID[. = 'AE']) or count(child::cac:TaxTotal/*/*/cbc:ID[.
= 'AE']) = 0
</td>
</tr>
<tr>
<td>BII2-T10-R017</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoice line identifier</td>
<td>(cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R018</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoiced quantity</td>
<td>(cbc:InvoicedQuantity)</td>
</tr>
<tr>
<td>BII2-T10-R019</td>
<td>BII2</td>
<td>Each invoice line MUST have a quantity unit of measure</td>
<td>(cbc:InvoicedQuantity/@unitCode)</td>
</tr>
<tr>
<td>BII2-T10-R020</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoice line net amount</td>
<td>cbc:LineExtensionAmount</td>
</tr>
<tr>
<td>BII2-T10-R021</td>
<td>BII2</td>
<td>Each invoice line MUST have an invoice line item name and/or the invoice line item identifier</td>
<td>(cac:Item/cbc:Name) or (cac:Item/cac:StandardItemIdentification/cbc:ID) or (cac:Item/cac:SellersItemIdentification/cbc:ID)</td>
</tr>
<tr>
<td>BII2-T10-R032</td>
<td>BII2</td>
<td>A scheme identifier for the invoice line item registered identifier MUST be provided if invoice line item registered identifiers
are used to identify a product.(e.g. GTIN)
</td>
<td>(cac:StandardItemIdentification/cbc:ID/@schemeID) or not(cac:StandardItemIdentification)</td>
</tr>
<tr>
<td>BII2-T10-R033</td>
<td>BII2</td>
<td>A scheme identifier for a invoice line item commodity classification MUST be provided if invoice line item commodity classification
are used to classify an invoice line item (e.g. CPV or UNSPSC)
</td>
<td>cbc:ItemClassificationCode/@listID</td>
</tr>
<tr>
<td>BII2-T10-R023</td>
<td>BII2</td>
<td>Each invoice period information MUST have an invoice period start date</td>
<td>(cbc:StartDate)</td>
</tr>
<tr>
<td>BII2-T10-R024</td>
<td>BII2</td>
<td>Each invoice period information MUST have an invoice period end date</td>
<td>(cbc:EndDate)</td>
</tr>
<tr>
<td>BII2-T10-R031</td>
<td>BII2</td>
<td>An invoice period end date MUST be later or equal to an invoice period start date</td>
<td>(cbc:StartDate and cbc:EndDate) and (number(translate(cbc:StartDate,'-','')) <= number(translate(cbc:EndDate,'-','')))</td>
</tr>
<tr>
<td>BII2-T10-R039</td>
<td>BII2</td>
<td>An account identifier MUST be present if payment means type is funds transfer</td>
<td>((cbc:PaymentMeansCode = '31') and (cac:PayeeFinancialAccount/cbc:ID)) or (string(cbc:PaymentMeansCode) != '31')</td>
</tr>
<tr>
<td>BII2-T10-R040</td>
<td>BII2</td>
<td>A sellers financial institution identifier MUST be provided if the scheme of the account identifier is IBAN and the payment
means is international bank transfer
</td>
<td>Long XPath used, check the schematron source</td>
</tr>
<tr>
<td>BII2-T10-R041</td>
<td>BII2</td>
<td>A payment means MUST specify the payment means type</td>
<td>(cbc:PaymentMeansCode)</td>
</tr>
<tr>
<td>BII2-T10-R042</td>
<td>BII2</td>
<td>A sellers financial institution identifier scheme MUST be BIC if the scheme of the account identifier is IBAN and the payment
means type is international account transfer
</td>
<td>(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cac:FinancialInstitution/cbc:ID/@schemeID='BIC') and (cac:PayeeFinancialAccount/cbc:ID/@schemeID
= 'IBAN') or not(cac:PayeeFinancialAccount/cbc:ID/@schemeID = 'IBAN')
</td>
</tr>
<tr>
<td>BII2-T10-R051</td>
<td>BII2</td>
<td>Sum of line amounts MUST equal the invoice line net amounts</td>
<td>number(cbc:LineExtensionAmount) = number(round(sum(//cac:InvoiceLine/cbc:LineExtensionAmount) * 10 * 10) div 100)</td>