From 8466d0cd13a152818b59d77c49c243c0c3318fb9 Mon Sep 17 00:00:00 2001 From: Georg Date: Fri, 25 Oct 2024 12:51:18 +0000 Subject: [PATCH] Adding unit test to SelfBilling --- .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R042.xml | 139 ++++++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R043.xml | 117 +++++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R044.xml | 102 ++++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R045.xml | 101 ++++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R046.xml | 78 +++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R047.xml | 103 ++++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R048.xml | 37 ++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R049.xml | 62 ++++ .../unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R050.xml | 49 +++ .../PEPPOL-EN16931-CL001.xml | 36 ++ .../PEPPOL-EN16931-CL002.xml | 43 +++ .../PEPPOL-EN16931-CL003.xml | 43 +++ .../PEPPOL-EN16931-CL006.xml | 47 +++ .../PEPPOL-EN16931-CL007.xml | 63 ++++ .../PEPPOL-EN16931-CL008.xml | 98 ++++++ .../PEPPOL-EN16931-F001.xml | 41 +++ .../PEPPOL-EN16931-P0104.xml | 84 +++++ .../PEPPOL-EN16931-P0105.xml | 84 +++++ .../PEPPOL-EN16931-P0106.xml | 84 +++++ .../PEPPOL-EN16931-P0107.xml | 84 +++++ .../PEPPOL-EN16931-P0108.xml | 84 +++++ .../PEPPOL-EN16931-P0109.xml | 84 +++++ .../PEPPOL-EN16931-P0110.xml | 84 +++++ .../PEPPOL-EN16931-P0111.xml | 84 +++++ .../PEPPOL-EN16931-R001.xml | 31 ++ .../PEPPOL-EN16931-R002.xml | 44 +++ .../PEPPOL-EN16931-R003.xml | 65 ++++ .../PEPPOL-EN16931-R004.xml | 43 +++ .../PEPPOL-EN16931-R005.xml | 58 ++++ .../PEPPOL-EN16931-R007.xml | 31 ++ .../PEPPOL-EN16931-R010.xml | 39 +++ .../PEPPOL-EN16931-R020.xml | 39 +++ .../PEPPOL-EN16931-R040.xml | 176 ++++++++++ .../PEPPOL-EN16931-R041.xml | 150 +++++++++ .../PEPPOL-EN16931-R042.xml | 150 +++++++++ .../PEPPOL-EN16931-R043.xml | 128 +++++++ .../PEPPOL-EN16931-R044.xml | 91 +++++ .../PEPPOL-EN16931-R046.xml | 87 +++++ .../PEPPOL-EN16931-R051.xml | 63 ++++ .../PEPPOL-EN16931-R053.xml | 56 +++ .../PEPPOL-EN16931-R054.xml | 74 ++++ .../PEPPOL-EN16931-R055.xml | 48 +++ .../PEPPOL-EN16931-R061.xml | 41 +++ .../PEPPOL-EN16931-R080.xml | 83 +++++ .../PEPPOL-EN16931-R100.xml | 86 +++++ .../PEPPOL-EN16931-R101.xml | 42 +++ .../PEPPOL-EN16931-R110.xml | 127 +++++++ .../PEPPOL-EN16931-R111.xml | 127 +++++++ .../PEPPOL-EN16931-R120.xml | 318 ++++++++++++++++++ .../PEPPOL-EN16931-R121.xml | 71 ++++ .../PEPPOL-EN16931-R130.xml | 61 ++++ .../PEPPOL-EN16931-R131.xml | 110 ++++++ 52 files changed, 4270 insertions(+) create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R042.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R043.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R044.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R045.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R046.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R047.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R048.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R049.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R050.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL001.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL002.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL003.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL006.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL007.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL008.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-F001.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0104.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0105.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0106.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0107.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0108.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0109.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0110.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0111.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R001.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R002.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R003.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R004.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R005.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R007.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R010.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R020.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R040.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R041.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R042.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R043.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R044.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R046.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R051.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R053.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R054.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R055.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R061.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R080.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R100.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R101.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R110.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R111.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R120.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R121.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R130.xml create mode 100644 rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R131.xml diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R042.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R042.xml new file mode 100644 index 0000000..eb32e4a --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R042.xml @@ -0,0 +1,139 @@ + + + + Invalid Danish organization number (CVR) provided. + PEPPOL-COMMON-R042 + + + + + PEPPOL-COMMON-R042 + + + + + + Customer A A/S + DK12345678 + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Supplier A/S + DK12345678 + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Customer A A/S + DK12345678 + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Supplier A/S + DK12345678 + + + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Customer A A/S + DK:1234567 + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Customer A A/S + DK-12345678 + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Supplier A/S + 12345678 + + + + + + + + + PEPPOL-COMMON-R042 + + + + + + Supplier A/S + DK012345678 + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R043.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R043.xml new file mode 100644 index 0000000..b38487e --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R043.xml @@ -0,0 +1,117 @@ + + + + Invalid Beligan organization number (0208) provided. + PEPPOL-COMMON-R043 + + + + + PEPPOL-COMMON-R043 + + + + + + Duvel + 0739484052 + + + + + + + + + PEPPOL-COMMON-R043 + + + + + 0739484052 + + + + + + + + PEPPOL-COMMON-R043 + + + + + 0739484052 + + + + + + + + PEPPOL-COMMON-R043 + + + + + + Duvel + 0739484052 + + + + + + + + + + PEPPOL-COMMON-R043 + + + + + + Duvel + 07399999484052 + + + + + + + + + PEPPOL-COMMON-R043 + + + + + + Duvel + 0739484059 + + + + + + + + + PEPPOL-COMMON-R043 + + + + + + Duvel + ABC + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R044.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R044.xml new file mode 100644 index 0000000..905dd23 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R044.xml @@ -0,0 +1,102 @@ + + + + ICD (0201) provided. + PEPPOL-COMMON-R044 + + + + + PEPPOL-COMMON-R044 + + + + + + Duvel + F7VRDL + + + + + + + + + PEPPOL-COMMON-R044 + + + + + F7VRDL + + + + + + + + PEPPOL-COMMON-R044 + + + + + F7VRDL + + + + + + + + PEPPOL-COMMON-R044 + + + + + + Duvel + F7VRDL + + + + + + + + + + PEPPOL-COMMON-R044 + + + + + + Duvel + F7VRDLF7VRDLF7VRDL + + + + + + + + + PEPPOL-COMMON-R044 + + + + + + Duvel + 0739484059 + + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R045.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R045.xml new file mode 100644 index 0000000..388f75e --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R045.xml @@ -0,0 +1,101 @@ + + + + ICD (0210) provided. + PEPPOL-COMMON-R045 + + + + + PEPPOL-COMMON-R045 + + + + + + Duvel + 97735020584 + + + + + + + + + PEPPOL-COMMON-R045 + + + + + 97735020584 + + + + + + + + PEPPOL-COMMON-R045 + + + + + 97735020584 + + + + + + + + PEPPOL-COMMON-R045 + + + + + + Duvel + 97735020584 + + + + + + + + + + PEPPOL-COMMON-R045 + + + + + + Duvel + 9773502058497735020584 + + + + + + + + + PEPPOL-COMMON-R045 + + + + + + Duvel + ABC + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R046.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R046.xml new file mode 100644 index 0000000..e23c990 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R046.xml @@ -0,0 +1,78 @@ + + + + ICD (9907) provided. + PEPPOL-COMMON-R046 + + + + + + PEPPOL-COMMON-R046 + + + + + 97735020584 + + + + + + + + PEPPOL-COMMON-R046 + + + + + 97735020584 + + + + + + + + PEPPOL-COMMON-R046 + + + + + 97735020584 + + + + + + + + + + PEPPOL-COMMON-R046 + + + + + 9773502058497735020584 + + + + + + + + PEPPOL-COMMON-R046 + + + + + ABC + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R047.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R047.xml new file mode 100644 index 0000000..8af26a0 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R047.xml @@ -0,0 +1,103 @@ + + + + ICD (0211) provided. + PEPPOL-COMMON-R047 + + + + + PEPPOL-COMMON-R047 + + + + + + Duvel + IT02985591201 + + + + + + + + + PEPPOL-COMMON-R047 + + + + + IT02985591201 + + + + + + + + PEPPOL-COMMON-R047 + + + + + IT02985591201 + + + + + + + + PEPPOL-COMMON-R047 + + + + + + Duvel + IT02985591201 + + + + + + + + + + PEPPOL-COMMON-R047 + + + + + + Duvel + IT1 + + + + + + + + + PEPPOL-COMMON-R047 + + + + + + Duvel + ITABC + + + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R048.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R048.xml new file mode 100644 index 0000000..87ee279 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R048.xml @@ -0,0 +1,37 @@ + + + + ICD (9906) provided. + PEPPOL-COMMON-R048 + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R049.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R049.xml new file mode 100644 index 0000000..0a0b5a9 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R049.xml @@ -0,0 +1,62 @@ + + + + ICD (0007) provided. + PEPPOL-COMMON-R049 + + + + + + PEPPOL-COMMON-R049 + + + + + 2021005489 + + + + + + + + + PEPPOL-COMMON-R049 + + + + + 556622-1100 + + + + + + + + PEPPOL-COMMON-R049 + + + + + SE5566221100 + + + + + + + + PEPPOL-COMMON-R049 + + + + + 2021005480 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R050.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R050.xml new file mode 100644 index 0000000..f829912 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-COMMON-R050.xml @@ -0,0 +1,49 @@ + + + + ICD (0151) provided. + PEPPOL-COMMON-R050 + + + + + + PEPPOL-COMMON-R050 + + + + + 51824753556 + + + + + + + + + PEPPOL-COMMON-R050 + + + + + ERR51824753556 + + + + + + + + PEPPOL-COMMON-R050 + + + + + 51824753550 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL001.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL001.xml new file mode 100644 index 0000000..291e7e4 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL001.xml @@ -0,0 +1,36 @@ + + + + Correct use of mime codes. + PEPPOL-EN16931-CL001 + + + + PEPPOL-EN16931-CL001 + + + + + + + + + + + + + + + PEPPOL-EN16931-CL001 + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL002.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL002.xml new file mode 100644 index 0000000..03430e3 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL002.xml @@ -0,0 +1,43 @@ + + + + Correct use of allowance codes. + PEPPOL-EN16931-CL002 + + + + PEPPOL-EN16931-CL002 + + + + + + false + 60 + 70 + 100 + + + + + + + PEPPOL-EN16931-CL002 + + + + + + false + 40 + 80 + 110 + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL003.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL003.xml new file mode 100644 index 0000000..3f51d6f --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL003.xml @@ -0,0 +1,43 @@ + + + + Correct use of charge codes. + PEPPOL-EN16931-CL003 + + + + PEPPOL-EN16931-CL003 + + + + + + true + HAA + SU + AAA + + + + + + + PEPPOL-EN16931-CL003 + + + + + + true + AAB + ADS + TOS + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL006.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL006.xml new file mode 100644 index 0000000..f96134d --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL006.xml @@ -0,0 +1,47 @@ + + + + Correct use of invoice periode description code. + PEPPOL-EN16931-CL006 + + + + PEPPOL-EN16931-CL006 + + + + + 3 + + + 35 + + + 432 + + + + + + + PEPPOL-EN16931-CL006 + + + + + ZZZ + + + 50 + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL007.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL007.xml new file mode 100644 index 0000000..6266177 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL007.xml @@ -0,0 +1,63 @@ + + + + Verify currency is provided. + PEPPOL-EN16931-CL007 + + + + PEPPOL-EN16931-CL007 + + + + EUR + + + 10 + + + + + 100 + + + + 100 + + 100 + + + + + + + + PEPPOL-EN16931-CL007 + + + + EUS + + + 10 + + + + + 100 + + + + 100 + + 100 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL008.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL008.xml new file mode 100644 index 0000000..070233a --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-CL008.xml @@ -0,0 +1,98 @@ + + + + Verify that EndpointID scheme identifier is from the eaid list + PEPPOL-EN16931-CL008 + + + + PEPPOL-EN16931-CL008 + + + + + + + + + + + + + + + + + + + + PEPPOL-EN16931-CL008 + + + + + + + + + + + + + + + + + + + + + PEPPOL-EN16931-CL008 + + + + + + + + + + + + + + + + + + + + + PEPPOL-EN16931-CL008 + + + + + + + + + + + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-F001.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-F001.xml new file mode 100644 index 0000000..5778fda --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-F001.xml @@ -0,0 +1,41 @@ + + + + Verify formatting of date elements. + PEPPOL-EN16931-F001 + + + + PEPPOL-EN16931-F001 + + + + 2017-01-01 + 2018-01-01 + 2017-09-30 + 2019-01-01 + 2018-05-01 + 2018-10-01 + + + + + + PEPPOL-EN16931-F001 + + + + 2017-01-00 + 2018-01-01T20:00:00 + 2017-09-31 + 2019-00-01 + 2018-05-32 + 18-10-01 + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0104.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0104.xml new file mode 100644 index 0000000..6a6bd63 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0104.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0104 + + + + PEPPOL-EN16931-P0104 + + + + + 0.00 + + 1200.00 + 0.00 + + G + VATEX-EU-G + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0104 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-G + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0104 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-G + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0105.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0105.xml new file mode 100644 index 0000000..a9df230 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0105.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0105 + + + + PEPPOL-EN16931-P0105 + + + + + 0.00 + + 1200.00 + 0.00 + + O + VATEX-EU-O + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0105 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-O + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0105 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-O + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0106.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0106.xml new file mode 100644 index 0000000..3f56108 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0106.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0106 + + + + PEPPOL-EN16931-P0106 + + + + + 0.00 + + 1200.00 + 0.00 + + K + VATEX-EU-IC + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0106 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-IC + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0106 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-IC + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0107.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0107.xml new file mode 100644 index 0000000..f9be980 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0107.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0107 + + + + PEPPOL-EN16931-P0107 + + + + + 0.00 + + 1200.00 + 0.00 + + AE + VATEX-EU-AE + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0107 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-AE + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0107 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-AE + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0108.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0108.xml new file mode 100644 index 0000000..bd33cc9 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0108.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0108 + + + + PEPPOL-EN16931-P0108 + + + + + 0.00 + + 1200.00 + 0.00 + + E + VATEX-EU-D + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0108 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-D + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0108 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-D + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0109.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0109.xml new file mode 100644 index 0000000..3cf0748 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0109.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0109 + + + + PEPPOL-EN16931-P0109 + + + + + 0.00 + + 1200.00 + 0.00 + + E + VATEX-EU-F + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0109 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-F + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0109 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-F + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0110.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0110.xml new file mode 100644 index 0000000..12adba4 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0110.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0110 + + + + PEPPOL-EN16931-P0110 + + + + + 0.00 + + 1200.00 + 0.00 + + E + VATEX-EU-I + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0110 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-I + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0110 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-I + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0111.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0111.xml new file mode 100644 index 0000000..cde0f88 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-P0111.xml @@ -0,0 +1,84 @@ + + + + Verify tax exemption reason codes in correspondance with category code. + PEPPOL-EN16931-P0111 + + + + PEPPOL-EN16931-P0111 + + + + + 0.00 + + 1200.00 + 0.00 + + E + VATEX-EU-J + 0 + + VAT + + + + + + + + + + PEPPOL-EN16931-P0111 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-J + 0 + + VAT + + + + + + + + + PEPPOL-EN16931-P0111 + + + + + 0.00 + + 1200.00 + 0.00 + + S + VATEX-EU-J + 0 + + VAT + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R001.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R001.xml new file mode 100644 index 0000000..7ff2c34 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R001.xml @@ -0,0 +1,31 @@ + + + + Verify existence of ProfileID. + PEPPOL-EN16931-R001 + + + + PEPPOL-EN16931-R001 + + + + + + + + + + PEPPOL-EN16931-R001 + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R002.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R002.xml new file mode 100644 index 0000000..37c9387 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R002.xml @@ -0,0 +1,44 @@ + + + + Verify existence of not more than a single Note element on line level. + PEPPOL-EN16931-R002 + + + + PEPPOL-EN16931-R002 + + + + + + + + + + PEPPOL-EN16931-R002 + + + + + + + + + + PEPPOL-EN16931-R002 + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R003.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R003.xml new file mode 100644 index 0000000..196a05d --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R003.xml @@ -0,0 +1,65 @@ + + + + Verify existence of buyer reference or purchase order reference. + PEPPOL-EN16931-R003 + + + + PEPPOL-EN16931-R003 + + + + + + + + + + + + + + PEPPOL-EN16931-R003 + + + + + + + + + + + + PEPPOL-EN16931-R003 + + + + + + + + + + PEPPOL-EN16931-R003 + + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R004.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R004.xml new file mode 100644 index 0000000..bcc298f --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R004.xml @@ -0,0 +1,43 @@ + + + + Verify customization identifier. + PEPPOL-EN16931-R004 + + + + PEPPOL-EN16931-R004 + + + + urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 + + + + + + PEPPOL-EN16931-R004 + + + + urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0#compliant#urn:www.difi.no:ehf:ver3.0 + + + + + + PEPPOL-EN16931-R004 + + + + urn:cen.eu:en16931:2017#compliant#compliant#urn:www.difi.no:ehf:ver3.0 + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R005.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R005.xml new file mode 100644 index 0000000..16bc31a --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R005.xml @@ -0,0 +1,58 @@ + + + + Verify correct use of tax currency code. + PEPPOL-EN16931-R005 + + + + PEPPOL-EN16931-R005 + + + + NOK + SEK + + + + + + PEPPOL-EN16931-R005 + + + + NOK + + + + + + PEPPOL-EN16931-R005 + + + + NOK + NOK + + + + + + PEPPOL-EN16931-R005 + + + + SEK + SEK + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R007.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R007.xml new file mode 100644 index 0000000..e050c02 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R007.xml @@ -0,0 +1,31 @@ + + + + Verify format of ProfileID. + PEPPOL-EN16931-R007 + + + + PEPPOL-EN16931-R007 + + + + urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 + + + + + + PEPPOL-EN16931-R007 + + + + urn:fdc:peppol.eu:2017:NOT:CORRECT:AT:ALL:01:1.0 + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R010.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R010.xml new file mode 100644 index 0000000..8075c67 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R010.xml @@ -0,0 +1,39 @@ + + + + Verify existence of EndpointID for customer. + PEPPOL-EN16931-R010 + + + + PEPPOL-EN16931-R010 + + + + + + + + + + + + + + PEPPOL-EN16931-R010 + + + + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R020.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R020.xml new file mode 100644 index 0000000..6435e6d --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R020.xml @@ -0,0 +1,39 @@ + + + + Verify existence of EndpointID for seller. + PEPPOL-EN16931-R020 + + + + PEPPOL-EN16931-R020 + + + + + + + + + + + + + + PEPPOL-EN16931-R020 + + + + + + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R040.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R040.xml new file mode 100644 index 0000000..017202f --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R040.xml @@ -0,0 +1,176 @@ + + + + Verify calculation of allowance/charge. + PEPPOL-EN16931-R040 + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 100 + + + + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 100.01 + + + + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 100.02 + + + + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 100.03 + + + + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 99.99 + + + + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 99.98 + + + + + + + PEPPOL-EN16931-R040 + + + + + 200 + 50 + 99.97 + + + + + + + PEPPOL-EN16931-R040 + + + + + + 200 + 50 + 99.98 + + + + + + + + PEPPOL-EN16931-R040 + + + + + + 200 + 50 + 99.97 + + + + + + + + Make sure rule is not triggered on Price-level. + PEPPOL-EN16931-R040 + + + + + + + 200 + 50 + 99.97 + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R041.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R041.xml new file mode 100644 index 0000000..e49b135 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R041.xml @@ -0,0 +1,150 @@ + + + + Verify existence of base amount. + PEPPOL-EN16931-R041 + + + + PEPPOL-EN16931-R041 + + + + + 100 + 100 + + + + + + + PEPPOL-EN16931-R041 + + + + + 100 + + + + + + + PEPPOL-EN16931-R041 + + + + + + 100 + 100 + + + + + + + + PEPPOL-EN16931-R041 + + + + + + 100 + + + + + + + + PEPPOL-EN16931-R041 + + + + + 100 + 100 + + + + + + + PEPPOL-EN16931-R041 + + + + + 100 + + + + + + + PEPPOL-EN16931-R041 + + + + + + 100 + 100 + + + + + + + + PEPPOL-EN16931-R041 + + + + + + 100 + + + + + + + + Make sure rule is not triggered on Price-level. + PEPPOL-EN16931-R041 + + + + + + + 100 + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R042.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R042.xml new file mode 100644 index 0000000..81a7ebc --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R042.xml @@ -0,0 +1,150 @@ + + + + Verify existence of multiplier. + PEPPOL-EN16931-R042 + + + + PEPPOL-EN16931-R042 + + + + + 100 + 100 + + + + + + + PEPPOL-EN16931-R042 + + + + + 100 + + + + + + + PEPPOL-EN16931-R042 + + + + + + 100 + 100 + + + + + + + + PEPPOL-EN16931-R042 + + + + + + 100 + + + + + + + + PEPPOL-EN16931-R042 + + + + + 100 + 100 + + + + + + + PEPPOL-EN16931-R042 + + + + + 100 + + + + + + + PEPPOL-EN16931-R042 + + + + + + 100 + 100 + + + + + + + + PEPPOL-EN16931-R042 + + + + + + 100 + + + + + + + + Make sure rule is not triggered on Price-level. + PEPPOL-EN16931-R042 + + + + + + + 100 + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R043.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R043.xml new file mode 100644 index 0000000..581c41d --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R043.xml @@ -0,0 +1,128 @@ + + + + Verify format of indicator + PEPPOL-EN16931-R043 + + + + PEPPOL-EN16931-R043 + + + + + false + + + + + + + PEPPOL-EN16931-R043 + + + + + 0 + + + + + + + PEPPOL-EN16931-R043 + + + + + + false + + + + + + + + PEPPOL-EN16931-R043 + + + + + + 0 + + + + + + + + PEPPOL-EN16931-R043 + + + + + false + + + + + + + PEPPOL-EN16931-R043 + + + + + 0 + + + + + + + PEPPOL-EN16931-R043 + + + + + + false + + + + + + + + PEPPOL-EN16931-R043 + + + + + + 0 + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R044.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R044.xml new file mode 100644 index 0000000..aefc915 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R044.xml @@ -0,0 +1,91 @@ + + + + Verify allowance/charge is allowance on price level. + PEPPOL-EN16931-R044 + + + + PEPPOL-EN16931-R044 + + + + + + + false + + + + + + + + + PEPPOL-EN16931-R044 + + + + + + + true + + + + + + + + + PEPPOL-EN16931-R044 + + + + + + + 0 + + + + + + + + + PEPPOL-EN16931-R044 + + + + + + true + + + + + + + + PEPPOL-EN16931-R044 + + + + + true + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R046.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R046.xml new file mode 100644 index 0000000..93315d6 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R046.xml @@ -0,0 +1,87 @@ + + + + Verify calculation of item net price. + PEPPOL-EN16931-R046 + + + + PEPPOL-EN16931-R046 + + + + + + 90 + + 10 + 100 + + + + + + + + + PEPPOL-EN16931-R046 + + + + + + 90 + + 10 + + + + + + + + + + PEPPOL-EN16931-R046 + + + + + + 90 + + + + + + + + + PEPPOL-EN16931-R046 + + + + + + 90.01 + + 10 + 100 + + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R051.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R051.xml new file mode 100644 index 0000000..6e91889 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R051.xml @@ -0,0 +1,63 @@ + + + + Verify currency is provided. + PEPPOL-EN16931-R051 + + + + PEPPOL-EN16931-R051 + + + + EUR + + + 10 + + + + + 100 + + + + 100 + + 100 + + + + + + + + PEPPOL-EN16931-R051 + + + + EUR + + + 10 + + + + + 100 + + + + 100 + + 100 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R053.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R053.xml new file mode 100644 index 0000000..ea244d0 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R053.xml @@ -0,0 +1,56 @@ + + + + Verify amount of tax totals. + PEPPOL-EN16931-R053 + + + + PEPPOL-EN16931-R053 + + + + + 10 + + + + + + + + PEPPOL-EN16931-R053 + + + + + + + + + + PEPPOL-EN16931-R053 + + + + + 10 + + + + 10 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R054.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R054.xml new file mode 100644 index 0000000..c8cc6c7 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R054.xml @@ -0,0 +1,74 @@ + + + + Verify amount of tax totals. + PEPPOL-EN16931-R054 + + + + PEPPOL-EN16931-R054 + + + + + + + 10 + + + + + + + PEPPOL-EN16931-R054 + + + + + + + 10 + + + + + + + PEPPOL-EN16931-R054 + + + + + + + + + + + + PEPPOL-EN16931-R054 + + + + + + + 10 + + + 10 + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R055.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R055.xml new file mode 100644 index 0000000..52dcf96 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R055.xml @@ -0,0 +1,48 @@ + + + + Verify operational sign of TaxTotals in different currency + PEPPOL-EN16931-R055 + + + + PEPPOL-EN16931-R055 + + + + EUR + SEK + + + 10 + + + 100 + + + + + + + PEPPOL-EN16931-R055 + + + + EUR + SEK + + + 10 + + + -100 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R061.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R061.xml new file mode 100644 index 0000000..57b5bf0 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R061.xml @@ -0,0 +1,41 @@ + + + + Verify existence of required element. + PEPPOL-EN16931-R061 + + + + PEPPOL-EN16931-R061 + + + + + 49 + + + + + + + + + + PEPPOL-EN16931-R061 + + + + + 49 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R080.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R080.xml new file mode 100644 index 0000000..13f56e1 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R080.xml @@ -0,0 +1,83 @@ + + + + Verify existence of not more than a single project reference identifier on document level + PEPPOL-EN16931-R080 + + + + PEPPOL-EN16931-R080 + + + + + 50 + + + + ts12345 + Technical specification + + + http://www.techspec.no + + + + + + + + + PEPPOL-EN16931-R080 + + + + + ts12345 + Technical specification + + + http://www.techspec.no + + + + + + + + + PEPPOL-EN16931-R080 + + + + + + + + + + + PEPPOL-EN16931-R080 + + + + + + 50 + + + + 50 + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R100.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R100.xml new file mode 100644 index 0000000..9dcfd03 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R100.xml @@ -0,0 +1,86 @@ + + + + Verify existence of not more than a single object identifier pr invoice + line + PEPPOL-EN16931-R100 + + + + PEPPOL-EN16931-R100 + + + + + 130 + + + + + + + + PEPPOL-EN16931-R100 + + + + + 130 + + + + + + 130 + + + + + + + + PEPPOL-EN16931-R100 + + + + + + + + + + + + + PEPPOL-EN16931-R100 + + + + + + 130 + + + + 130 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R101.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R101.xml new file mode 100644 index 0000000..551e989 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R101.xml @@ -0,0 +1,42 @@ + + + + Verify that element DocumentReference is not used for information other than invoiced line object. + PEPPOL-EN16931-R101 + + + + PEPPOL-EN16931-R101 + + + + + 130 + + + + + + + + + PEPPOL-EN16931-R101 + + + + + + 122 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R110.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R110.xml new file mode 100644 index 0000000..2301e48 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R110.xml @@ -0,0 +1,127 @@ + + + + Verify verification of invoice period. + PEPPOL-EN16931-R110 + + + + PEPPOL-EN16931-R110 + + + + + 2017-10-01 + + + + + 2017-10-01 + + + + + + + + PEPPOL-EN16931-R110 + + + + + 2017-10-01 + + + + + 2017-10-01 + + + + + + + + PEPPOL-EN16931-R110 + + + + + 2017-10-01 + + + + + 2017-10-02 + + + + + + + + PEPPOL-EN16931-R110 + + + + + 2017-10-01 + + + + + 2017-10-02 + + + + + + + + PEPPOL-EN16931-R110 + + + + + 2017-10-01 + + + + + 2017-09-30 + + + + + + + + PEPPOL-EN16931-R110 + + + + + 2017-10-01 + + + + + 2017-09-30 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R111.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R111.xml new file mode 100644 index 0000000..d8394f5 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R111.xml @@ -0,0 +1,127 @@ + + + + Verify verification of invoice period. + PEPPOL-EN16931-R111 + + + + PEPPOL-EN16931-R111 + + + + + 2017-10-01 + + + + + 2017-10-01 + + + + + + + + PEPPOL-EN16931-R111 + + + + + 2017-10-01 + + + + + 2017-10-01 + + + + + + + + PEPPOL-EN16931-R111 + + + + + 2017-10-01 + + + + + 2017-09-30 + + + + + + + + PEPPOL-EN16931-R111 + + + + + 2017-10-01 + + + + + 2017-09-30 + + + + + + + + PEPPOL-EN16931-R111 + + + + + 2017-10-01 + + + + + 2017-10-02 + + + + + + + + PEPPOL-EN16931-R111 + + + + + 2017-10-01 + + + + + 2017-10-02 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R120.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R120.xml new file mode 100644 index 0000000..47d9cb3 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R120.xml @@ -0,0 +1,318 @@ + + + + Verify calculation of line extension amount. + PEPPOL-EN16931-R120 + + + + PEPPOL-EN16931-R120 + + + + + 10 + 100 + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 110 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 90 + + + false + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 90 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 90.02 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 89.98 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 90.03 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 89.97 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 89.97 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 10 + + + + + + + + PEPPOL-EN16931-R120 + + + + + 10 + 90 + + + false + 30 + + + true + 10 + + + true + 10 + + + + 20 + 2 + + + + + + + + PEPPOL-EN16931-R120 + + + + + + + + 20 + 2 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R121.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R121.xml new file mode 100644 index 0000000..56df314 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R121.xml @@ -0,0 +1,71 @@ + + + + Verify base amount is above zero. + PEPPOL-EN16931-R121 + + + + PEPPOL-EN16931-R121 + + + + + + + + + + + + + + PEPPOL-EN16931-R121 + + + + + + 1 + + + + + + + + PEPPOL-EN16931-R121 + + + + + + 0 + + + + + + + + PEPPOL-EN16931-R121 + + + + + + -1 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R130.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R130.xml new file mode 100644 index 0000000..9b5f9eb --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R130.xml @@ -0,0 +1,61 @@ + + + + Verify unit codes are same. + PEPPOL-EN16931-R130 + + + + PEPPOL-EN16931-R130 + + + + + 10 + + + 1 + + + + + + + + PEPPOL-EN16931-R130 + + + + + 10 + + + 1 + + + + + + + + PEPPOL-EN16931-R130 + + + + + 10 + + + 1 + + + + + + diff --git a/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R131.xml b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R131.xml new file mode 100644 index 0000000..c0aaf69 --- /dev/null +++ b/rules/unit-UBL-PEPPOL-SB/PEPPOL-EN16931-R131.xml @@ -0,0 +1,110 @@ + + + + Verify that URI has a correct Uniform Resource Locator. + PEPPOL-EN16931-R131 + + + + PEPPOL-EN16931-R131 + + + + + + ftp://some/invoice/203040 + + + + + + + + PEPPOL-EN16931-R131 + + + + + + http://some/invoice/203041 + + + + + + + + PEPPOL-EN16931-R131 + + + + + + FTPS://some/invoice/203042 + + + + + + + + PEPPOL-EN16931-R131 + + + + + + HTTPS://some/invoice/203043 + + + + + + + + PEPPOL-EN16931-R131 + + + + + + HTTPSInvoice 203050 + + + + + + + + PEPPOL-EN16931-R131 + + + + + + FTPInvoice 203051 + + + + + + \ No newline at end of file