diff --git a/README.md b/README.md index b1604464..d29b7abb 100644 --- a/README.md +++ b/README.md @@ -193,7 +193,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved * v3.1.12 - work in progress * Added Peppol PINT rules 1.0.2 - * Added Peppol PINT A-NZ 1.0.1 rules + * Added Peppol PINT A-NZ 1.0.1 rules (billing and self-billing) * Added Peppol PINT Japan 1.0.2 rules * v3.1.11 - 2024-07-02 * Added Peppol May 2024 release (Billing 3.0.17 and Upgrade 3.0.13) diff --git a/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-resources-dev-1.0.zip b/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-resources-dev-1.0.zip new file mode 100644 index 00000000..4038dd78 Binary files /dev/null and b/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-resources-dev-1.0.zip differ diff --git a/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-sb-resources-dev-1.0.1.zip b/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-sb-resources-dev-1.0.1.zip new file mode 100644 index 00000000..00f26f4e Binary files /dev/null and b/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-sb-resources-dev-1.0.1.zip differ diff --git a/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-sb-resources-dev-1.0.zip b/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-sb-resources-dev-1.0.zip new file mode 100644 index 00000000..98f9d482 Binary files /dev/null and b/phive-rules-peppol/docs/PINT A-NZ/pint-aunz-sb-resources-dev-1.0.zip differ diff --git a/phive-rules-peppol/pom.xml b/phive-rules-peppol/pom.xml index 6fc5c5a2..d6527cfd 100644 --- a/phive-rules-peppol/pom.xml +++ b/phive-rules-peppol/pom.xml @@ -163,25 +163,13 @@ --> - diff --git a/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintAUNZ.java b/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintAUNZ.java index 1b3431c8..fd4d6450 100644 --- a/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintAUNZ.java +++ b/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintAUNZ.java @@ -55,6 +55,12 @@ private static ClassLoader _getCL () public static final VESID VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_1_0_1 = new VESID (GROUP_ID, "creditnote", "1.0.1"); + public static final VESID VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_SELF_BILLING_1_0_1 = new VESID (GROUP_ID, + "invoice-self-billing", + "1.0.1"); + public static final VESID VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_SELF_BILLING_1_0_1 = new VESID (GROUP_ID, + "creditnote-self-billing", + "1.0.1"); private PeppolValidationPintAUNZ () {} @@ -81,16 +87,16 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + +   +   +   + + + + + + + + + + + + + + + + UBL-model + UBL-model + + + + + + + + Codesmodel + Codesmodel + + + + + + + + + + + + + + + + + + + + + + ibr-068 + fatal + + + + [ibr-068]-GLN MUST have a valid format according to GS1 rules for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-127 + fatal + + + + [ibr-127]-Swedish organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-069 + fatal + + + + [ibr-069]-Norwegian organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-070 + fatal + + + + [ibr-070]-Danish organization number (CVR) MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-113 + fatal + + + + [ibr-113]-Belgian enterprise number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-114 + fatal + + + + [ibr-114]-IPA Code (Codice Univoco Unità Organizzativa) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-115 + fatal + + + + [ibr-115]-Tax Code (Codice Fiscale) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-116 + fatal + + + + [ibr-116]-Italian VAT Code (Partita Iva) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-120 + fatal + + + + [ibr-120]-Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-083 + fatal + + + + [ibr-083]-Charge on price level (ibt-147) is NOT allowed. Only value 'false' allowed. + + + + + + + + + + + + + + + + ibr-sr-30 + fatal + + + + [ibr-sr-30]-Allowance reason (ibt-097) MUST occur maximum once + + + + + + + + + + ibr-031 + fatal + + + + [ibr-031]-Allowance (ibg-20) MUST have an allowance amount (ibt-092). + + + + + + + + + + ibr-033 + fatal + + + + [ibr-033]-Each Document level allowance (ibg-20) MUST have a Document level allowance reason (ibt-097) or a Document level allowance reason code (ibt-098). + + + + + + + + + + ibr-041 + fatal + + + + [ibr-041]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance amount (ibt-136). + + + + + + + + + + ibr-042 + fatal + + + + [ibr-042]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance reason (ibt-139) or an Invoice line allowance reason code (ibt-140). + + + + + + + + + + + + + + + + ibr-036 + fatal + + + + [ibr-036]-Charge (ibg-21) MUST have a charge amount (ibt-099). + + + + + + + + + + ibr-sr-31 + fatal + + + + [ibr-sr-31]-Charge reason (ibt-104) MUST occur maximum once + + + + + + + + + + ibr-038 + fatal + + + + [ibr-038]-Each Document level charge (ibg-21) MUST have a Document level charge reason (ibt-104) or a Document level charge reason code (ibt-105). + + + + + + + + + + ibr-043 + fatal + + + + [ibr-043]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge amount (ibt-141). + + + + + + + + + + ibr-044 + fatal + + + + [ibr-044]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145). + + + + + + + + + + + + + + + + ibr-082 + fatal + + + + [ibr-082]-Allowance/charge indicator value MUST equal 'true' or 'false'. + + + + + + + + + + + + + + + + ibr-sr-61 + fatal + + + + [ibr-sr-61]-Allowance/charge tax exemption reason (ibt-197) (ibt-199) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-052 + fatal + + + + [ibr-052]-Each Additional supporting document (ibg-24) MUST contain a Supporting document reference (ibt-122).    + + + + + + + + + + ibr-sr-33 + fatal + + + + [ibr-sr-33]-Supporting document description (ibt-123) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-080 + fatal + + + + [ibr-080]-The Buyer electronic address (ibt-049) MUST be provided. + + + + + + + + + + + + + + + + ibr-063 + fatal + + + + [ibr-063]-The Buyer electronic address (ibt-049) MUST have a Scheme identifier.    + + + + + + + + + + + + + + + + ibr-011 + fatal + + + + [ibr-011]-The Buyer postal address (ibg-08) MUST contain a Buyer country code (ibt-055). + + + + + + + + + + ibr-sr-54 + fatal + + + + [ibr-sr-54]-The Buyer Postal Address Line (ibt-163) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-057 + fatal + + + + [ibr-057]-Each Deliver to address (ibg-15) MUST contain a Deliver to country code (ibt-080). + + + + + + + + + + ibr-sr-56 + fatal + + + + [ibr-sr-56]-The Delivery Postal Address Line (ibt-165) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-012 + fatal + + + + [ibr-012]-An Invoice MUST have the Sum of Invoice line net amount (ibt-106). + + + + + + + + + + ibr-013 + fatal + + + + [ibr-013]-An Invoice MUST have the Invoice total amount without Tax (ibt-109). + + + + + + + + + + ibr-014 + fatal + + + + [ibr-014]-An Invoice MUST have the Invoice total amount with Tax (ibt-112). + + + + + + + + + + ibr-015 + fatal + + + + [ibr-015]-An Invoice MUST have the Amount due for payment (ibt-115). + + + + + + + + + + ibr-091 + fatal + + + + [ibr-091]-Invoice amount due for payment (ibt-115) MUST have no more than 2 decimals. + + + + + + + + + + ibr-121 + fatal + + + + [ibr-121]-Document level allowance amount (ibt-107) MUST have no more than 2 decimals. + + + + + + + + + + ibr-122 + fatal + + + + [ibr-122]-Document level charge amount (ibt-108) MUST have no more than 2 decimals. + + + + + + + + + + ibr-123 + fatal + + + + [ibr-123]-Invoice total amount without TAX (ibt-109) MUST have no more than 2 decimals. + + + + + + + + + + ibr-125 + fatal + + + + [ibr-125]- Invoice total amount with TAX (ibt-112) MUST have no more than 2 decimals. + + + + + + + + + + ibr-co-10 + fatal + + + + [ibr-co-10]-Sum of Invoice line net amount (ibt-106) = Σ Invoice line net amount (ibt-131). + + + + + + + + + + ibr-co-11 + fatal + + + + [ibr-co-11]-Sum of allowances on document level (ibt-107) = Σ Document level allowance amount (ibt-092). + + + + + + + + + + ibr-co-12 + fatal + + + + [ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099). + + + + + + + + + + ibr-co-13 + fatal + + + + [ibr-co-13]-Invoice total amount without Tax (ibt-109) = Σ Invoice line net amount (ibt-131) - Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-108). + + + + + + + + + + ibr-co-16 + fatal + + + + [ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114). + + + + + + + + + + + + + + + + ibr-001 + fatal + + + + [ibr-001]-An Invoice MUST have a Specification identifier (ibt-024). + + + + + + + + + + ibr-002 + fatal + + + + [ibr-002]-An Invoice MUST have an Invoice number (ibt-001). + + + + + + + + + + ibr-003 + fatal + + + + [ibr-003]-An Invoice MUST have an Invoice issue date (ibt-002). + + + + + + + + + + ibr-004 + fatal + + + + [ibr-004]-An Invoice MUST have an Invoice type code (ibt-003). + + + + + + + + + + ibr-005 + fatal + + + + [ibr-005]-An Invoice MUST have an Invoice currency code (ibt-005). + + + + + + + + + + ibr-006 + fatal + + + + [ibr-006]-An Invoice MUST contain the Seller name (ibt-027). + + + + + + + + + + ibr-007 + fatal + + + + [ibr-007]-An Invoice MUST contain the Buyer name (ibt-044). + + + + + + + + + + ibr-008 + fatal + + + + [ibr-008]-An Invoice MUST contain the Seller postal address (ibg-05). + + + + + + + + + + ibr-010 + fatal + + + + [ibr-010]-An Invoice MUST contain the Buyer postal address (ibg-08). + + + + + + + + + + ibr-016 + fatal + + + + [ibr-016]-An Invoice MUST have at least one Invoice line (ibg-25) + + + + + + + + + + ibr-053 + fatal + + + + [ibr-053]-If the Tax accounting currency code (ibt-006) is present, then the Invoice total Tax amount in accounting currency (ibt-111) MUST be provided. + + + + + + + + + + ibr-066 + fatal + + + + [ibr-066]-An Invoice MUST contain maximum one Payment Card account (ibg-18). + + + + + + + + + + ibr-067 + fatal + + + + [ibr-067]-An Invoice MUST contain maximum one Payment Mandate (ibg-19). + + + + + + + + + + ibr-071 + fatal + + + + [ibr-071]-An invoice should not include an AdditonalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Attachment (ibt-125). + + + + + + + + + + ibr-072 + fatal + + + + [ibr-072]-An invoice MUST not include an AdditionalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Document Description (ibt-123). + + + + + + + + + + ibr-076 + fatal + + + + [ibr-076]-Business process (ibt-023) MUST be provided. + + + + + + + + + + ibr-078 + fatal + + + + [ibr-078]-Only one invoiced object (ibt-018) is allowed on document level. + + + + + + + + + + ibr-084 + fatal + + + + [ibr-084]-Invoice total tax amount (ibt-110) and Invoice total tax amount in accounting currency (ibt-111) MUST have the same operational sign. + + + + + + + + + + ibr-087 + fatal + + + + [ibr-087]-Base quantity (ibt-149) MUST be a positive number above zero. + + + + + + + + + + ibr-090 + fatal + + + + [ibr-090]-Only one project reference (ibt-011) is allowed on document level. + + + + + + + + + + ibr-094 + fatal + + + + [ibr-094]-Contract reference (ibt-012) MUST occur maximum once. + + + + + + + + + + ibr-095 + fatal + + + + [ibr-095]-Receiving advice reference (ibt-015) MUST occur maximum once. + + + + + + + + + + ibr-096 + fatal + + + + [ibr-096]-Despatch advice reference (ibt-016) MUST occur maximum once. + + + + + + + + + + ibr-097 + fatal + + + + [ibr-097]-Invoicing period (ibg-14) MUST occur maximum once. + + + + + + + + + + ibr-098 + fatal + + + + [ibr-098]-Seller name (ibt-027) MUST occur maximum once. + + + + + + + + + + ibr-099 + fatal + + + + [ibr-099]-Seller trader name (ibt-028) MUST occur maximum once. + + + + + + + + + + ibr-100 + fatal + + + + [ibr-100]-Seller legal registration identifier (ibt-030) MUST occur maximum once. + + + + + + + + + + ibr-101 + fatal + + + + [ibr-101]-Seller additional legal information (ibt-033) MUST occur maximum once. + + + + + + + + + + ibr-102 + fatal + + + + [ibr-102]-Buyer name (ibt-044) MUST occur maximum once. + + + + + + + + + + ibr-103 + fatal + + + + [ibr-103]-Buyer legal registration identifier (ibt-047) MUST occur maximum once. + + + + + + + + + + ibr-104 + fatal + + + + [ibr-104]-Buyer tax identifier (ibt-048) MUST occur maximum once. + + + + + + + + + + ibr-107 + fatal + + + + [ibr-107]-Deliver to information (ibg-13) MUST occur maximum once. + + + + + + + + + + ibr-112 + fatal + + + + [ibr-112]-Buyer trader name (ibt-045) MUST occur maximum once. + + + + + + + + + + ibr-co-15 + fatal + + + + [ibr-co-15]-Invoice total amount with Tax (ibt-112) = Invoice total amount without Tax (ibt-109) + Invoice total Tax amount (ibt-110). + + + + + + + + + + ibr-sr-16 + fatal + + + + [ibr-sr-16]-Buyer identifier (ibt-046) MUST occur maximum once + + + + + + + + + + ibr-sr-39 + fatal + + + + [ibr-sr-39]-Project reference (ibt-011) MUST occur maximum once. + + + + + + + + + + ibr-sr-49 + fatal + + + + [ibr-sr-49]-Value tax point date (ibt-007) MUST occur maximum once + + + + + + + + + + ibr-sr-51 + fatal + + + + [ibr-sr-51]-Note (ibt-022) MUST occur maximum once + + + + + + + + + + ibr-sr-52 + fatal + + + + [ibr-sr-52]-Tender or lot reference (ibt-017) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-021 + fatal + + + + [ibr-021]-Each Invoice line (ibg-25) MUST have an Invoice line identifier (ibt-126). + + + + + + + + + + ibr-022 + fatal + + + + [ibr-022]-Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129).. + + + + + + + + + + ibr-023 + fatal + + + + [ibr-023]-An Invoice line (ibg-25) MUST have an Invoiced quantity unit of measure code (ibt-130). + + + + + + + + + + ibr-024 + fatal + + + + [ibr-024]-Each Invoice line (ibg-25) MUST have an Invoice line net amount (ibt-131). + + + + + + + + + + ibr-025 + fatal + + + + [ibr-025]-Each Invoice line (ibg-25) MUST contain the Item name (ibt-153). + + + + + + + + + + ibr-026 + fatal + + + + [ibr-026]-Each Invoice line (ibg-25) MUST contain the Item net price (ibt-146). + + + + + + + + + + ibr-027 + fatal + + + + [ibr-027]-The Item net price (ibt-146) MUST NOT be negative. + + + + + + + + + + ibr-028 + fatal + + + + [ibr-028]-The Item gross price (ibt-148) MUST NOT be negative. + + + + + + + + + + ibr-089 + fatal + + + + [ibr-089]-Only one invoiced object (ibt-128) is allowed per line (ibg-25). + + + + + + + + + + ibr-109 + fatal + + + + [ibr-109]-Referenced purchase order line identifier (ibt-132) MUST occur maximum once. + + + + + + + + + + ibr-110 + fatal + + + + [ibr-110]-Invoice line period (ibg-26) MUST occur maximum once. + + + + + + + + + + ibr-111 + fatal + + + + [ibr-111]-Item price discount (ibt-147) MUST occur maximum once. + + + + + + + + + + ibr-sr-34 + fatal + + + + [ibr-sr-34]-Invoice line note (ibt-127) MUST occur maximum once + + + + + + + + + + ibr-sr-38 + fatal + + + + [ibr-sr-38]-Invoiced item tax exemption reason text (ibt-185) MUST occur maximum once + + + + + + + + + + ibr-sr-50 + fatal + + + + [ibr-sr-50]-Item description (ibt-154) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-085 + fatal + + + + [ibr-085]-Start date of line period (ibt-134) MUST be within invoice period (ibg-14). + + + + + + + + + + ibr-086 + fatal + + + + [ibr-086]-End date of line period (ibt-135) MUST be within invoice period (ibg-14). + + + + + + + + + + ibr-030 + fatal + + + + [ibr-030]-If both Invoice line period start date (ibt-134) and Invoice line period end date (ibt-135) are given then the Invoice line period end date (ibt-135) MUST be later or equal to the Invoice line period start date (ibt-134). + + + + + + + + + + ibr-co-20 + fatal + + + + [ibr-co-20]-If Invoice line period (ibg-26) is used, the Invoice line period start date (ibt-134) or the Invoice line period end date (ibt-135) MUST be filled, or both. + + + + + + + + + + + + + + + + ibr-029 + fatal + + + + [ibr-029]-If both Invoicing period start date (ibt-073) and Invoicing period end date (ibt-074) are given then the Invoicing period end date (ibt-074) MUST be later or equal to the Invoicing period start date (ibt-073). + + + + + + + + + + ibr-co-19 + fatal + + + + [ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) MUST be filled, or both. + + + + + + + + + + + + + + + + ibr-054 + fatal + + + + [ibr-054]-Each Item attribute (ibg-32) MUST contain an Item attribute name (ibt-160) and an Item attribute value (ibt-161). + + + + + + + + + + + + + + + + ibr-065 + fatal + + + + [ibr-065]-The Item classification identifier (ibt-158) MUST have a Scheme identifier. + + + + + + + + + + + + + + + + ibr-064 + fatal + + + + [ibr-064]-The Item standard identifier (ibt-157) MUST have a Scheme identifier. + + + + + + + + + + + + + + + + ibr-sr-58 + fatal + + + + [ibr-sr-58]-The Invoiced item TAX category code (ibt-151) MUST be present. + + + + + + + + + + + + + + + + ibr-017 + fatal + + + + [ibr-017]-The Payee name (ibt-059) MUST be provided in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + + + + + + + + + + ibr-105 + fatal + + + + [ibr-105]-The Payee identifier (ibt-060) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + + + + + + + + + + ibr-106 + fatal + + + + [ibr-106]-The Payee legal identifier (ibt-061) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + + + + + + + + + + ibr-sr-19 + fatal + + + + [ibr-sr-19]-Payee name (ibt-059) MUST occur maximum once, if the Payee is different from the Seller + + + + + + + + + + + + + + + + ibr-sr-59 + fatal + + + + [ibr-sr-59]-The Payee Postal Address Line (ibt-174) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-049 + fatal + + + + [ibr-049]-A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-081). + + + + + + + + + + ibr-sr-27 + fatal + + + + [ibr-sr-27]-Payment means text (ibt-081) MUST occur maximum once + + + + + + + + + + ibr-sr-28 + fatal + + + + [ibr-sr-28]-Mandate reference identifier (ibt-089) MUST occur maximum once + + + + + + + + + + ibr-sr-45 + fatal + + + + [ibr-sr-45]-Due Date (ibt-009) MUST occur maximum once + + + + + + + + + + ibr-sr-46 + fatal + + + + [ibr-sr-46]-Payment means text (ibt-082) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-126 + fatal + + + + [ibr-126]- All currencyID attributes must have the same value as the Invoice currency code (ibt-005), except for amounts expected to be in Tax accounting currency (ibt-006). + + + + + + + + + + + + + + + + ibr-sr-05 + fatal + + + + [ibr-sr-05]-Payment terms (ibt-020) MUST occur maximum once. + + + + + + + + + + ibr-sr-60 + fatal + + + + [ibr-sr-60]-Payment Instruction ID (ibt-187) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-055 + fatal + + + + [ibr-055]-Each Preceding Invoice reference (ibg-03) MUST contain a Preceding Invoice reference (ibt-025). + + + + + + + + + + ibr-sr-07 + fatal + + + + [ibr-sr-07]-If there is a preceding invoice reference (ibg-03) , the preceding invoice number (ibt-025) MUST be present + + + + + + + + + + ibr-sr-06 + fatal + + + + [ibr-sr-06]-Preceding invoice reference (ibt-025) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-co-26 + fatal + + + + [ibr-co-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (ibt-029), the Seller legal registration identifier (ibt-030) and/or the Seller Tax identifier (ibt-031) MUST be present. + + + + + + + + + + ibr-081 + fatal + + + + [ibr-081]-The Seller electronic address (ibt-049) MUST be provided. + + + + + + + + + + ibr-sr-42 + fatal + + + + [ibr-sr-42]-Party tax scheme MUST occur maximum twice in accounting supplier party + + + + + + + + + + + + + + + + ibr-062 + fatal + + + + [ibr-062]-The Seller electronic address (ibt-034) MUST have a Scheme identifier. + + + + + + + + + + + + + + + + ibr-009 + fatal + + + + [ibr-009]-The Seller postal address (ibg-05) MUST contain a Seller country code (ibt-040). + + + + + + + + + + ibr-sr-53 + fatal + + + + [ibr-sr-53]-The Seller Postal Address Line (ibt-162) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-018 + fatal + + + + [ibr-018]-The Seller tax representative name (ibt-062) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11) + + + + + + + + + + ibr-019 + fatal + + + + [ibr-019]-The Seller tax representative postal address (ibg-12) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + + + + + + + + + + ibr-056 + fatal + + + + [ibr-056]-The Seller tax representative party (ibg-11) MUST have a Seller tax representative Tax identifier (ibt-063). + + + + + + + + + + ibr-sr-22 + fatal + + + + [ibr-sr-22]-Seller tax representative name (ibt-062) MUST occur maximum once, if the Seller has a tax representative + + + + + + + + + + ibr-sr-23 + fatal + + + + [ibr-sr-23]-Seller tax representative tax identifier (ibt-063) MUST occur maximum once, if the Seller has a tax representative + + + + + + + + + + + + + + + + ibr-020 + fatal + + + + [ibr-020]-The Seller tax representative postal address (ibg-12) MUST contain a Tax representative country code (ibt-069), if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + + + + + + + + + + ibr-sr-55 + fatal + + + + [ibr-sr-55]-The Tax Representative Postal Address Line (ibt-164) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-124 + fatal + + + + [ibr-124]-Invoice total TAX amount (ibt-110) MUST have no more than 2 decimals. + + + + + + + + + + ibr-co-14 + fatal + + + + [ibr-co-14]-Invoice total Tax amount (ibt-110) = Σ Tax category tax amount (ibt-117). + + + + + + + + + + + + + + + + ibr-sr-32 + fatal + + + + [ibr-sr-32]-VAT exemption reason text (ibt-120) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-sr-57 + fatal + + + + [ibr-sr-57]-Company identifier MUST exist in the party tax scheme class. + + + + + + + + + + + + + + + + ibr-073 + fatal + + + + [ibr-073]-A date MUST be formatted YYYY-MM-DD in (ibt-002), (ibt-007), (ibt-009), (ibt-026), (ibt-072), (ibt-073), (ibt-074), (ibt-134), (ibt-135). + + + + + + + + + + + + + + + + ibr-119 + fatal + + + + [ibr-119]-A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168). + + + + + + + + + + + + + + + + ibr-074 + fatal + + + + [ibr-074]-Binary object elements (ibt-125) MUST contain the mime code attribute (ibt-125-1). + + + + + + + + + + ibr-075 + fatal + + + + [ibr-075]-Binary object elements (ibt-125) MUST contain the filename attribute (ibt-125-2). + + + + + + + + + + + + + + + + ibr-077 + fatal + + + + [ibr-077]-Tax accounting currency code (ibt-006) MUST be different from invoice currency code (ibt-005) when provided. + + + + + + + + + + + + + + + + ibr-079 + fatal + + + + [ibr-079]-Document MUST not contain empty elements. + + + + + + + + + + + + + + + + ibr-088 + fatal + + + + [ibr-088]-Unit code of price base quantity (ibt-150) MUST be same as invoiced quantity (ibt-130). + + + + + + + + + + + + + + + + ibr-092 + fatal + + + + [ibr-092]-If despatch advice reference exists on line (ibt-184) then there MUST not be despatch reference on document level (ibt-016). + + + + + + + + + + + + + + + + ibr-sr-62 + fatal + + + + [ibr-sr-62]-Despatch advice line reference (ibt-184) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-093 + fatal + + + + [ibr-093]-If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist. + + + + + + + + + + + + + + + + ibr-108 + fatal + + + + [ibr-108]-Deliver to party name (ibt-070) MUST occur maximum once. + + + + + + + + + + + + + + + + + + + + + + + ibr-cl-01-aunz-sb + fatal + + + + [ibr-cl-01-aunz-sb]-The document type code (ibt-003) MUST be coded by the self-billed invoice and credit note related code lists of UNTDID 1001. + + + + + + + + + + + + + + + + ibr-cl-03 + fatal + + + + [ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3. + + + + + + + + + + + + + + + + ibr-cl-04 + fatal + + + + [ibr-cl-04]-Invoice currency code (ibt-005) MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + ibr-cl-05 + fatal + + + + [ibr-cl-05]-Tax currency code (ibt-006) MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + ibr-cl-07 + fatal + + + + [ibr-cl-07]-Object identifier identification scheme (ibt-018-1) (ibt-128-1) MUST be coded using a restriction of UNTDID 1153. + + + + + + + + + + + + + + + + ibr-cl-10 + fatal + + + + [ibr-cl-10]-Any identifier identification scheme (ibt-046-1), (ibt-060-1) MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + ibr-cl-11 + fatal + + + + [ibr-cl-11]-Any registration identifier identification scheme (ibt-030-1), (ibt-047-1), (ibt-061-1) MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + ibr-cl-13 + fatal + + + + [ibr-cl-13]-Item classification identifier identification scheme (ibt-158-1) MUST be coded using one of the UNTDID 7143 list. + + + + + + + + + + + + + + + + ibr-cl-14 + fatal + + + + [ibr-cl-14]-Country codes in an invoice (ibt-040), (ibt-055), (ibt-069), (ibt-080), (ibt-175) MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + ibr-cl-15 + fatal + + + + [ibr-cl-15]-Origin country codes in an invoice (ibt-159) MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + ibr-cl-16 + fatal + + + + [ibr-cl-16]-Payment means in an invoice (ibt-081) MUST be coded using UNCL4461 code list + + + + + + + + + + + + + + + + ibr-cl-19 + fatal + + + + [ibr-cl-19]-Coded allowance reasons (ibt-098), (ibt-140) MUST belong to the UNCL 5189 code list + + + + + + + + + + + + + + + + ibr-cl-20 + fatal + + + + [ibr-cl-20]-Coded charge reasons (ibt-105), (ibt-145) MUST belong to the UNCL 7161 code list + + + + + + + + + + + + + + + + ibr-cl-21 + fatal + + + + [ibr-cl-21]-Item standard identifier scheme identifier (ibt-157) MUST belong to the ISO 6523 ICD list. + + + + + + + + + + + + + + + + ibr-cl-23 + fatal + + + + [ibr-cl-23]-Unit code (ibt-130), (ibt-150) MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension + + + + + + + + + + + + + + + + ibr-cl-24 + fatal + + + + [ibr-cl-24]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + + + + + + + + + + + + + + ibr-cl-25 + fatal + + + + [ibr-cl-25]-Endpoint identifier scheme identifier (ibt-034-1), (ibt-049-1) MUST belong to the CEF EAS code list + + + + + + + + + + + + + + + + ibr-cl-26 + fatal + + + + [ibr-cl-26]-Delivery location identifier scheme identifier (ibt-071-1) MUST belong to the ISO 6523 ICD code list + + + + + + + + + + diff --git a/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-UBL-validation-preprocessed-inv.xslt b/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-UBL-validation-preprocessed-inv.xslt new file mode 100644 index 00000000..2e623ece --- /dev/null +++ b/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-UBL-validation-preprocessed-inv.xslt @@ -0,0 +1,3239 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + +   +   +   + + + + + + + + + + + + + + + + UBL-model + UBL-model + + + + + + + + Codesmodel + Codesmodel + + + + + + + + + + + + + + + + + + + + + + ibr-068 + fatal + + + + [ibr-068]-GLN MUST have a valid format according to GS1 rules for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-127 + fatal + + + + [ibr-127]-Swedish organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-069 + fatal + + + + [ibr-069]-Norwegian organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-070 + fatal + + + + [ibr-070]-Danish organization number (CVR) MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-113 + fatal + + + + [ibr-113]-Belgian enterprise number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-114 + fatal + + + + [ibr-114]-IPA Code (Codice Univoco Unità Organizzativa) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-115 + fatal + + + + [ibr-115]-Tax Code (Codice Fiscale) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-116 + fatal + + + + [ibr-116]-Italian VAT Code (Partita Iva) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-120 + fatal + + + + [ibr-120]-Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + + + + + + + + + + + + + + ibr-083 + fatal + + + + [ibr-083]-Charge on price level (ibt-147) is NOT allowed. Only value 'false' allowed. + + + + + + + + + + + + + + + + ibr-sr-30 + fatal + + + + [ibr-sr-30]-Allowance reason (ibt-097) MUST occur maximum once + + + + + + + + + + ibr-031 + fatal + + + + [ibr-031]-Allowance (ibg-20) MUST have an allowance amount (ibt-092). + + + + + + + + + + ibr-033 + fatal + + + + [ibr-033]-Each Document level allowance (ibg-20) MUST have a Document level allowance reason (ibt-097) or a Document level allowance reason code (ibt-098). + + + + + + + + + + ibr-041 + fatal + + + + [ibr-041]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance amount (ibt-136). + + + + + + + + + + ibr-042 + fatal + + + + [ibr-042]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance reason (ibt-139) or an Invoice line allowance reason code (ibt-140). + + + + + + + + + + + + + + + + ibr-036 + fatal + + + + [ibr-036]-Charge (ibg-21) MUST have a charge amount (ibt-099). + + + + + + + + + + ibr-sr-31 + fatal + + + + [ibr-sr-31]-Charge reason (ibt-104) MUST occur maximum once + + + + + + + + + + ibr-038 + fatal + + + + [ibr-038]-Each Document level charge (ibg-21) MUST have a Document level charge reason (ibt-104) or a Document level charge reason code (ibt-105). + + + + + + + + + + ibr-043 + fatal + + + + [ibr-043]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge amount (ibt-141). + + + + + + + + + + ibr-044 + fatal + + + + [ibr-044]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145). + + + + + + + + + + + + + + + + ibr-082 + fatal + + + + [ibr-082]-Allowance/charge indicator value MUST equal 'true' or 'false'. + + + + + + + + + + + + + + + + ibr-sr-61 + fatal + + + + [ibr-sr-61]-Allowance/charge tax exemption reason (ibt-197) (ibt-199) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-052 + fatal + + + + [ibr-052]-Each Additional supporting document (ibg-24) MUST contain a Supporting document reference (ibt-122).    + + + + + + + + + + ibr-sr-33 + fatal + + + + [ibr-sr-33]-Supporting document description (ibt-123) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-080 + fatal + + + + [ibr-080]-The Buyer electronic address (ibt-049) MUST be provided. + + + + + + + + + + + + + + + + ibr-063 + fatal + + + + [ibr-063]-The Buyer electronic address (ibt-049) MUST have a Scheme identifier.    + + + + + + + + + + + + + + + + ibr-011 + fatal + + + + [ibr-011]-The Buyer postal address (ibg-08) MUST contain a Buyer country code (ibt-055). + + + + + + + + + + ibr-sr-54 + fatal + + + + [ibr-sr-54]-The Buyer Postal Address Line (ibt-163) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-057 + fatal + + + + [ibr-057]-Each Deliver to address (ibg-15) MUST contain a Deliver to country code (ibt-080). + + + + + + + + + + ibr-sr-56 + fatal + + + + [ibr-sr-56]-The Delivery Postal Address Line (ibt-165) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-012 + fatal + + + + [ibr-012]-An Invoice MUST have the Sum of Invoice line net amount (ibt-106). + + + + + + + + + + ibr-013 + fatal + + + + [ibr-013]-An Invoice MUST have the Invoice total amount without Tax (ibt-109). + + + + + + + + + + ibr-014 + fatal + + + + [ibr-014]-An Invoice MUST have the Invoice total amount with Tax (ibt-112). + + + + + + + + + + ibr-015 + fatal + + + + [ibr-015]-An Invoice MUST have the Amount due for payment (ibt-115). + + + + + + + + + + ibr-091 + fatal + + + + [ibr-091]-Invoice amount due for payment (ibt-115) MUST have no more than 2 decimals. + + + + + + + + + + ibr-121 + fatal + + + + [ibr-121]-Document level allowance amount (ibt-107) MUST have no more than 2 decimals. + + + + + + + + + + ibr-122 + fatal + + + + [ibr-122]-Document level charge amount (ibt-108) MUST have no more than 2 decimals. + + + + + + + + + + ibr-123 + fatal + + + + [ibr-123]-Invoice total amount without TAX (ibt-109) MUST have no more than 2 decimals. + + + + + + + + + + ibr-125 + fatal + + + + [ibr-125]- Invoice total amount with TAX (ibt-112) MUST have no more than 2 decimals. + + + + + + + + + + ibr-co-10 + fatal + + + + [ibr-co-10]-Sum of Invoice line net amount (ibt-106) = Σ Invoice line net amount (ibt-131). + + + + + + + + + + ibr-co-11 + fatal + + + + [ibr-co-11]-Sum of allowances on document level (ibt-107) = Σ Document level allowance amount (ibt-092). + + + + + + + + + + ibr-co-12 + fatal + + + + [ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099). + + + + + + + + + + ibr-co-13 + fatal + + + + [ibr-co-13]-Invoice total amount without Tax (ibt-109) = Σ Invoice line net amount (ibt-131) - Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-108). + + + + + + + + + + ibr-co-16 + fatal + + + + [ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114). + + + + + + + + + + + + + + + + ibr-001 + fatal + + + + [ibr-001]-An Invoice MUST have a Specification identifier (ibt-024). + + + + + + + + + + ibr-002 + fatal + + + + [ibr-002]-An Invoice MUST have an Invoice number (ibt-001). + + + + + + + + + + ibr-003 + fatal + + + + [ibr-003]-An Invoice MUST have an Invoice issue date (ibt-002). + + + + + + + + + + ibr-004 + fatal + + + + [ibr-004]-An Invoice MUST have an Invoice type code (ibt-003). + + + + + + + + + + ibr-005 + fatal + + + + [ibr-005]-An Invoice MUST have an Invoice currency code (ibt-005). + + + + + + + + + + ibr-006 + fatal + + + + [ibr-006]-An Invoice MUST contain the Seller name (ibt-027). + + + + + + + + + + ibr-007 + fatal + + + + [ibr-007]-An Invoice MUST contain the Buyer name (ibt-044). + + + + + + + + + + ibr-008 + fatal + + + + [ibr-008]-An Invoice MUST contain the Seller postal address (ibg-05). + + + + + + + + + + ibr-010 + fatal + + + + [ibr-010]-An Invoice MUST contain the Buyer postal address (ibg-08). + + + + + + + + + + ibr-016 + fatal + + + + [ibr-016]-An Invoice MUST have at least one Invoice line (ibg-25) + + + + + + + + + + ibr-053 + fatal + + + + [ibr-053]-If the Tax accounting currency code (ibt-006) is present, then the Invoice total Tax amount in accounting currency (ibt-111) MUST be provided. + + + + + + + + + + ibr-066 + fatal + + + + [ibr-066]-An Invoice MUST contain maximum one Payment Card account (ibg-18). + + + + + + + + + + ibr-067 + fatal + + + + [ibr-067]-An Invoice MUST contain maximum one Payment Mandate (ibg-19). + + + + + + + + + + ibr-071 + fatal + + + + [ibr-071]-An invoice should not include an AdditonalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Attachment (ibt-125). + + + + + + + + + + ibr-072 + fatal + + + + [ibr-072]-An invoice MUST not include an AdditionalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Document Description (ibt-123). + + + + + + + + + + ibr-076 + fatal + + + + [ibr-076]-Business process (ibt-023) MUST be provided. + + + + + + + + + + ibr-078 + fatal + + + + [ibr-078]-Only one invoiced object (ibt-018) is allowed on document level. + + + + + + + + + + ibr-084 + fatal + + + + [ibr-084]-Invoice total tax amount (ibt-110) and Invoice total tax amount in accounting currency (ibt-111) MUST have the same operational sign. + + + + + + + + + + ibr-087 + fatal + + + + [ibr-087]-Base quantity (ibt-149) MUST be a positive number above zero. + + + + + + + + + + ibr-090 + fatal + + + + [ibr-090]-Only one project reference (ibt-011) is allowed on document level. + + + + + + + + + + ibr-094 + fatal + + + + [ibr-094]-Contract reference (ibt-012) MUST occur maximum once. + + + + + + + + + + ibr-095 + fatal + + + + [ibr-095]-Receiving advice reference (ibt-015) MUST occur maximum once. + + + + + + + + + + ibr-096 + fatal + + + + [ibr-096]-Despatch advice reference (ibt-016) MUST occur maximum once. + + + + + + + + + + ibr-097 + fatal + + + + [ibr-097]-Invoicing period (ibg-14) MUST occur maximum once. + + + + + + + + + + ibr-098 + fatal + + + + [ibr-098]-Seller name (ibt-027) MUST occur maximum once. + + + + + + + + + + ibr-099 + fatal + + + + [ibr-099]-Seller trader name (ibt-028) MUST occur maximum once. + + + + + + + + + + ibr-100 + fatal + + + + [ibr-100]-Seller legal registration identifier (ibt-030) MUST occur maximum once. + + + + + + + + + + ibr-101 + fatal + + + + [ibr-101]-Seller additional legal information (ibt-033) MUST occur maximum once. + + + + + + + + + + ibr-102 + fatal + + + + [ibr-102]-Buyer name (ibt-044) MUST occur maximum once. + + + + + + + + + + ibr-103 + fatal + + + + [ibr-103]-Buyer legal registration identifier (ibt-047) MUST occur maximum once. + + + + + + + + + + ibr-104 + fatal + + + + [ibr-104]-Buyer tax identifier (ibt-048) MUST occur maximum once. + + + + + + + + + + ibr-107 + fatal + + + + [ibr-107]-Deliver to information (ibg-13) MUST occur maximum once. + + + + + + + + + + ibr-112 + fatal + + + + [ibr-112]-Buyer trader name (ibt-045) MUST occur maximum once. + + + + + + + + + + ibr-co-15 + fatal + + + + [ibr-co-15]-Invoice total amount with Tax (ibt-112) = Invoice total amount without Tax (ibt-109) + Invoice total Tax amount (ibt-110). + + + + + + + + + + ibr-sr-16 + fatal + + + + [ibr-sr-16]-Buyer identifier (ibt-046) MUST occur maximum once + + + + + + + + + + ibr-sr-39 + fatal + + + + [ibr-sr-39]-Project reference (ibt-011) MUST occur maximum once. + + + + + + + + + + ibr-sr-49 + fatal + + + + [ibr-sr-49]-Value tax point date (ibt-007) MUST occur maximum once + + + + + + + + + + ibr-sr-51 + fatal + + + + [ibr-sr-51]-Note (ibt-022) MUST occur maximum once + + + + + + + + + + ibr-sr-52 + fatal + + + + [ibr-sr-52]-Tender or lot reference (ibt-017) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-021 + fatal + + + + [ibr-021]-Each Invoice line (ibg-25) MUST have an Invoice line identifier (ibt-126). + + + + + + + + + + ibr-022 + fatal + + + + [ibr-022]-Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129).. + + + + + + + + + + ibr-023 + fatal + + + + [ibr-023]-An Invoice line (ibg-25) MUST have an Invoiced quantity unit of measure code (ibt-130). + + + + + + + + + + ibr-024 + fatal + + + + [ibr-024]-Each Invoice line (ibg-25) MUST have an Invoice line net amount (ibt-131). + + + + + + + + + + ibr-025 + fatal + + + + [ibr-025]-Each Invoice line (ibg-25) MUST contain the Item name (ibt-153). + + + + + + + + + + ibr-026 + fatal + + + + [ibr-026]-Each Invoice line (ibg-25) MUST contain the Item net price (ibt-146). + + + + + + + + + + ibr-027 + fatal + + + + [ibr-027]-The Item net price (ibt-146) MUST NOT be negative. + + + + + + + + + + ibr-028 + fatal + + + + [ibr-028]-The Item gross price (ibt-148) MUST NOT be negative. + + + + + + + + + + ibr-089 + fatal + + + + [ibr-089]-Only one invoiced object (ibt-128) is allowed per line (ibg-25). + + + + + + + + + + ibr-109 + fatal + + + + [ibr-109]-Referenced purchase order line identifier (ibt-132) MUST occur maximum once. + + + + + + + + + + ibr-110 + fatal + + + + [ibr-110]-Invoice line period (ibg-26) MUST occur maximum once. + + + + + + + + + + ibr-111 + fatal + + + + [ibr-111]-Item price discount (ibt-147) MUST occur maximum once. + + + + + + + + + + ibr-sr-34 + fatal + + + + [ibr-sr-34]-Invoice line note (ibt-127) MUST occur maximum once + + + + + + + + + + ibr-sr-38 + fatal + + + + [ibr-sr-38]-Invoiced item tax exemption reason text (ibt-185) MUST occur maximum once + + + + + + + + + + ibr-sr-50 + fatal + + + + [ibr-sr-50]-Item description (ibt-154) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-085 + fatal + + + + [ibr-085]-Start date of line period (ibt-134) MUST be within invoice period (ibg-14). + + + + + + + + + + ibr-086 + fatal + + + + [ibr-086]-End date of line period (ibt-135) MUST be within invoice period (ibg-14). + + + + + + + + + + ibr-030 + fatal + + + + [ibr-030]-If both Invoice line period start date (ibt-134) and Invoice line period end date (ibt-135) are given then the Invoice line period end date (ibt-135) MUST be later or equal to the Invoice line period start date (ibt-134). + + + + + + + + + + ibr-co-20 + fatal + + + + [ibr-co-20]-If Invoice line period (ibg-26) is used, the Invoice line period start date (ibt-134) or the Invoice line period end date (ibt-135) MUST be filled, or both. + + + + + + + + + + + + + + + + ibr-029 + fatal + + + + [ibr-029]-If both Invoicing period start date (ibt-073) and Invoicing period end date (ibt-074) are given then the Invoicing period end date (ibt-074) MUST be later or equal to the Invoicing period start date (ibt-073). + + + + + + + + + + ibr-co-19 + fatal + + + + [ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) MUST be filled, or both. + + + + + + + + + + + + + + + + ibr-054 + fatal + + + + [ibr-054]-Each Item attribute (ibg-32) MUST contain an Item attribute name (ibt-160) and an Item attribute value (ibt-161). + + + + + + + + + + + + + + + + ibr-065 + fatal + + + + [ibr-065]-The Item classification identifier (ibt-158) MUST have a Scheme identifier. + + + + + + + + + + + + + + + + ibr-064 + fatal + + + + [ibr-064]-The Item standard identifier (ibt-157) MUST have a Scheme identifier. + + + + + + + + + + + + + + + + ibr-sr-58 + fatal + + + + [ibr-sr-58]-The Invoiced item TAX category code (ibt-151) MUST be present. + + + + + + + + + + + + + + + + ibr-017 + fatal + + + + [ibr-017]-The Payee name (ibt-059) MUST be provided in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + + + + + + + + + + ibr-105 + fatal + + + + [ibr-105]-The Payee identifier (ibt-060) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + + + + + + + + + + ibr-106 + fatal + + + + [ibr-106]-The Payee legal identifier (ibt-061) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + + + + + + + + + + ibr-sr-19 + fatal + + + + [ibr-sr-19]-Payee name (ibt-059) MUST occur maximum once, if the Payee is different from the Seller + + + + + + + + + + + + + + + + ibr-sr-59 + fatal + + + + [ibr-sr-59]-The Payee Postal Address Line (ibt-174) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-049 + fatal + + + + [ibr-049]-A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-081). + + + + + + + + + + ibr-sr-27 + fatal + + + + [ibr-sr-27]-Payment means text (ibt-081) MUST occur maximum once + + + + + + + + + + ibr-sr-28 + fatal + + + + [ibr-sr-28]-Mandate reference identifier (ibt-089) MUST occur maximum once + + + + + + + + + + ibr-sr-45 + fatal + + + + [ibr-sr-45]-Due Date (ibt-009) MUST occur maximum once + + + + + + + + + + ibr-sr-46 + fatal + + + + [ibr-sr-46]-Payment means text (ibt-082) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-126 + fatal + + + + [ibr-126]- All currencyID attributes must have the same value as the Invoice currency code (ibt-005), except for amounts expected to be in Tax accounting currency (ibt-006). + + + + + + + + + + + + + + + + ibr-sr-05 + fatal + + + + [ibr-sr-05]-Payment terms (ibt-020) MUST occur maximum once. + + + + + + + + + + ibr-sr-60 + fatal + + + + [ibr-sr-60]-Payment Instruction ID (ibt-187) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-055 + fatal + + + + [ibr-055]-Each Preceding Invoice reference (ibg-03) MUST contain a Preceding Invoice reference (ibt-025). + + + + + + + + + + ibr-sr-07 + fatal + + + + [ibr-sr-07]-If there is a preceding invoice reference (ibg-03) , the preceding invoice number (ibt-025) MUST be present + + + + + + + + + + ibr-sr-06 + fatal + + + + [ibr-sr-06]-Preceding invoice reference (ibt-025) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-co-26 + fatal + + + + [ibr-co-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (ibt-029), the Seller legal registration identifier (ibt-030) and/or the Seller Tax identifier (ibt-031) MUST be present. + + + + + + + + + + ibr-081 + fatal + + + + [ibr-081]-The Seller electronic address (ibt-049) MUST be provided. + + + + + + + + + + ibr-sr-42 + fatal + + + + [ibr-sr-42]-Party tax scheme MUST occur maximum twice in accounting supplier party + + + + + + + + + + + + + + + + ibr-062 + fatal + + + + [ibr-062]-The Seller electronic address (ibt-034) MUST have a Scheme identifier. + + + + + + + + + + + + + + + + ibr-009 + fatal + + + + [ibr-009]-The Seller postal address (ibg-05) MUST contain a Seller country code (ibt-040). + + + + + + + + + + ibr-sr-53 + fatal + + + + [ibr-sr-53]-The Seller Postal Address Line (ibt-162) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-018 + fatal + + + + [ibr-018]-The Seller tax representative name (ibt-062) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11) + + + + + + + + + + ibr-019 + fatal + + + + [ibr-019]-The Seller tax representative postal address (ibg-12) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + + + + + + + + + + ibr-056 + fatal + + + + [ibr-056]-The Seller tax representative party (ibg-11) MUST have a Seller tax representative Tax identifier (ibt-063). + + + + + + + + + + ibr-sr-22 + fatal + + + + [ibr-sr-22]-Seller tax representative name (ibt-062) MUST occur maximum once, if the Seller has a tax representative + + + + + + + + + + ibr-sr-23 + fatal + + + + [ibr-sr-23]-Seller tax representative tax identifier (ibt-063) MUST occur maximum once, if the Seller has a tax representative + + + + + + + + + + + + + + + + ibr-020 + fatal + + + + [ibr-020]-The Seller tax representative postal address (ibg-12) MUST contain a Tax representative country code (ibt-069), if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + + + + + + + + + + ibr-sr-55 + fatal + + + + [ibr-sr-55]-The Tax Representative Postal Address Line (ibt-164) MUST occur maximum once + + + + + + + + + + + + + + + + ibr-124 + fatal + + + + [ibr-124]-Invoice total TAX amount (ibt-110) MUST have no more than 2 decimals. + + + + + + + + + + ibr-co-14 + fatal + + + + [ibr-co-14]-Invoice total Tax amount (ibt-110) = Σ Tax category tax amount (ibt-117). + + + + + + + + + + + + + + + + ibr-sr-32 + fatal + + + + [ibr-sr-32]-VAT exemption reason text (ibt-120) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-sr-57 + fatal + + + + [ibr-sr-57]-Company identifier MUST exist in the party tax scheme class. + + + + + + + + + + + + + + + + ibr-073 + fatal + + + + [ibr-073]-A date MUST be formatted YYYY-MM-DD in (ibt-002), (ibt-007), (ibt-009), (ibt-026), (ibt-072), (ibt-073), (ibt-074), (ibt-134), (ibt-135). + + + + + + + + + + + + + + + + ibr-119 + fatal + + + + [ibr-119]-A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168). + + + + + + + + + + + + + + + + ibr-074 + fatal + + + + [ibr-074]-Binary object elements (ibt-125) MUST contain the mime code attribute (ibt-125-1). + + + + + + + + + + ibr-075 + fatal + + + + [ibr-075]-Binary object elements (ibt-125) MUST contain the filename attribute (ibt-125-2). + + + + + + + + + + + + + + + + ibr-077 + fatal + + + + [ibr-077]-Tax accounting currency code (ibt-006) MUST be different from invoice currency code (ibt-005) when provided. + + + + + + + + + + + + + + + + ibr-079 + fatal + + + + [ibr-079]-Document MUST not contain empty elements. + + + + + + + + + + + + + + + + ibr-088 + fatal + + + + [ibr-088]-Unit code of price base quantity (ibt-150) MUST be same as invoiced quantity (ibt-130). + + + + + + + + + + + + + + + + ibr-092 + fatal + + + + [ibr-092]-If despatch advice reference exists on line (ibt-184) then there MUST not be despatch reference on document level (ibt-016). + + + + + + + + + + + + + + + + ibr-sr-62 + fatal + + + + [ibr-sr-62]-Despatch advice line reference (ibt-184) MUST occur maximum once. + + + + + + + + + + + + + + + + ibr-093 + fatal + + + + [ibr-093]-If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist. + + + + + + + + + + + + + + + + ibr-108 + fatal + + + + [ibr-108]-Deliver to party name (ibt-070) MUST occur maximum once. + + + + + + + + + + + + + + + + + + + + + + + ibr-cl-01-aunz-sb + fatal + + + + [ibr-cl-01-aunz-sb]-The document type code (ibt-003) MUST be coded by the self-billed invoice and credit note related code lists of UNTDID 1001. + + + + + + + + + + + + + + + + ibr-cl-03 + fatal + + + + [ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3. + + + + + + + + + + + + + + + + ibr-cl-04 + fatal + + + + [ibr-cl-04]-Invoice currency code (ibt-005) MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + ibr-cl-05 + fatal + + + + [ibr-cl-05]-Tax currency code (ibt-006) MUST be coded using ISO code list 4217 alpha-3 + + + + + + + + + + + + + + + + ibr-cl-07 + fatal + + + + [ibr-cl-07]-Object identifier identification scheme (ibt-018-1) (ibt-128-1) MUST be coded using a restriction of UNTDID 1153. + + + + + + + + + + + + + + + + ibr-cl-10 + fatal + + + + [ibr-cl-10]-Any identifier identification scheme (ibt-046-1), (ibt-060-1) MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + ibr-cl-11 + fatal + + + + [ibr-cl-11]-Any registration identifier identification scheme (ibt-030-1), (ibt-047-1), (ibt-061-1) MUST be coded using one of the ISO 6523 ICD list. + + + + + + + + + + + + + + + + ibr-cl-13 + fatal + + + + [ibr-cl-13]-Item classification identifier identification scheme (ibt-158-1) MUST be coded using one of the UNTDID 7143 list. + + + + + + + + + + + + + + + + ibr-cl-14 + fatal + + + + [ibr-cl-14]-Country codes in an invoice (ibt-040), (ibt-055), (ibt-069), (ibt-080), (ibt-175) MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + ibr-cl-15 + fatal + + + + [ibr-cl-15]-Origin country codes in an invoice (ibt-159) MUST be coded using ISO code list 3166-1 + + + + + + + + + + + + + + + + ibr-cl-16 + fatal + + + + [ibr-cl-16]-Payment means in an invoice (ibt-081) MUST be coded using UNCL4461 code list + + + + + + + + + + + + + + + + ibr-cl-19 + fatal + + + + [ibr-cl-19]-Coded allowance reasons (ibt-098), (ibt-140) MUST belong to the UNCL 5189 code list + + + + + + + + + + + + + + + + ibr-cl-20 + fatal + + + + [ibr-cl-20]-Coded charge reasons (ibt-105), (ibt-145) MUST belong to the UNCL 7161 code list + + + + + + + + + + + + + + + + ibr-cl-21 + fatal + + + + [ibr-cl-21]-Item standard identifier scheme identifier (ibt-157) MUST belong to the ISO 6523 ICD list. + + + + + + + + + + + + + + + + ibr-cl-23 + fatal + + + + [ibr-cl-23]-Unit code (ibt-130), (ibt-150) MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension + + + + + + + + + + + + + + + + ibr-cl-24 + fatal + + + + [ibr-cl-24]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + + + + + + + + + + + + + + ibr-cl-25 + fatal + + + + [ibr-cl-25]-Endpoint identifier scheme identifier (ibt-034-1), (ibt-049-1) MUST belong to the CEF EAS code list + + + + + + + + + + + + + + + + ibr-cl-26 + fatal + + + + [ibr-cl-26]-Delivery location identifier scheme identifier (ibt-071-1) MUST belong to the ISO 6523 ICD code list + + + + + + + + + + diff --git a/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-jurisdiction-aligned-rules-cn.xslt b/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-jurisdiction-aligned-rules-cn.xslt new file mode 100644 index 00000000..0d611477 --- /dev/null +++ b/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-jurisdiction-aligned-rules-cn.xslt @@ -0,0 +1,1553 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + +   +   +   + + + + + + + + + + + + + + + + UBL-modelaligned + UBL-modelaligned + + + + + + + + Codesmodelaligned + Codesmodelaligned + + + + + + + + + + + + + + + + + + + + + + + aligned-ibrp-sr-43 + fatal + + + + [aligned-ibrp-sr-43]-Scheme identifier shall only be used for invoiced object (ibt-018) (document type code with value 130) + + + + + + + + + + + + + + + + aligned-ibrp-004 + fatal + + + + [aligned-ibrp-004]-Item net price (ibt-146) MUST equal (Gross price (ibt-148) - Price discount (ibt-147)) when gross price is provided. + + + + + + + + + + + + + + + + aligned-ibrp-054 + fatal + + + + [aligned-ibrp-054]-Allowance amount (ibt-092, ibt-136) must equal base amount (ibt-093, ibt-137) * percentage (ibt-194, ibt-138) /100 if base amount and percentage exists. + + + + + + + + + + aligned-ibrp-032-aunz + fatal + + + + [aligned-ibrp-032-aunz]-Each Document level allowance (ibg-20) MUST have a Document level allowance tax category code (ibt-095). + + + + + + + + + + aligned-ibrp-057 + fatal + + + + [aligned-ibrp-057]-Either both or neither Allowance base amount (ibt-093) and percentage (ibt-094) MUST be provided. + + + + + + + + + + + + + + + + aligned-ibrp-055 + fatal + + + + [aligned-ibrp-055]-Charge amount (ibt-099, ibt-141) must equal base amount (ibt-100, ibt-142) * percentage (ibt-101, ibt-143) /100 if base amount and percentage exists. + + + + + + + + + + aligned-ibrp-037-aunz + fatal + + + + [aligned-ibrp-037-aunz]-Each Document level charge (ibg-21) MUST have a Document level charge tax category code (ibt-102). + + + + + + + + + + aligned-ibrp-058 + fatal + + + + [aligned-ibrp-058]-Either both or neither Charge base amount (ibt-100) and percentage (ibt-101) MUST be provided. + + + + + + + + + + + + + + + + aligned-ibrp-050-aunz + fatal + + + + [aligned-ibrp-050-aunz]-Each Invoice line (ibg-25) MUST be categorized with an Invoiced item tax category code (ibt-151). + + + + + + + + + + aligned-ibrp-053 + fatal + + + + [aligned-ibrp-053]-Invoice line net amount (ibt-131) MUST equal (Invoiced quantity (ibt-129) * (Item net price (ibt-146)/item price base quantity (ibt-149)) + Sum of invoice line charge amount (ibt-141) - sum of invoice line allowance amount (ibt-136). + + + + + + + + + + aligned-ibrp-059 + fatal + + + + [aligned-ibrp-059]-Invoice lines (ibg-25) MUST have one and only one classified tax category (ibt-151). + + + + + + + + + + aligned-ibrp-060 + fatal + + + + [aligned-ibrp-060]-Line Document reference can only be used for Invoice line object (ibg-36) + + + + + + + + + + + + + + + + aligned-ibrp-001-aunz-sb + fatal + + + + [aligned-ibrp-001-aunz-sb]-Specification identifier (ibt-024) MUST start with the value 'urn:peppol:pint:selfbilling-1@aunz-1'. + + + + + + + + + + aligned-ibrp-002-aunz-sb + fatal + + + + [aligned-ibrp-002-aunz-sb]-Business process (ibt-023) MUST be in the format 'urn:peppol:bis:selfbilling'. + + + + + + + + + + aligned-ibrp-003 + fatal + + + + [aligned-ibrp-003]-A buyer reference (ibt-010) or purchase order reference (ibt-013) MUST be provided. + + + + + + + + + + aligned-ibrp-006 + fatal + + + + [aligned-ibrp-006]-Tax point date (ibt-007) and tax point date code (ibt-008) are mutually exclusive. + + + + + + + + + + aligned-ibrp-008 + fatal + + + + [aligned-ibrp-008]-Invoice terms (ibg-033) MUST occur maximum once. + + + + + + + + + + aligned-ibrp-021 + fatal + + + + [aligned-ibrp-021]-Only one tax total (ibg-38) with tax subtotals (ibg-23) MUST be provided. + + + + + + + + + + aligned-ibrp-022 + fatal + + + + [aligned-ibrp-022]-Only one tax total without tax subtotals (ibg-37) MUST be provided when tax currency code (ibt-006) is provided. + + + + + + + + + + aligned-ibrp-e-01-aunz + fatal + + + + [aligned-ibrp-e-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Exempt from tax" MUST contain exactly one tax breakdown (ibg-23) with the tax category code (ibt-118) equal to "Exempt from tax". + + + + + + + + + + aligned-ibrp-g-01-aunz + fatal + + + + [aligned-ibrp-g-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Export" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Export". + + + + + + + + + + aligned-ibrp-o-01-aunz + fatal + + + + [aligned-ibrp-o-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Not subject to tax" MUST contain exactly one tax breakdown group (ibg-23) with the tax category code (ibt-118) equal to "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-11-aunz + fatal + + + + [aligned-ibrp-o-11-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain other tax breakdown groups (ibg-23). + + + + + + + + + + aligned-ibrp-o-12-aunz + fatal + + + + [aligned-ibrp-o-12-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is not "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-13-aunz + fatal + + + + [aligned-ibrp-o-13-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level allowances (ibg-20) where Document level allowance tax category code (ibt-095) is not "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-14-aunz + fatal + + + + [aligned-ibrp-o-14-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level charges (ibg-21) where Document level charge tax category code (ibt-102) is not "Not subject to tax". + + + + + + + + + + aligned-ibrp-s-01-aunz + fatal + + + + [aligned-ibrp-s-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Standard rated" MUST contain in the tax breakdown (ibg-23) at least one tax category code (ibt-118) equal with "Standard rated". + + + + + + + + + + aligned-ibrp-z-01-aunz + fatal + + + + [aligned-ibrp-z-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Zero rated" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Zero rated". + + + + + + + + + + aligned-ibrp-sr-12-aunz + fatal + + + + [aligned-ibrp-sr-12-aunz]-Seller tax identifier (ibt-031) MUST occur maximum once + + + + + + + + + + aligned-ibrp-sr-13-aunz + fatal + + + + [aligned-ibrp-sr-13-aunz]-Seller tax registration (ibt-032) MUST occur maximum once + + + + + + + + + + + + + + + + aligned-ibrp-005 + fatal + + + + [aligned-ibrp-005]- Amounts MUST be decimal up to two fraction digits. + + + + + + + + + + + + + + + + aligned-ibrp-045 + fatal + + + + [aligned-ibrp-045]-Each tax breakdown (ibg-23) MUST have a tax category taxable amount (ibt-116). + + + + + + + + + + aligned-ibrp-046 + fatal + + + + [aligned-ibrp-046]-Each tax breakdown (ibg-23) MUST have a tax category tax amount (ibt-117). + + + + + + + + + + aligned-ibrp-047-aunz + fatal + + + + [aligned-ibrp-047-aunz]-Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). + + + + + + + + + + aligned-ibrp-048-aunz + fatal + + + + [aligned-ibrp-048-aunz]-Each tax breakdown (ibg-23) MUST have a tax category rate (ibt-119), except if the Invoice is not subject to tax. + + + + + + + + + + aligned-ibrp-051-aunz + fatal + + + + [aligned-ibrp-051-aunz]-Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) / 100), rounded to two decimals. + + + + + + + + + + + + + + + + aligned-ibrp-016 + fatal + + + + [aligned-ibrp-016]-A Payment account identifier (ibt-084) MUST be present if Credit transfer (ibg-17) information is provided in the invoice. + + + + + + + + + + + + + + + + aligned-ibrp-061 + fatal + + + + [aligned-ibrp-061]-In case the Amount due for payment (ibt-115) is positive, either the Payment due date (ibt-009) or the Payment terms (ibt-020) shall be present. + + + + + + + + + + + + + + + + aligned-ibrp-018 + fatal + + + + [aligned-ibrp-018]-If the Payment means type code (ibt-081) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (ibt-084) MUST be present. + + + + + + + + + + aligned-ibrp-065 + fatal + + + + [aligned-ibrp-065]-Payment reference (ibt-083) MUST occur maximum once. + + + + + + + + + + + + + + + + aligned-ibrp-s-05-aunz + fatal + + + + [aligned-ibrp-s-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Standard rated" the Invoiced item tax rate (ibt-152) MUST be greater than zero. + + + + + + + + + + + + + + + + aligned-ibrp-s-06-aunz + fatal + + + + [aligned-ibrp-s-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Standard rated" the Document level allowance tax rate (ibt-096) MUST be greater than zero. + + + + + + + + + + + + + + + + aligned-ibrp-s-07-aunz + fatal + + + + [aligned-ibrp-s-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Standard rated" the Document level charge tax rate (ibt-103) MUST be greater than zero. + + + + + + + + + + + + + + + + aligned-ibrp-s-08-aunz + fatal + + + + [aligned-ibrp-s-08-aunz]-For each different value of tax category rate (ibt-119) where the tax category code (ibt-118) is "Standard rated", the tax category taxable amount (ibt-116) in a tax breakdown (ibg-23) MUST equal the sum of Invoice line net amounts (ibt-131) plus the sum of document level charge amounts (ibt-099) minus the sum of document level allowance amounts (ibt-092) where the tax category code (ibt-151, ibt-102, ibt-095) is "Standard rated" and the tax rate (ibt-152, ibt-103, ibt-096) equals the tax category rate (ibt-119). + + + + + + + + + + aligned-ibrp-s-09-aunz + fatal + + + + [aligned-ibrp-s-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Standard rated" MUST equal the tax category taxable amount (ibt-116) multiplied by the tax category rate (ibt-119). + + + + + + + + + + aligned-ibrp-s-10-aunz + fatal + + + + [aligned-ibrp-s-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Standard rate" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + + + + + + + + + + + + + + aligned-ibrp-z-05-aunz + fatal + + + + [aligned-ibrp-z-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Zero rated" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-z-06-aunz + fatal + + + + [aligned-ibrp-z-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Zero rated" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-z-07-aunz + fatal + + + + [aligned-ibrp-z-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Zero rated" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-z-08-aunz + fatal + + + + [aligned-ibrp-z-08-aunz]-In a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amount (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Zero rated". + + + + + + + + + + aligned-ibrp-z-09-aunz + fatal + + + + [aligned-ibrp-z-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" MUST equal 0 (zero). + + + + + + + + + + aligned-ibrp-z-10-aunz + fatal + + + + [aligned-ibrp-z-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Zero rated" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + + + + + + + + + + + + + + aligned-ibrp-e-05-aunz + fatal + + + + [aligned-ibrp-e-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Exempt from tax", the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-06-aunz + fatal + + + + [aligned-ibrp-e-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Exempt from tax", the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-07-aunz + fatal + + + + [aligned-ibrp-e-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Exempt from tax", the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-08-aunz + fatal + + + + [aligned-ibrp-e-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Exempt from tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Exempt from tax". + + + + + + + + + + aligned-ibrp-e-09-aunz + fatal + + + + [aligned-ibrp-e-09-aunz]-The tax category tax amount (ibt-117) In a tax breakdown (ibg-23) where the tax category code (ibt-118) equals "Exempt from tax" MUST equal 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-05-aunz + fatal + + + + [aligned-ibrp-g-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Export" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-06-aunz + fatal + + + + [aligned-ibrp-g-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Export" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-07-aunz + fatal + + + + [aligned-ibrp-g-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Export" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-08-aunz + fatal + + + + [aligned-ibrp-g-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Export". + + + + + + + + + + aligned-ibrp-g-09-aunz + fatal + + + + [aligned-ibrp-g-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-o-05-aunz + fatal + + + + [aligned-ibrp-o-05-aunz]-An Invoice line (ibg-25) where the tax category code (ibt-151) is "Not subject to tax" MUST not contain an Invoiced item tax rate (ibt-152). + + + + + + + + + + + + + + + + aligned-ibrp-o-06-aunz + fatal + + + + [aligned-ibrp-o-06-aunz]-A Document level allowance (ibg-20) where tax category code (ibt-095) is "Not subject to tax" MUST not contain a Document level allowance tax rate (ibt-096). + + + + + + + + + + + + + + + + aligned-ibrp-o-07-aunz + fatal + + + + [aligned-ibrp-o-07-aunz]-A Document level charge (ibg-21) where the tax category code (ibt-102) is "Not subject to tax" MUST not contain a Document level charge tax rate (ibt-103). + + + + + + + + + + + + + + + + aligned-ibrp-o-08-aunz + fatal + + + + [aligned-ibrp-o-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is " Not subject to tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-09-aunz + fatal + + + + [aligned-ibrp-o-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Not subject to tax" MUST be 0 (zero). + + + + + + + + + + + + + + + + + + + + + + + aligned-ibrp-cl-01-aunz + fatal + + + + [aligned-ibrp-cl-01-aunz]-Invoice tax categories (ibt-095) (ibt-102) (ibt-118) (ibt-192) (ibt-151) MUST be coded using UNCL5305 code list. + + + + + + + + + + + + + + + + aligned-ibrp-cl-02 + fatal + + + + [aligned-ibrp-cl-02]-Tax point date code (ibt-008) MUST be coded using a restriction of UNTDID 2005. + + + + + + + + + + + + + + + + aligned-ibrp-cl-04 + fatal + + + + [aligned-ibrp-cl-04]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + + + + + + + + + + + + + + aligned-ibr-001-aunz + fatal + + + + [aligned-ibr-001-aunz]-An invoice must contain the Seller's ABN (ibt-030) if Seller country (ibt-040) is Australia + + + + + + + + + + + + + + + + aligned-ibr-004-aunz + fatal + + + + [aligned-ibr-004-aunz]-An invoice must contain the Buyer's ABN (ibt-047) if Buyer country (ibt-055) is Australia + + + + + + + + + + + + + + + + aligned-ibr-002-aunz + fatal + + + + [aligned-ibr-002-aunz]-An invoice must contain the Seller's NZBN (ibt-030) if Seller country (ibt-040) is New Zealand + + + + + + + + + + + + + + + + aligned-ibr-005-aunz + fatal + + + + [aligned-ibr-005-aunz]-An invoice must contain the Buyer's NZBN (ibt-047) if Buyer country (ibt-055) is New Zealand + + + + + + + + + + diff --git a/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-jurisdiction-aligned-rules-inv.xslt b/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-jurisdiction-aligned-rules-inv.xslt new file mode 100644 index 00000000..0d611477 --- /dev/null +++ b/phive-rules-peppol/src/main/resources/external/schematron/pint-aunz/1.0.1/xslt/selfbilling/PINT-jurisdiction-aligned-rules-inv.xslt @@ -0,0 +1,1553 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + +   +   +   + + + + + + + + + + + + + + + + UBL-modelaligned + UBL-modelaligned + + + + + + + + Codesmodelaligned + Codesmodelaligned + + + + + + + + + + + + + + + + + + + + + + + aligned-ibrp-sr-43 + fatal + + + + [aligned-ibrp-sr-43]-Scheme identifier shall only be used for invoiced object (ibt-018) (document type code with value 130) + + + + + + + + + + + + + + + + aligned-ibrp-004 + fatal + + + + [aligned-ibrp-004]-Item net price (ibt-146) MUST equal (Gross price (ibt-148) - Price discount (ibt-147)) when gross price is provided. + + + + + + + + + + + + + + + + aligned-ibrp-054 + fatal + + + + [aligned-ibrp-054]-Allowance amount (ibt-092, ibt-136) must equal base amount (ibt-093, ibt-137) * percentage (ibt-194, ibt-138) /100 if base amount and percentage exists. + + + + + + + + + + aligned-ibrp-032-aunz + fatal + + + + [aligned-ibrp-032-aunz]-Each Document level allowance (ibg-20) MUST have a Document level allowance tax category code (ibt-095). + + + + + + + + + + aligned-ibrp-057 + fatal + + + + [aligned-ibrp-057]-Either both or neither Allowance base amount (ibt-093) and percentage (ibt-094) MUST be provided. + + + + + + + + + + + + + + + + aligned-ibrp-055 + fatal + + + + [aligned-ibrp-055]-Charge amount (ibt-099, ibt-141) must equal base amount (ibt-100, ibt-142) * percentage (ibt-101, ibt-143) /100 if base amount and percentage exists. + + + + + + + + + + aligned-ibrp-037-aunz + fatal + + + + [aligned-ibrp-037-aunz]-Each Document level charge (ibg-21) MUST have a Document level charge tax category code (ibt-102). + + + + + + + + + + aligned-ibrp-058 + fatal + + + + [aligned-ibrp-058]-Either both or neither Charge base amount (ibt-100) and percentage (ibt-101) MUST be provided. + + + + + + + + + + + + + + + + aligned-ibrp-050-aunz + fatal + + + + [aligned-ibrp-050-aunz]-Each Invoice line (ibg-25) MUST be categorized with an Invoiced item tax category code (ibt-151). + + + + + + + + + + aligned-ibrp-053 + fatal + + + + [aligned-ibrp-053]-Invoice line net amount (ibt-131) MUST equal (Invoiced quantity (ibt-129) * (Item net price (ibt-146)/item price base quantity (ibt-149)) + Sum of invoice line charge amount (ibt-141) - sum of invoice line allowance amount (ibt-136). + + + + + + + + + + aligned-ibrp-059 + fatal + + + + [aligned-ibrp-059]-Invoice lines (ibg-25) MUST have one and only one classified tax category (ibt-151). + + + + + + + + + + aligned-ibrp-060 + fatal + + + + [aligned-ibrp-060]-Line Document reference can only be used for Invoice line object (ibg-36) + + + + + + + + + + + + + + + + aligned-ibrp-001-aunz-sb + fatal + + + + [aligned-ibrp-001-aunz-sb]-Specification identifier (ibt-024) MUST start with the value 'urn:peppol:pint:selfbilling-1@aunz-1'. + + + + + + + + + + aligned-ibrp-002-aunz-sb + fatal + + + + [aligned-ibrp-002-aunz-sb]-Business process (ibt-023) MUST be in the format 'urn:peppol:bis:selfbilling'. + + + + + + + + + + aligned-ibrp-003 + fatal + + + + [aligned-ibrp-003]-A buyer reference (ibt-010) or purchase order reference (ibt-013) MUST be provided. + + + + + + + + + + aligned-ibrp-006 + fatal + + + + [aligned-ibrp-006]-Tax point date (ibt-007) and tax point date code (ibt-008) are mutually exclusive. + + + + + + + + + + aligned-ibrp-008 + fatal + + + + [aligned-ibrp-008]-Invoice terms (ibg-033) MUST occur maximum once. + + + + + + + + + + aligned-ibrp-021 + fatal + + + + [aligned-ibrp-021]-Only one tax total (ibg-38) with tax subtotals (ibg-23) MUST be provided. + + + + + + + + + + aligned-ibrp-022 + fatal + + + + [aligned-ibrp-022]-Only one tax total without tax subtotals (ibg-37) MUST be provided when tax currency code (ibt-006) is provided. + + + + + + + + + + aligned-ibrp-e-01-aunz + fatal + + + + [aligned-ibrp-e-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Exempt from tax" MUST contain exactly one tax breakdown (ibg-23) with the tax category code (ibt-118) equal to "Exempt from tax". + + + + + + + + + + aligned-ibrp-g-01-aunz + fatal + + + + [aligned-ibrp-g-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Export" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Export". + + + + + + + + + + aligned-ibrp-o-01-aunz + fatal + + + + [aligned-ibrp-o-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Not subject to tax" MUST contain exactly one tax breakdown group (ibg-23) with the tax category code (ibt-118) equal to "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-11-aunz + fatal + + + + [aligned-ibrp-o-11-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain other tax breakdown groups (ibg-23). + + + + + + + + + + aligned-ibrp-o-12-aunz + fatal + + + + [aligned-ibrp-o-12-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is not "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-13-aunz + fatal + + + + [aligned-ibrp-o-13-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level allowances (ibg-20) where Document level allowance tax category code (ibt-095) is not "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-14-aunz + fatal + + + + [aligned-ibrp-o-14-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level charges (ibg-21) where Document level charge tax category code (ibt-102) is not "Not subject to tax". + + + + + + + + + + aligned-ibrp-s-01-aunz + fatal + + + + [aligned-ibrp-s-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Standard rated" MUST contain in the tax breakdown (ibg-23) at least one tax category code (ibt-118) equal with "Standard rated". + + + + + + + + + + aligned-ibrp-z-01-aunz + fatal + + + + [aligned-ibrp-z-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Zero rated" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Zero rated". + + + + + + + + + + aligned-ibrp-sr-12-aunz + fatal + + + + [aligned-ibrp-sr-12-aunz]-Seller tax identifier (ibt-031) MUST occur maximum once + + + + + + + + + + aligned-ibrp-sr-13-aunz + fatal + + + + [aligned-ibrp-sr-13-aunz]-Seller tax registration (ibt-032) MUST occur maximum once + + + + + + + + + + + + + + + + aligned-ibrp-005 + fatal + + + + [aligned-ibrp-005]- Amounts MUST be decimal up to two fraction digits. + + + + + + + + + + + + + + + + aligned-ibrp-045 + fatal + + + + [aligned-ibrp-045]-Each tax breakdown (ibg-23) MUST have a tax category taxable amount (ibt-116). + + + + + + + + + + aligned-ibrp-046 + fatal + + + + [aligned-ibrp-046]-Each tax breakdown (ibg-23) MUST have a tax category tax amount (ibt-117). + + + + + + + + + + aligned-ibrp-047-aunz + fatal + + + + [aligned-ibrp-047-aunz]-Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). + + + + + + + + + + aligned-ibrp-048-aunz + fatal + + + + [aligned-ibrp-048-aunz]-Each tax breakdown (ibg-23) MUST have a tax category rate (ibt-119), except if the Invoice is not subject to tax. + + + + + + + + + + aligned-ibrp-051-aunz + fatal + + + + [aligned-ibrp-051-aunz]-Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) / 100), rounded to two decimals. + + + + + + + + + + + + + + + + aligned-ibrp-016 + fatal + + + + [aligned-ibrp-016]-A Payment account identifier (ibt-084) MUST be present if Credit transfer (ibg-17) information is provided in the invoice. + + + + + + + + + + + + + + + + aligned-ibrp-061 + fatal + + + + [aligned-ibrp-061]-In case the Amount due for payment (ibt-115) is positive, either the Payment due date (ibt-009) or the Payment terms (ibt-020) shall be present. + + + + + + + + + + + + + + + + aligned-ibrp-018 + fatal + + + + [aligned-ibrp-018]-If the Payment means type code (ibt-081) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (ibt-084) MUST be present. + + + + + + + + + + aligned-ibrp-065 + fatal + + + + [aligned-ibrp-065]-Payment reference (ibt-083) MUST occur maximum once. + + + + + + + + + + + + + + + + aligned-ibrp-s-05-aunz + fatal + + + + [aligned-ibrp-s-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Standard rated" the Invoiced item tax rate (ibt-152) MUST be greater than zero. + + + + + + + + + + + + + + + + aligned-ibrp-s-06-aunz + fatal + + + + [aligned-ibrp-s-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Standard rated" the Document level allowance tax rate (ibt-096) MUST be greater than zero. + + + + + + + + + + + + + + + + aligned-ibrp-s-07-aunz + fatal + + + + [aligned-ibrp-s-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Standard rated" the Document level charge tax rate (ibt-103) MUST be greater than zero. + + + + + + + + + + + + + + + + aligned-ibrp-s-08-aunz + fatal + + + + [aligned-ibrp-s-08-aunz]-For each different value of tax category rate (ibt-119) where the tax category code (ibt-118) is "Standard rated", the tax category taxable amount (ibt-116) in a tax breakdown (ibg-23) MUST equal the sum of Invoice line net amounts (ibt-131) plus the sum of document level charge amounts (ibt-099) minus the sum of document level allowance amounts (ibt-092) where the tax category code (ibt-151, ibt-102, ibt-095) is "Standard rated" and the tax rate (ibt-152, ibt-103, ibt-096) equals the tax category rate (ibt-119). + + + + + + + + + + aligned-ibrp-s-09-aunz + fatal + + + + [aligned-ibrp-s-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Standard rated" MUST equal the tax category taxable amount (ibt-116) multiplied by the tax category rate (ibt-119). + + + + + + + + + + aligned-ibrp-s-10-aunz + fatal + + + + [aligned-ibrp-s-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Standard rate" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + + + + + + + + + + + + + + aligned-ibrp-z-05-aunz + fatal + + + + [aligned-ibrp-z-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Zero rated" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-z-06-aunz + fatal + + + + [aligned-ibrp-z-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Zero rated" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-z-07-aunz + fatal + + + + [aligned-ibrp-z-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Zero rated" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-z-08-aunz + fatal + + + + [aligned-ibrp-z-08-aunz]-In a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amount (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Zero rated". + + + + + + + + + + aligned-ibrp-z-09-aunz + fatal + + + + [aligned-ibrp-z-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" MUST equal 0 (zero). + + + + + + + + + + aligned-ibrp-z-10-aunz + fatal + + + + [aligned-ibrp-z-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Zero rated" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + + + + + + + + + + + + + + aligned-ibrp-e-05-aunz + fatal + + + + [aligned-ibrp-e-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Exempt from tax", the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-06-aunz + fatal + + + + [aligned-ibrp-e-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Exempt from tax", the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-07-aunz + fatal + + + + [aligned-ibrp-e-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Exempt from tax", the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-08-aunz + fatal + + + + [aligned-ibrp-e-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Exempt from tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Exempt from tax". + + + + + + + + + + aligned-ibrp-e-09-aunz + fatal + + + + [aligned-ibrp-e-09-aunz]-The tax category tax amount (ibt-117) In a tax breakdown (ibg-23) where the tax category code (ibt-118) equals "Exempt from tax" MUST equal 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-05-aunz + fatal + + + + [aligned-ibrp-g-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Export" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-06-aunz + fatal + + + + [aligned-ibrp-g-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Export" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-07-aunz + fatal + + + + [aligned-ibrp-g-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Export" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-08-aunz + fatal + + + + [aligned-ibrp-g-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Export". + + + + + + + + + + aligned-ibrp-g-09-aunz + fatal + + + + [aligned-ibrp-g-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-o-05-aunz + fatal + + + + [aligned-ibrp-o-05-aunz]-An Invoice line (ibg-25) where the tax category code (ibt-151) is "Not subject to tax" MUST not contain an Invoiced item tax rate (ibt-152). + + + + + + + + + + + + + + + + aligned-ibrp-o-06-aunz + fatal + + + + [aligned-ibrp-o-06-aunz]-A Document level allowance (ibg-20) where tax category code (ibt-095) is "Not subject to tax" MUST not contain a Document level allowance tax rate (ibt-096). + + + + + + + + + + + + + + + + aligned-ibrp-o-07-aunz + fatal + + + + [aligned-ibrp-o-07-aunz]-A Document level charge (ibg-21) where the tax category code (ibt-102) is "Not subject to tax" MUST not contain a Document level charge tax rate (ibt-103). + + + + + + + + + + + + + + + + aligned-ibrp-o-08-aunz + fatal + + + + [aligned-ibrp-o-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is " Not subject to tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Not subject to tax". + + + + + + + + + + aligned-ibrp-o-09-aunz + fatal + + + + [aligned-ibrp-o-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Not subject to tax" MUST be 0 (zero). + + + + + + + + + + + + + + + + + + + + + + + aligned-ibrp-cl-01-aunz + fatal + + + + [aligned-ibrp-cl-01-aunz]-Invoice tax categories (ibt-095) (ibt-102) (ibt-118) (ibt-192) (ibt-151) MUST be coded using UNCL5305 code list. + + + + + + + + + + + + + + + + aligned-ibrp-cl-02 + fatal + + + + [aligned-ibrp-cl-02]-Tax point date code (ibt-008) MUST be coded using a restriction of UNTDID 2005. + + + + + + + + + + + + + + + + aligned-ibrp-cl-04 + fatal + + + + [aligned-ibrp-cl-04]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + + + + + + + + + + + + + + aligned-ibr-001-aunz + fatal + + + + [aligned-ibr-001-aunz]-An invoice must contain the Seller's ABN (ibt-030) if Seller country (ibt-040) is Australia + + + + + + + + + + + + + + + + aligned-ibr-004-aunz + fatal + + + + [aligned-ibr-004-aunz]-An invoice must contain the Buyer's ABN (ibt-047) if Buyer country (ibt-055) is Australia + + + + + + + + + + + + + + + + aligned-ibr-002-aunz + fatal + + + + [aligned-ibr-002-aunz]-An invoice must contain the Seller's NZBN (ibt-030) if Seller country (ibt-040) is New Zealand + + + + + + + + + + + + + + + + aligned-ibr-005-aunz + fatal + + + + [aligned-ibr-005-aunz]-An invoice must contain the Buyer's NZBN (ibt-047) if Buyer country (ibt-055) is New Zealand + + + + + + + + + + diff --git a/phive-rules-peppol/src/test/java/com/helger/phive/peppol/mock/CTestFiles.java b/phive-rules-peppol/src/test/java/com/helger/phive/peppol/mock/CTestFiles.java index c90c8acd..ac4be397 100644 --- a/phive-rules-peppol/src/test/java/com/helger/phive/peppol/mock/CTestFiles.java +++ b/phive-rules-peppol/src/test/java/com/helger/phive/peppol/mock/CTestFiles.java @@ -61,7 +61,7 @@ private CTestFiles () public static ICommonsList getAllTestFiles () { final ICommonsList ret = new CommonsArrayList <> (); - for (final VESID aESID : new VESID [] { /* AU_NZ */ + for (final VESID aESID : new VESID [] { /* BIS AU_NZ */ PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_109, PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_109, PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_109, @@ -77,14 +77,14 @@ public static ICommonsList getAllTestFiles () PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_INVOICE_SELF_BILLING_1_0_11, PeppolValidationBisAUNZ.VID_OPENPEPPOL_BIS3_AUNZ_UBL_CREDIT_NOTE_SELF_BILLING_1_0_11, - /* Singapore */ + /* BIS Singapore */ PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_INVOICE_2023_7, PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_CREDIT_NOTE_2023_7, PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_INVOICE_2023_12, PeppolValidationBisSG.VID_OPENPEPPOL_BIS3_SG_UBL_CREDIT_NOTE_2023_12, - /* OpenPeppol */ + /* OpenPeppol BIS */ PeppolValidation2023_05.VID_OPENPEPPOL_INVOICE_UBL_V3, PeppolValidation2023_05.VID_OPENPEPPOL_CREDIT_NOTE_UBL_V3, // PeppolValidation2023_05.VID_OPENPEPPOL_INVOICE_CII_V3, @@ -133,12 +133,12 @@ public static ICommonsList getAllTestFiles () PeppolValidation2024_05.VID_OPENPEPPOL_ORDER_CANCELLATION_V3, PeppolValidation2024_05.VID_OPENPEPPOL_ORDER_RESPONSE_ADVANCED_V3, - /* Directory */ + /* OpenPeppol Directory */ PeppolValidationDirectory.VID_OPENPEPPOL_BUSINESS_CARD_V1, PeppolValidationDirectory.VID_OPENPEPPOL_BUSINESS_CARD_V2, PeppolValidationDirectory.VID_OPENPEPPOL_BUSINESS_CARD_V3, - /* Reporting */ + /* OpenPeppol Reporting */ PeppolValidationReporting.VID_OPENPEPPOL_EUSR_V114, PeppolValidationReporting.VID_OPENPEPPOL_EUSR_V115, @@ -148,6 +148,8 @@ public static ICommonsList getAllTestFiles () /* PINT A-NZ */ PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_1_0_1, PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_1_0_1, + PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_SELF_BILLING_1_0_1, + PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_SELF_BILLING_1_0_1, /* PINT Japan */ PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_012, @@ -656,7 +658,7 @@ public static ICommonsList getAllMatchingTestFiles /* PINT AUNZ */ if (aVESID.equals (PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_1_0_1)) { - final String sPrefix = sPrefix0 + "pint-aunz/1.0.1/"; + final String sPrefix = sPrefix0 + "pint-aunz/1.0.1/billing/"; return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Freight - Document Level.xml"), new FileSystemResource (sPrefix + "AU Freight - Line Item.xml"), new FileSystemResource (sPrefix + "AU Freight Only - Line Item.xml"), @@ -677,10 +679,23 @@ public static ICommonsList getAllMatchingTestFiles } if (aVESID.equals (PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_1_0_1)) { - final String sPrefix = sPrefix0 + "pint-aunz/1.0.1/"; + final String sPrefix = sPrefix0 + "pint-aunz/1.0.1/billing/"; return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Credit note.xml"), new FileSystemResource (sPrefix + "NZ Credit note.xml")); } + if (aVESID.equals (PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_SELF_BILLING_1_0_1)) + { + final String sPrefix = sPrefix0 + "pint-aunz/1.0.1/selfbilling/"; + return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AUNZ Self Billing.xml"), + new FileSystemResource (sPrefix + "AU Self Billing - Negative Invoice.xml"), + new FileSystemResource (sPrefix + "NZ Self Billing.xml")); + } + if (aVESID.equals (PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_SELF_BILLING_1_0_1)) + { + final String sPrefix = sPrefix0 + "pint-aunz/1.0.1/selfbilling/"; + return new CommonsArrayList <> (new FileSystemResource (sPrefix + "AU Self Billed Credit Note.xml"), + new FileSystemResource (sPrefix + "NZ Self Billed Credit note.xml")); + } /* Peppol JP */ if (aVESID.equals (PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_012)) diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-UBL-validation-preprocessed-cn.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-UBL-validation-preprocessed-cn.sch similarity index 100% rename from phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-UBL-validation-preprocessed-cn.sch rename to phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-UBL-validation-preprocessed-cn.sch diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-UBL-validation-preprocessed-inv.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-UBL-validation-preprocessed-inv.sch similarity index 100% rename from phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-UBL-validation-preprocessed-inv.sch rename to phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-UBL-validation-preprocessed-inv.sch diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-jurisdiction-aligned-rules-cn.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-jurisdiction-aligned-rules-cn.sch similarity index 100% rename from phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-jurisdiction-aligned-rules-cn.sch rename to phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-jurisdiction-aligned-rules-cn.sch diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-jurisdiction-aligned-rules-inv.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-jurisdiction-aligned-rules-inv.sch similarity index 100% rename from phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/PINT-jurisdiction-aligned-rules-inv.sch rename to phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/billing/PINT-jurisdiction-aligned-rules-inv.sch diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-UBL-validation-preprocessed-cn.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-UBL-validation-preprocessed-cn.sch new file mode 100644 index 00000000..06a7f925 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-UBL-validation-preprocessed-cn.sch @@ -0,0 +1,392 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ibr-068]-GLN MUST have a valid format according to GS1 rules for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-127]-Swedish organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-069]-Norwegian organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-070]-Danish organization number (CVR) MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-113]-Belgian enterprise number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-114]-IPA Code (Codice Univoco Unità Organizzativa) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-115]-Tax Code (Codice Fiscale) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-116]-Italian VAT Code (Partita Iva) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-120]-Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-083]-Charge on price level (ibt-147) is NOT allowed. Only value 'false' allowed. + + + [ibr-sr-30]-Allowance reason (ibt-097) MUST occur maximum once + [ibr-031]-Allowance (ibg-20) MUST have an allowance amount (ibt-092). + [ibr-033]-Each Document level allowance (ibg-20) MUST have a Document level allowance reason (ibt-097) or a Document level allowance reason code (ibt-098). + [ibr-041]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance amount (ibt-136). + [ibr-042]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance reason (ibt-139) or an Invoice line allowance reason code (ibt-140). + + + [ibr-036]-Charge (ibg-21) MUST have a charge amount (ibt-099). + [ibr-sr-31]-Charge reason (ibt-104) MUST occur maximum once + [ibr-038]-Each Document level charge (ibg-21) MUST have a Document level charge reason (ibt-104) or a Document level charge reason code (ibt-105). + [ibr-043]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge amount (ibt-141). + [ibr-044]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145). + + + [ibr-082]-Allowance/charge indicator value MUST equal 'true' or 'false'. + + + [ibr-sr-61]-Allowance/charge tax exemption reason (ibt-197) (ibt-199) MUST occur maximum once. + + + [ibr-052]-Each Additional supporting document (ibg-24) MUST contain a Supporting document reference (ibt-122).    + [ibr-sr-33]-Supporting document description (ibt-123) MUST occur maximum once + + + [ibr-080]-The Buyer electronic address (ibt-049) MUST be provided. + + + [ibr-063]-The Buyer electronic address (ibt-049) MUST have a Scheme identifier.    + + + [ibr-011]-The Buyer postal address (ibg-08) MUST contain a Buyer country code (ibt-055). + [ibr-sr-54]-The Buyer Postal Address Line (ibt-163) MUST occur maximum once + + + [ibr-057]-Each Deliver to address (ibg-15) MUST contain a Deliver to country code (ibt-080). + [ibr-sr-56]-The Delivery Postal Address Line (ibt-165) MUST occur maximum once + + + [ibr-012]-An Invoice MUST have the Sum of Invoice line net amount (ibt-106). + [ibr-013]-An Invoice MUST have the Invoice total amount without Tax (ibt-109). + [ibr-014]-An Invoice MUST have the Invoice total amount with Tax (ibt-112). + [ibr-015]-An Invoice MUST have the Amount due for payment (ibt-115). + [ibr-091]-Invoice amount due for payment (ibt-115) MUST have no more than 2 decimals. + [ibr-121]-Document level allowance amount (ibt-107) MUST have no more than 2 decimals. + [ibr-122]-Document level charge amount (ibt-108) MUST have no more than 2 decimals. + [ibr-123]-Invoice total amount without TAX (ibt-109) MUST have no more than 2 decimals. + [ibr-125]- Invoice total amount with TAX (ibt-112) MUST have no more than 2 decimals. + [ibr-co-10]-Sum of Invoice line net amount (ibt-106) = Σ Invoice line net amount (ibt-131). + [ibr-co-11]-Sum of allowances on document level (ibt-107) = Σ Document level allowance amount (ibt-092). + [ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099). + [ibr-co-13]-Invoice total amount without Tax (ibt-109) = Σ Invoice line net amount (ibt-131) - Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-108). + [ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114). + + + [ibr-001]-An Invoice MUST have a Specification identifier (ibt-024). + [ibr-002]-An Invoice MUST have an Invoice number (ibt-001). + [ibr-003]-An Invoice MUST have an Invoice issue date (ibt-002). + [ibr-004]-An Invoice MUST have an Invoice type code (ibt-003). + [ibr-005]-An Invoice MUST have an Invoice currency code (ibt-005). + [ibr-006]-An Invoice MUST contain the Seller name (ibt-027). + [ibr-007]-An Invoice MUST contain the Buyer name (ibt-044). + [ibr-008]-An Invoice MUST contain the Seller postal address (ibg-05). + [ibr-010]-An Invoice MUST contain the Buyer postal address (ibg-08). + [ibr-016]-An Invoice MUST have at least one Invoice line (ibg-25) + [ibr-053]-If the Tax accounting currency code (ibt-006) is present, then the Invoice total Tax amount in accounting currency (ibt-111) MUST be provided. + [ibr-066]-An Invoice MUST contain maximum one Payment Card account (ibg-18). + [ibr-067]-An Invoice MUST contain maximum one Payment Mandate (ibg-19). + [ibr-071]-An invoice should not include an AdditonalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Attachment (ibt-125). + [ibr-072]-An invoice MUST not include an AdditionalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Document Description (ibt-123). + [ibr-076]-Business process (ibt-023) MUST be provided. + [ibr-078]-Only one invoiced object (ibt-018) is allowed on document level. + [ibr-084]-Invoice total tax amount (ibt-110) and Invoice total tax amount in accounting currency (ibt-111) MUST have the same operational sign. + [ibr-087]-Base quantity (ibt-149) MUST be a positive number above zero. + [ibr-090]-Only one project reference (ibt-011) is allowed on document level. + [ibr-094]-Contract reference (ibt-012) MUST occur maximum once. + [ibr-095]-Receiving advice reference (ibt-015) MUST occur maximum once. + [ibr-096]-Despatch advice reference (ibt-016) MUST occur maximum once. + [ibr-097]-Invoicing period (ibg-14) MUST occur maximum once. + [ibr-098]-Seller name (ibt-027) MUST occur maximum once. + [ibr-099]-Seller trader name (ibt-028) MUST occur maximum once. + [ibr-100]-Seller legal registration identifier (ibt-030) MUST occur maximum once. + [ibr-101]-Seller additional legal information (ibt-033) MUST occur maximum once. + [ibr-102]-Buyer name (ibt-044) MUST occur maximum once. + [ibr-103]-Buyer legal registration identifier (ibt-047) MUST occur maximum once. + [ibr-104]-Buyer tax identifier (ibt-048) MUST occur maximum once. + [ibr-107]-Deliver to information (ibg-13) MUST occur maximum once. + [ibr-112]-Buyer trader name (ibt-045) MUST occur maximum once. + [ibr-co-15]-Invoice total amount with Tax (ibt-112) = Invoice total amount without Tax (ibt-109) + Invoice total Tax amount (ibt-110). + [ibr-sr-16]-Buyer identifier (ibt-046) MUST occur maximum once + [ibr-sr-39]-Project reference (ibt-011) MUST occur maximum once. + [ibr-sr-49]-Value tax point date (ibt-007) MUST occur maximum once + [ibr-sr-51]-Note (ibt-022) MUST occur maximum once + [ibr-sr-52]-Tender or lot reference (ibt-017) MUST occur maximum once + + + [ibr-021]-Each Invoice line (ibg-25) MUST have an Invoice line identifier (ibt-126). + [ibr-022]-Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129).. + [ibr-023]-An Invoice line (ibg-25) MUST have an Invoiced quantity unit of measure code (ibt-130). + [ibr-024]-Each Invoice line (ibg-25) MUST have an Invoice line net amount (ibt-131). + [ibr-025]-Each Invoice line (ibg-25) MUST contain the Item name (ibt-153). + [ibr-026]-Each Invoice line (ibg-25) MUST contain the Item net price (ibt-146). + [ibr-027]-The Item net price (ibt-146) MUST NOT be negative. + [ibr-028]-The Item gross price (ibt-148) MUST NOT be negative. + [ibr-089]-Only one invoiced object (ibt-128) is allowed per line (ibg-25). + [ibr-109]-Referenced purchase order line identifier (ibt-132) MUST occur maximum once. + [ibr-110]-Invoice line period (ibg-26) MUST occur maximum once. + [ibr-111]-Item price discount (ibt-147) MUST occur maximum once. + [ibr-sr-34]-Invoice line note (ibt-127) MUST occur maximum once + [ibr-sr-38]-Invoiced item tax exemption reason text (ibt-185) MUST occur maximum once + [ibr-sr-50]-Item description (ibt-154) MUST occur maximum once + + + [ibr-085]-Start date of line period (ibt-134) MUST be within invoice period (ibg-14). + [ibr-086]-End date of line period (ibt-135) MUST be within invoice period (ibg-14). + [ibr-030]-If both Invoice line period start date (ibt-134) and Invoice line period end date (ibt-135) are given then the Invoice line period end date (ibt-135) MUST be later or equal to the Invoice line period start date (ibt-134). + [ibr-co-20]-If Invoice line period (ibg-26) is used, the Invoice line period start date (ibt-134) or the Invoice line period end date (ibt-135) MUST be filled, or both. + + + [ibr-029]-If both Invoicing period start date (ibt-073) and Invoicing period end date (ibt-074) are given then the Invoicing period end date (ibt-074) MUST be later or equal to the Invoicing period start date (ibt-073). + [ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) MUST be filled, or both. + + + [ibr-054]-Each Item attribute (ibg-32) MUST contain an Item attribute name (ibt-160) and an Item attribute value (ibt-161). + + + [ibr-065]-The Item classification identifier (ibt-158) MUST have a Scheme identifier. + + + [ibr-064]-The Item standard identifier (ibt-157) MUST have a Scheme identifier. + + + [ibr-sr-58]-The Invoiced item TAX category code (ibt-151) MUST be present. + + + [ibr-017]-The Payee name (ibt-059) MUST be provided in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + [ibr-105]-The Payee identifier (ibt-060) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + [ibr-106]-The Payee legal identifier (ibt-061) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + [ibr-sr-19]-Payee name (ibt-059) MUST occur maximum once, if the Payee is different from the Seller + + + [ibr-sr-59]-The Payee Postal Address Line (ibt-174) MUST occur maximum once + + + [ibr-049]-A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-081). + [ibr-sr-27]-Payment means text (ibt-081) MUST occur maximum once + [ibr-sr-28]-Mandate reference identifier (ibt-089) MUST occur maximum once + [ibr-sr-45]-Due Date (ibt-009) MUST occur maximum once + [ibr-sr-46]-Payment means text (ibt-082) MUST occur maximum once + + + [ibr-126]- All currencyID attributes must have the same value as the Invoice currency code (ibt-005), except for amounts expected to be in Tax accounting currency (ibt-006). + + + [ibr-sr-05]-Payment terms (ibt-020) MUST occur maximum once. + [ibr-sr-60]-Payment Instruction ID (ibt-187) MUST occur maximum once. + + + [ibr-055]-Each Preceding Invoice reference (ibg-03) MUST contain a Preceding Invoice reference (ibt-025). + [ibr-sr-07]-If there is a preceding invoice reference (ibg-03) , the preceding invoice number (ibt-025) MUST be present + [ibr-sr-06]-Preceding invoice reference (ibt-025) MUST occur maximum once + + + [ibr-co-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (ibt-029), the Seller legal registration identifier (ibt-030) and/or the Seller Tax identifier (ibt-031) MUST be present. + [ibr-081]-The Seller electronic address (ibt-049) MUST be provided. + [ibr-sr-42]-Party tax scheme MUST occur maximum twice in accounting supplier party + + + [ibr-062]-The Seller electronic address (ibt-034) MUST have a Scheme identifier. + + + [ibr-009]-The Seller postal address (ibg-05) MUST contain a Seller country code (ibt-040). + [ibr-sr-53]-The Seller Postal Address Line (ibt-162) MUST occur maximum once + + + [ibr-018]-The Seller tax representative name (ibt-062) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11) + [ibr-019]-The Seller tax representative postal address (ibg-12) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + [ibr-056]-The Seller tax representative party (ibg-11) MUST have a Seller tax representative Tax identifier (ibt-063). + [ibr-sr-22]-Seller tax representative name (ibt-062) MUST occur maximum once, if the Seller has a tax representative + [ibr-sr-23]-Seller tax representative tax identifier (ibt-063) MUST occur maximum once, if the Seller has a tax representative + + + [ibr-020]-The Seller tax representative postal address (ibg-12) MUST contain a Tax representative country code (ibt-069), if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + [ibr-sr-55]-The Tax Representative Postal Address Line (ibt-164) MUST occur maximum once + + + [ibr-124]-Invoice total TAX amount (ibt-110) MUST have no more than 2 decimals. + [ibr-co-14]-Invoice total Tax amount (ibt-110) = Σ Tax category tax amount (ibt-117). + + + [ibr-sr-32]-VAT exemption reason text (ibt-120) MUST occur maximum once. + + + [ibr-sr-57]-Company identifier MUST exist in the party tax scheme class. + + + [ibr-073]-A date MUST be formatted YYYY-MM-DD in (ibt-002), (ibt-007), (ibt-009), (ibt-026), (ibt-072), (ibt-073), (ibt-074), (ibt-134), (ibt-135). + + + [ibr-119]-A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168). + + + [ibr-074]-Binary object elements (ibt-125) MUST contain the mime code attribute (ibt-125-1). + [ibr-075]-Binary object elements (ibt-125) MUST contain the filename attribute (ibt-125-2). + + + [ibr-077]-Tax accounting currency code (ibt-006) MUST be different from invoice currency code (ibt-005) when provided. + + + [ibr-079]-Document MUST not contain empty elements. + + + [ibr-088]-Unit code of price base quantity (ibt-150) MUST be same as invoiced quantity (ibt-130). + + + [ibr-092]-If despatch advice reference exists on line (ibt-184) then there MUST not be despatch reference on document level (ibt-016). + + + [ibr-sr-62]-Despatch advice line reference (ibt-184) MUST occur maximum once. + + + [ibr-093]-If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist. + + + [ibr-108]-Deliver to party name (ibt-070) MUST occur maximum once. + + + + + [ibr-cl-01-aunz-sb]-The document type code (ibt-003) MUST be coded by the self-billed invoice and credit note related code lists of UNTDID 1001. + + + [ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3. + + + [ibr-cl-04]-Invoice currency code (ibt-005) MUST be coded using ISO code list 4217 alpha-3 + + + [ibr-cl-05]-Tax currency code (ibt-006) MUST be coded using ISO code list 4217 alpha-3 + + + [ibr-cl-07]-Object identifier identification scheme (ibt-018-1) (ibt-128-1) MUST be coded using a restriction of UNTDID 1153. + + + [ibr-cl-10]-Any identifier identification scheme (ibt-046-1), (ibt-060-1) MUST be coded using one of the ISO 6523 ICD list. + + + [ibr-cl-11]-Any registration identifier identification scheme (ibt-030-1), (ibt-047-1), (ibt-061-1) MUST be coded using one of the ISO 6523 ICD list. + + + [ibr-cl-13]-Item classification identifier identification scheme (ibt-158-1) MUST be coded using one of the UNTDID 7143 list. + + + [ibr-cl-14]-Country codes in an invoice (ibt-040), (ibt-055), (ibt-069), (ibt-080), (ibt-175) MUST be coded using ISO code list 3166-1 + + + [ibr-cl-15]-Origin country codes in an invoice (ibt-159) MUST be coded using ISO code list 3166-1 + + + [ibr-cl-16]-Payment means in an invoice (ibt-081) MUST be coded using UNCL4461 code list + + + [ibr-cl-19]-Coded allowance reasons (ibt-098), (ibt-140) MUST belong to the UNCL 5189 code list + + + [ibr-cl-20]-Coded charge reasons (ibt-105), (ibt-145) MUST belong to the UNCL 7161 code list + + + [ibr-cl-21]-Item standard identifier scheme identifier (ibt-157) MUST belong to the ISO 6523 ICD list. + + + [ibr-cl-23]-Unit code (ibt-130), (ibt-150) MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension + + + [ibr-cl-24]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + [ibr-cl-25]-Endpoint identifier scheme identifier (ibt-034-1), (ibt-049-1) MUST belong to the CEF EAS code list + + + [ibr-cl-26]-Delivery location identifier scheme identifier (ibt-071-1) MUST belong to the ISO 6523 ICD code list + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-UBL-validation-preprocessed-inv.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-UBL-validation-preprocessed-inv.sch new file mode 100644 index 00000000..06a7f925 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-UBL-validation-preprocessed-inv.sch @@ -0,0 +1,392 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 + + + + + + + + + ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [ibr-068]-GLN MUST have a valid format according to GS1 rules for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-127]-Swedish organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-069]-Norwegian organization number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-070]-Danish organization number (CVR) MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-113]-Belgian enterprise number MUST be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-114]-IPA Code (Codice Univoco Unità Organizzativa) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-115]-Tax Code (Codice Fiscale) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-116]-Italian VAT Code (Partita Iva) must be stated in the correct format for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-120]-Australian Business Number (ABN) must be stated in the correct format for for endpoints (ibt-034), (ibt-049), party identification (ibt-029), (ibt-046), (ibt-060), legal entities (ibt-030), (ibt-047), (ibt-061). + + + [ibr-083]-Charge on price level (ibt-147) is NOT allowed. Only value 'false' allowed. + + + [ibr-sr-30]-Allowance reason (ibt-097) MUST occur maximum once + [ibr-031]-Allowance (ibg-20) MUST have an allowance amount (ibt-092). + [ibr-033]-Each Document level allowance (ibg-20) MUST have a Document level allowance reason (ibt-097) or a Document level allowance reason code (ibt-098). + [ibr-041]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance amount (ibt-136). + [ibr-042]-Each Invoice line allowance (ibg-27) MUST have an Invoice line allowance reason (ibt-139) or an Invoice line allowance reason code (ibt-140). + + + [ibr-036]-Charge (ibg-21) MUST have a charge amount (ibt-099). + [ibr-sr-31]-Charge reason (ibt-104) MUST occur maximum once + [ibr-038]-Each Document level charge (ibg-21) MUST have a Document level charge reason (ibt-104) or a Document level charge reason code (ibt-105). + [ibr-043]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge amount (ibt-141). + [ibr-044]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145). + + + [ibr-082]-Allowance/charge indicator value MUST equal 'true' or 'false'. + + + [ibr-sr-61]-Allowance/charge tax exemption reason (ibt-197) (ibt-199) MUST occur maximum once. + + + [ibr-052]-Each Additional supporting document (ibg-24) MUST contain a Supporting document reference (ibt-122).    + [ibr-sr-33]-Supporting document description (ibt-123) MUST occur maximum once + + + [ibr-080]-The Buyer electronic address (ibt-049) MUST be provided. + + + [ibr-063]-The Buyer electronic address (ibt-049) MUST have a Scheme identifier.    + + + [ibr-011]-The Buyer postal address (ibg-08) MUST contain a Buyer country code (ibt-055). + [ibr-sr-54]-The Buyer Postal Address Line (ibt-163) MUST occur maximum once + + + [ibr-057]-Each Deliver to address (ibg-15) MUST contain a Deliver to country code (ibt-080). + [ibr-sr-56]-The Delivery Postal Address Line (ibt-165) MUST occur maximum once + + + [ibr-012]-An Invoice MUST have the Sum of Invoice line net amount (ibt-106). + [ibr-013]-An Invoice MUST have the Invoice total amount without Tax (ibt-109). + [ibr-014]-An Invoice MUST have the Invoice total amount with Tax (ibt-112). + [ibr-015]-An Invoice MUST have the Amount due for payment (ibt-115). + [ibr-091]-Invoice amount due for payment (ibt-115) MUST have no more than 2 decimals. + [ibr-121]-Document level allowance amount (ibt-107) MUST have no more than 2 decimals. + [ibr-122]-Document level charge amount (ibt-108) MUST have no more than 2 decimals. + [ibr-123]-Invoice total amount without TAX (ibt-109) MUST have no more than 2 decimals. + [ibr-125]- Invoice total amount with TAX (ibt-112) MUST have no more than 2 decimals. + [ibr-co-10]-Sum of Invoice line net amount (ibt-106) = Σ Invoice line net amount (ibt-131). + [ibr-co-11]-Sum of allowances on document level (ibt-107) = Σ Document level allowance amount (ibt-092). + [ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099). + [ibr-co-13]-Invoice total amount without Tax (ibt-109) = Σ Invoice line net amount (ibt-131) - Sum of allowances on document level (ibt-107) + Sum of charges on document level (ibt-108). + [ibr-co-16]-Amount due for payment (ibt-115) = Invoice total amount with Tax (ibt-112) - Paid amount (ibt-113) + Rounding amount (ibt-114). + + + [ibr-001]-An Invoice MUST have a Specification identifier (ibt-024). + [ibr-002]-An Invoice MUST have an Invoice number (ibt-001). + [ibr-003]-An Invoice MUST have an Invoice issue date (ibt-002). + [ibr-004]-An Invoice MUST have an Invoice type code (ibt-003). + [ibr-005]-An Invoice MUST have an Invoice currency code (ibt-005). + [ibr-006]-An Invoice MUST contain the Seller name (ibt-027). + [ibr-007]-An Invoice MUST contain the Buyer name (ibt-044). + [ibr-008]-An Invoice MUST contain the Seller postal address (ibg-05). + [ibr-010]-An Invoice MUST contain the Buyer postal address (ibg-08). + [ibr-016]-An Invoice MUST have at least one Invoice line (ibg-25) + [ibr-053]-If the Tax accounting currency code (ibt-006) is present, then the Invoice total Tax amount in accounting currency (ibt-111) MUST be provided. + [ibr-066]-An Invoice MUST contain maximum one Payment Card account (ibg-18). + [ibr-067]-An Invoice MUST contain maximum one Payment Mandate (ibg-19). + [ibr-071]-An invoice should not include an AdditonalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Attachment (ibt-125). + [ibr-072]-An invoice MUST not include an AdditionalDocumentReference (ibg-24) simultaneously referring an Invoice Object Identifier (ibt-018) and an Document Description (ibt-123). + [ibr-076]-Business process (ibt-023) MUST be provided. + [ibr-078]-Only one invoiced object (ibt-018) is allowed on document level. + [ibr-084]-Invoice total tax amount (ibt-110) and Invoice total tax amount in accounting currency (ibt-111) MUST have the same operational sign. + [ibr-087]-Base quantity (ibt-149) MUST be a positive number above zero. + [ibr-090]-Only one project reference (ibt-011) is allowed on document level. + [ibr-094]-Contract reference (ibt-012) MUST occur maximum once. + [ibr-095]-Receiving advice reference (ibt-015) MUST occur maximum once. + [ibr-096]-Despatch advice reference (ibt-016) MUST occur maximum once. + [ibr-097]-Invoicing period (ibg-14) MUST occur maximum once. + [ibr-098]-Seller name (ibt-027) MUST occur maximum once. + [ibr-099]-Seller trader name (ibt-028) MUST occur maximum once. + [ibr-100]-Seller legal registration identifier (ibt-030) MUST occur maximum once. + [ibr-101]-Seller additional legal information (ibt-033) MUST occur maximum once. + [ibr-102]-Buyer name (ibt-044) MUST occur maximum once. + [ibr-103]-Buyer legal registration identifier (ibt-047) MUST occur maximum once. + [ibr-104]-Buyer tax identifier (ibt-048) MUST occur maximum once. + [ibr-107]-Deliver to information (ibg-13) MUST occur maximum once. + [ibr-112]-Buyer trader name (ibt-045) MUST occur maximum once. + [ibr-co-15]-Invoice total amount with Tax (ibt-112) = Invoice total amount without Tax (ibt-109) + Invoice total Tax amount (ibt-110). + [ibr-sr-16]-Buyer identifier (ibt-046) MUST occur maximum once + [ibr-sr-39]-Project reference (ibt-011) MUST occur maximum once. + [ibr-sr-49]-Value tax point date (ibt-007) MUST occur maximum once + [ibr-sr-51]-Note (ibt-022) MUST occur maximum once + [ibr-sr-52]-Tender or lot reference (ibt-017) MUST occur maximum once + + + [ibr-021]-Each Invoice line (ibg-25) MUST have an Invoice line identifier (ibt-126). + [ibr-022]-Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129).. + [ibr-023]-An Invoice line (ibg-25) MUST have an Invoiced quantity unit of measure code (ibt-130). + [ibr-024]-Each Invoice line (ibg-25) MUST have an Invoice line net amount (ibt-131). + [ibr-025]-Each Invoice line (ibg-25) MUST contain the Item name (ibt-153). + [ibr-026]-Each Invoice line (ibg-25) MUST contain the Item net price (ibt-146). + [ibr-027]-The Item net price (ibt-146) MUST NOT be negative. + [ibr-028]-The Item gross price (ibt-148) MUST NOT be negative. + [ibr-089]-Only one invoiced object (ibt-128) is allowed per line (ibg-25). + [ibr-109]-Referenced purchase order line identifier (ibt-132) MUST occur maximum once. + [ibr-110]-Invoice line period (ibg-26) MUST occur maximum once. + [ibr-111]-Item price discount (ibt-147) MUST occur maximum once. + [ibr-sr-34]-Invoice line note (ibt-127) MUST occur maximum once + [ibr-sr-38]-Invoiced item tax exemption reason text (ibt-185) MUST occur maximum once + [ibr-sr-50]-Item description (ibt-154) MUST occur maximum once + + + [ibr-085]-Start date of line period (ibt-134) MUST be within invoice period (ibg-14). + [ibr-086]-End date of line period (ibt-135) MUST be within invoice period (ibg-14). + [ibr-030]-If both Invoice line period start date (ibt-134) and Invoice line period end date (ibt-135) are given then the Invoice line period end date (ibt-135) MUST be later or equal to the Invoice line period start date (ibt-134). + [ibr-co-20]-If Invoice line period (ibg-26) is used, the Invoice line period start date (ibt-134) or the Invoice line period end date (ibt-135) MUST be filled, or both. + + + [ibr-029]-If both Invoicing period start date (ibt-073) and Invoicing period end date (ibt-074) are given then the Invoicing period end date (ibt-074) MUST be later or equal to the Invoicing period start date (ibt-073). + [ibr-co-19]-If Invoicing period (ibg-14) is used, the Invoicing period start date (ibt-073) or the Invoicing period end date (ibt-074) MUST be filled, or both. + + + [ibr-054]-Each Item attribute (ibg-32) MUST contain an Item attribute name (ibt-160) and an Item attribute value (ibt-161). + + + [ibr-065]-The Item classification identifier (ibt-158) MUST have a Scheme identifier. + + + [ibr-064]-The Item standard identifier (ibt-157) MUST have a Scheme identifier. + + + [ibr-sr-58]-The Invoiced item TAX category code (ibt-151) MUST be present. + + + [ibr-017]-The Payee name (ibt-059) MUST be provided in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + [ibr-105]-The Payee identifier (ibt-060) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + [ibr-106]-The Payee legal identifier (ibt-061) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04). + [ibr-sr-19]-Payee name (ibt-059) MUST occur maximum once, if the Payee is different from the Seller + + + [ibr-sr-59]-The Payee Postal Address Line (ibt-174) MUST occur maximum once + + + [ibr-049]-A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-081). + [ibr-sr-27]-Payment means text (ibt-081) MUST occur maximum once + [ibr-sr-28]-Mandate reference identifier (ibt-089) MUST occur maximum once + [ibr-sr-45]-Due Date (ibt-009) MUST occur maximum once + [ibr-sr-46]-Payment means text (ibt-082) MUST occur maximum once + + + [ibr-126]- All currencyID attributes must have the same value as the Invoice currency code (ibt-005), except for amounts expected to be in Tax accounting currency (ibt-006). + + + [ibr-sr-05]-Payment terms (ibt-020) MUST occur maximum once. + [ibr-sr-60]-Payment Instruction ID (ibt-187) MUST occur maximum once. + + + [ibr-055]-Each Preceding Invoice reference (ibg-03) MUST contain a Preceding Invoice reference (ibt-025). + [ibr-sr-07]-If there is a preceding invoice reference (ibg-03) , the preceding invoice number (ibt-025) MUST be present + [ibr-sr-06]-Preceding invoice reference (ibt-025) MUST occur maximum once + + + [ibr-co-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (ibt-029), the Seller legal registration identifier (ibt-030) and/or the Seller Tax identifier (ibt-031) MUST be present. + [ibr-081]-The Seller electronic address (ibt-049) MUST be provided. + [ibr-sr-42]-Party tax scheme MUST occur maximum twice in accounting supplier party + + + [ibr-062]-The Seller electronic address (ibt-034) MUST have a Scheme identifier. + + + [ibr-009]-The Seller postal address (ibg-05) MUST contain a Seller country code (ibt-040). + [ibr-sr-53]-The Seller Postal Address Line (ibt-162) MUST occur maximum once + + + [ibr-018]-The Seller tax representative name (ibt-062) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11) + [ibr-019]-The Seller tax representative postal address (ibg-12) MUST be provided in the Invoice, if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + [ibr-056]-The Seller tax representative party (ibg-11) MUST have a Seller tax representative Tax identifier (ibt-063). + [ibr-sr-22]-Seller tax representative name (ibt-062) MUST occur maximum once, if the Seller has a tax representative + [ibr-sr-23]-Seller tax representative tax identifier (ibt-063) MUST occur maximum once, if the Seller has a tax representative + + + [ibr-020]-The Seller tax representative postal address (ibg-12) MUST contain a Tax representative country code (ibt-069), if the Seller (ibg-04) has a Seller tax representative party (ibg-11). + [ibr-sr-55]-The Tax Representative Postal Address Line (ibt-164) MUST occur maximum once + + + [ibr-124]-Invoice total TAX amount (ibt-110) MUST have no more than 2 decimals. + [ibr-co-14]-Invoice total Tax amount (ibt-110) = Σ Tax category tax amount (ibt-117). + + + [ibr-sr-32]-VAT exemption reason text (ibt-120) MUST occur maximum once. + + + [ibr-sr-57]-Company identifier MUST exist in the party tax scheme class. + + + [ibr-073]-A date MUST be formatted YYYY-MM-DD in (ibt-002), (ibt-007), (ibt-009), (ibt-026), (ibt-072), (ibt-073), (ibt-074), (ibt-134), (ibt-135). + + + [ibr-119]-A time MUST be formatted hh:mm:ss with optional fractional seconds .sss and time zone expression (ibt-168). + + + [ibr-074]-Binary object elements (ibt-125) MUST contain the mime code attribute (ibt-125-1). + [ibr-075]-Binary object elements (ibt-125) MUST contain the filename attribute (ibt-125-2). + + + [ibr-077]-Tax accounting currency code (ibt-006) MUST be different from invoice currency code (ibt-005) when provided. + + + [ibr-079]-Document MUST not contain empty elements. + + + [ibr-088]-Unit code of price base quantity (ibt-150) MUST be same as invoiced quantity (ibt-130). + + + [ibr-092]-If despatch advice reference exists on line (ibt-184) then there MUST not be despatch reference on document level (ibt-016). + + + [ibr-sr-62]-Despatch advice line reference (ibt-184) MUST occur maximum once. + + + [ibr-093]-If there is a paid amount (ibt-180) then total paid amount (ibt-113) MUST exist. + + + [ibr-108]-Deliver to party name (ibt-070) MUST occur maximum once. + + + + + [ibr-cl-01-aunz-sb]-The document type code (ibt-003) MUST be coded by the self-billed invoice and credit note related code lists of UNTDID 1001. + + + [ibr-cl-03]-currencyID MUST be coded using ISO code list 4217 alpha-3. + + + [ibr-cl-04]-Invoice currency code (ibt-005) MUST be coded using ISO code list 4217 alpha-3 + + + [ibr-cl-05]-Tax currency code (ibt-006) MUST be coded using ISO code list 4217 alpha-3 + + + [ibr-cl-07]-Object identifier identification scheme (ibt-018-1) (ibt-128-1) MUST be coded using a restriction of UNTDID 1153. + + + [ibr-cl-10]-Any identifier identification scheme (ibt-046-1), (ibt-060-1) MUST be coded using one of the ISO 6523 ICD list. + + + [ibr-cl-11]-Any registration identifier identification scheme (ibt-030-1), (ibt-047-1), (ibt-061-1) MUST be coded using one of the ISO 6523 ICD list. + + + [ibr-cl-13]-Item classification identifier identification scheme (ibt-158-1) MUST be coded using one of the UNTDID 7143 list. + + + [ibr-cl-14]-Country codes in an invoice (ibt-040), (ibt-055), (ibt-069), (ibt-080), (ibt-175) MUST be coded using ISO code list 3166-1 + + + [ibr-cl-15]-Origin country codes in an invoice (ibt-159) MUST be coded using ISO code list 3166-1 + + + [ibr-cl-16]-Payment means in an invoice (ibt-081) MUST be coded using UNCL4461 code list + + + [ibr-cl-19]-Coded allowance reasons (ibt-098), (ibt-140) MUST belong to the UNCL 5189 code list + + + [ibr-cl-20]-Coded charge reasons (ibt-105), (ibt-145) MUST belong to the UNCL 7161 code list + + + [ibr-cl-21]-Item standard identifier scheme identifier (ibt-157) MUST belong to the ISO 6523 ICD list. + + + [ibr-cl-23]-Unit code (ibt-130), (ibt-150) MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extension + + + [ibr-cl-24]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + [ibr-cl-25]-Endpoint identifier scheme identifier (ibt-034-1), (ibt-049-1) MUST belong to the CEF EAS code list + + + [ibr-cl-26]-Delivery location identifier scheme identifier (ibt-071-1) MUST belong to the ISO 6523 ICD code list + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-jurisdiction-aligned-rules-cn.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-jurisdiction-aligned-rules-cn.sch new file mode 100644 index 00000000..c2c4ea04 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-jurisdiction-aligned-rules-cn.sch @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [aligned-ibrp-sr-43]-Scheme identifier shall only be used for invoiced object (ibt-018) (document type code with value 130) + + + [aligned-ibrp-004]-Item net price (ibt-146) MUST equal (Gross price (ibt-148) - Price discount (ibt-147)) when gross price is provided. + + + [aligned-ibrp-054]-Allowance amount (ibt-092, ibt-136) must equal base amount (ibt-093, ibt-137) * percentage (ibt-194, ibt-138) /100 if base amount and percentage exists. + [aligned-ibrp-032-aunz]-Each Document level allowance (ibg-20) MUST have a Document level allowance tax category code (ibt-095). + [aligned-ibrp-057]-Either both or neither Allowance base amount (ibt-093) and percentage (ibt-094) MUST be provided. + + + [aligned-ibrp-055]-Charge amount (ibt-099, ibt-141) must equal base amount (ibt-100, ibt-142) * percentage (ibt-101, ibt-143) /100 if base amount and percentage exists. + [aligned-ibrp-037-aunz]-Each Document level charge (ibg-21) MUST have a Document level charge tax category code (ibt-102). + [aligned-ibrp-058]-Either both or neither Charge base amount (ibt-100) and percentage (ibt-101) MUST be provided. + + + + [aligned-ibrp-050-aunz]-Each Invoice line (ibg-25) MUST be categorized with an Invoiced item tax category code (ibt-151). + [aligned-ibrp-053]-Invoice line net amount (ibt-131) MUST equal (Invoiced quantity (ibt-129) * (Item net price (ibt-146)/item price base quantity (ibt-149)) + Sum of invoice line charge amount (ibt-141) - sum of invoice line allowance amount (ibt-136). + [aligned-ibrp-059]-Invoice lines (ibg-25) MUST have one and only one classified tax category (ibt-151). + [aligned-ibrp-060]-Line Document reference can only be used for Invoice line object (ibg-36) + + + [aligned-ibrp-001-aunz-sb]-Specification identifier (ibt-024) MUST start with the value 'urn:peppol:pint:selfbilling-1@aunz-1'. + [aligned-ibrp-002-aunz-sb]-Business process (ibt-023) MUST be in the format 'urn:peppol:bis:selfbilling'. + [aligned-ibrp-003]-A buyer reference (ibt-010) or purchase order reference (ibt-013) MUST be provided. + [aligned-ibrp-006]-Tax point date (ibt-007) and tax point date code (ibt-008) are mutually exclusive. + + + [aligned-ibrp-008]-Invoice terms (ibg-033) MUST occur maximum once. + + [aligned-ibrp-021]-Only one tax total (ibg-38) with tax subtotals (ibg-23) MUST be provided. + [aligned-ibrp-022]-Only one tax total without tax subtotals (ibg-37) MUST be provided when tax currency code (ibt-006) is provided. + + [aligned-ibrp-e-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Exempt from tax" MUST contain exactly one tax breakdown (ibg-23) with the tax category code (ibt-118) equal to "Exempt from tax". + + [aligned-ibrp-g-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Export" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Export". + + [aligned-ibrp-o-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Not subject to tax" MUST contain exactly one tax breakdown group (ibg-23) with the tax category code (ibt-118) equal to "Not subject to tax". + + [aligned-ibrp-o-11-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain other tax breakdown groups (ibg-23). + [aligned-ibrp-o-12-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is not "Not subject to tax". + [aligned-ibrp-o-13-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level allowances (ibg-20) where Document level allowance tax category code (ibt-095) is not "Not subject to tax". + [aligned-ibrp-o-14-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level charges (ibg-21) where Document level charge tax category code (ibt-102) is not "Not subject to tax". + [aligned-ibrp-s-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Standard rated" MUST contain in the tax breakdown (ibg-23) at least one tax category code (ibt-118) equal with "Standard rated". + + [aligned-ibrp-z-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Zero rated" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Zero rated". + + [aligned-ibrp-sr-12-aunz]-Seller tax identifier (ibt-031) MUST occur maximum once + [aligned-ibrp-sr-13-aunz]-Seller tax registration (ibt-032) MUST occur maximum once + + + [aligned-ibrp-005]- Amounts MUST be decimal up to two fraction digits. + + + + [aligned-ibrp-045]-Each tax breakdown (ibg-23) MUST have a tax category taxable amount (ibt-116). + [aligned-ibrp-046]-Each tax breakdown (ibg-23) MUST have a tax category tax amount (ibt-117). + [aligned-ibrp-047-aunz]-Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). + [aligned-ibrp-048-aunz]-Each tax breakdown (ibg-23) MUST have a tax category rate (ibt-119), except if the Invoice is not subject to tax. + + [aligned-ibrp-051-aunz]-Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) / 100), rounded to two decimals. + + + + [aligned-ibrp-016]-A Payment account identifier (ibt-084) MUST be present if Credit transfer (ibg-17) information is provided in the invoice. + + + + [aligned-ibrp-061]-In case the Amount due for payment (ibt-115) is positive, either the Payment due date (ibt-009) or the Payment terms (ibt-020) shall be present. + + + + + [aligned-ibrp-018]-If the Payment means type code (ibt-081) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (ibt-084) MUST be present. + [aligned-ibrp-065]-Payment reference (ibt-083) MUST occur maximum once. + + + + [aligned-ibrp-s-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Standard rated" the Invoiced item tax rate (ibt-152) MUST be greater than zero. + + + [aligned-ibrp-s-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Standard rated" the Document level allowance tax rate (ibt-096) MUST be greater than zero. + + + [aligned-ibrp-s-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Standard rated" the Document level charge tax rate (ibt-103) MUST be greater than zero. + + + + [aligned-ibrp-s-08-aunz]-For each different value of tax category rate (ibt-119) where the tax category code (ibt-118) is "Standard rated", the tax category taxable amount (ibt-116) in a tax breakdown (ibg-23) MUST equal the sum of Invoice line net amounts (ibt-131) plus the sum of document level charge amounts (ibt-099) minus the sum of document level allowance amounts (ibt-092) where the tax category code (ibt-151, ibt-102, ibt-095) is "Standard rated" and the tax rate (ibt-152, ibt-103, ibt-096) equals the tax category rate (ibt-119). + [aligned-ibrp-s-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Standard rated" MUST equal the tax category taxable amount (ibt-116) multiplied by the tax category rate (ibt-119). + [aligned-ibrp-s-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Standard rate" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + [aligned-ibrp-z-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Zero rated" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + [aligned-ibrp-z-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Zero rated" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + [aligned-ibrp-z-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Zero rated" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + [aligned-ibrp-z-08-aunz]-In a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amount (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Zero rated". + [aligned-ibrp-z-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" MUST equal 0 (zero). + [aligned-ibrp-z-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Zero rated" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + [aligned-ibrp-e-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Exempt from tax", the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + [aligned-ibrp-e-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Exempt from tax", the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + [aligned-ibrp-e-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Exempt from tax", the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + [aligned-ibrp-e-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Exempt from tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Exempt from tax". + [aligned-ibrp-e-09-aunz]-The tax category tax amount (ibt-117) In a tax breakdown (ibg-23) where the tax category code (ibt-118) equals "Exempt from tax" MUST equal 0 (zero). + + + + [aligned-ibrp-g-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Export" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + [aligned-ibrp-g-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Export" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + [aligned-ibrp-g-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Export" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + [aligned-ibrp-g-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Export". + [aligned-ibrp-g-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" MUST be 0 (zero). + + + + [aligned-ibrp-o-05-aunz]-An Invoice line (ibg-25) where the tax category code (ibt-151) is "Not subject to tax" MUST not contain an Invoiced item tax rate (ibt-152). + + + [aligned-ibrp-o-06-aunz]-A Document level allowance (ibg-20) where tax category code (ibt-095) is "Not subject to tax" MUST not contain a Document level allowance tax rate (ibt-096). + + + [aligned-ibrp-o-07-aunz]-A Document level charge (ibg-21) where the tax category code (ibt-102) is "Not subject to tax" MUST not contain a Document level charge tax rate (ibt-103). + + + [aligned-ibrp-o-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is " Not subject to tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Not subject to tax". + [aligned-ibrp-o-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Not subject to tax" MUST be 0 (zero). + + + + + + + + [aligned-ibrp-cl-01-aunz]-Invoice tax categories (ibt-095) (ibt-102) (ibt-118) (ibt-192) (ibt-151) MUST be coded using UNCL5305 code list. + + + [aligned-ibrp-cl-02]-Tax point date code (ibt-008) MUST be coded using a restriction of UNTDID 2005. + + + + [aligned-ibrp-cl-04]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + + + + + + [aligned-ibr-001-aunz]-An invoice must contain the Seller's ABN (ibt-030) if Seller country (ibt-040) is Australia + + + [aligned-ibr-004-aunz]-An invoice must contain the Buyer's ABN (ibt-047) if Buyer country (ibt-055) is Australia + + + + [aligned-ibr-002-aunz]-An invoice must contain the Seller's NZBN (ibt-030) if Seller country (ibt-040) is New Zealand + + + [aligned-ibr-005-aunz]-An invoice must contain the Buyer's NZBN (ibt-047) if Buyer country (ibt-055) is New Zealand + + + + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-jurisdiction-aligned-rules-inv.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-jurisdiction-aligned-rules-inv.sch new file mode 100644 index 00000000..c2c4ea04 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/rule-source/pint-aunz/1.0.1/selfbilling/PINT-jurisdiction-aligned-rules-inv.sch @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [aligned-ibrp-sr-43]-Scheme identifier shall only be used for invoiced object (ibt-018) (document type code with value 130) + + + [aligned-ibrp-004]-Item net price (ibt-146) MUST equal (Gross price (ibt-148) - Price discount (ibt-147)) when gross price is provided. + + + [aligned-ibrp-054]-Allowance amount (ibt-092, ibt-136) must equal base amount (ibt-093, ibt-137) * percentage (ibt-194, ibt-138) /100 if base amount and percentage exists. + [aligned-ibrp-032-aunz]-Each Document level allowance (ibg-20) MUST have a Document level allowance tax category code (ibt-095). + [aligned-ibrp-057]-Either both or neither Allowance base amount (ibt-093) and percentage (ibt-094) MUST be provided. + + + [aligned-ibrp-055]-Charge amount (ibt-099, ibt-141) must equal base amount (ibt-100, ibt-142) * percentage (ibt-101, ibt-143) /100 if base amount and percentage exists. + [aligned-ibrp-037-aunz]-Each Document level charge (ibg-21) MUST have a Document level charge tax category code (ibt-102). + [aligned-ibrp-058]-Either both or neither Charge base amount (ibt-100) and percentage (ibt-101) MUST be provided. + + + + [aligned-ibrp-050-aunz]-Each Invoice line (ibg-25) MUST be categorized with an Invoiced item tax category code (ibt-151). + [aligned-ibrp-053]-Invoice line net amount (ibt-131) MUST equal (Invoiced quantity (ibt-129) * (Item net price (ibt-146)/item price base quantity (ibt-149)) + Sum of invoice line charge amount (ibt-141) - sum of invoice line allowance amount (ibt-136). + [aligned-ibrp-059]-Invoice lines (ibg-25) MUST have one and only one classified tax category (ibt-151). + [aligned-ibrp-060]-Line Document reference can only be used for Invoice line object (ibg-36) + + + [aligned-ibrp-001-aunz-sb]-Specification identifier (ibt-024) MUST start with the value 'urn:peppol:pint:selfbilling-1@aunz-1'. + [aligned-ibrp-002-aunz-sb]-Business process (ibt-023) MUST be in the format 'urn:peppol:bis:selfbilling'. + [aligned-ibrp-003]-A buyer reference (ibt-010) or purchase order reference (ibt-013) MUST be provided. + [aligned-ibrp-006]-Tax point date (ibt-007) and tax point date code (ibt-008) are mutually exclusive. + + + [aligned-ibrp-008]-Invoice terms (ibg-033) MUST occur maximum once. + + [aligned-ibrp-021]-Only one tax total (ibg-38) with tax subtotals (ibg-23) MUST be provided. + [aligned-ibrp-022]-Only one tax total without tax subtotals (ibg-37) MUST be provided when tax currency code (ibt-006) is provided. + + [aligned-ibrp-e-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Exempt from tax" MUST contain exactly one tax breakdown (ibg-23) with the tax category code (ibt-118) equal to "Exempt from tax". + + [aligned-ibrp-g-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Export" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Export". + + [aligned-ibrp-o-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Not subject to tax" MUST contain exactly one tax breakdown group (ibg-23) with the tax category code (ibt-118) equal to "Not subject to tax". + + [aligned-ibrp-o-11-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain other tax breakdown groups (ibg-23). + [aligned-ibrp-o-12-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is not "Not subject to tax". + [aligned-ibrp-o-13-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level allowances (ibg-20) where Document level allowance tax category code (ibt-095) is not "Not subject to tax". + [aligned-ibrp-o-14-aunz]-An Invoice that contains a tax breakdown group (ibg-23) with a tax category code (ibt-118) "Not subject to tax" MUST not contain Document level charges (ibg-21) where Document level charge tax category code (ibt-102) is not "Not subject to tax". + [aligned-ibrp-s-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Standard rated" MUST contain in the tax breakdown (ibg-23) at least one tax category code (ibt-118) equal with "Standard rated". + + [aligned-ibrp-z-01-aunz]-An Invoice that contains an Invoice line (ibg-25), a Document level allowance (ibg-20) or a Document level charge (ibg-21) where the tax category code (ibt-151, ibt-095 or ibt-102) is "Zero rated" MUST contain in the tax breakdown (ibg-23) exactly one tax category code (ibt-118) equal with "Zero rated". + + [aligned-ibrp-sr-12-aunz]-Seller tax identifier (ibt-031) MUST occur maximum once + [aligned-ibrp-sr-13-aunz]-Seller tax registration (ibt-032) MUST occur maximum once + + + [aligned-ibrp-005]- Amounts MUST be decimal up to two fraction digits. + + + + [aligned-ibrp-045]-Each tax breakdown (ibg-23) MUST have a tax category taxable amount (ibt-116). + [aligned-ibrp-046]-Each tax breakdown (ibg-23) MUST have a tax category tax amount (ibt-117). + [aligned-ibrp-047-aunz]-Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). + [aligned-ibrp-048-aunz]-Each tax breakdown (ibg-23) MUST have a tax category rate (ibt-119), except if the Invoice is not subject to tax. + + [aligned-ibrp-051-aunz]-Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) / 100), rounded to two decimals. + + + + [aligned-ibrp-016]-A Payment account identifier (ibt-084) MUST be present if Credit transfer (ibg-17) information is provided in the invoice. + + + + [aligned-ibrp-061]-In case the Amount due for payment (ibt-115) is positive, either the Payment due date (ibt-009) or the Payment terms (ibt-020) shall be present. + + + + + [aligned-ibrp-018]-If the Payment means type code (ibt-081) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (ibt-084) MUST be present. + [aligned-ibrp-065]-Payment reference (ibt-083) MUST occur maximum once. + + + + [aligned-ibrp-s-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Standard rated" the Invoiced item tax rate (ibt-152) MUST be greater than zero. + + + [aligned-ibrp-s-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Standard rated" the Document level allowance tax rate (ibt-096) MUST be greater than zero. + + + [aligned-ibrp-s-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Standard rated" the Document level charge tax rate (ibt-103) MUST be greater than zero. + + + + [aligned-ibrp-s-08-aunz]-For each different value of tax category rate (ibt-119) where the tax category code (ibt-118) is "Standard rated", the tax category taxable amount (ibt-116) in a tax breakdown (ibg-23) MUST equal the sum of Invoice line net amounts (ibt-131) plus the sum of document level charge amounts (ibt-099) minus the sum of document level allowance amounts (ibt-092) where the tax category code (ibt-151, ibt-102, ibt-095) is "Standard rated" and the tax rate (ibt-152, ibt-103, ibt-096) equals the tax category rate (ibt-119). + [aligned-ibrp-s-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Standard rated" MUST equal the tax category taxable amount (ibt-116) multiplied by the tax category rate (ibt-119). + [aligned-ibrp-s-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Standard rate" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + [aligned-ibrp-z-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Zero rated" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + [aligned-ibrp-z-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Zero rated" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + [aligned-ibrp-z-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Zero rated" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + [aligned-ibrp-z-08-aunz]-In a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amount (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Zero rated". + [aligned-ibrp-z-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where tax category code (ibt-118) is "Zero rated" MUST equal 0 (zero). + [aligned-ibrp-z-10-aunz]-A tax breakdown (ibg-23) with tax Category code (ibt-118) "Zero rated" MUST not have a tax exemption reason code (ibt-121) or tax exemption reason text (ibt-120). + + + [aligned-ibrp-e-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Exempt from tax", the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + [aligned-ibrp-e-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Exempt from tax", the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + [aligned-ibrp-e-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Exempt from tax", the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + [aligned-ibrp-e-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Exempt from tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Exempt from tax". + [aligned-ibrp-e-09-aunz]-The tax category tax amount (ibt-117) In a tax breakdown (ibg-23) where the tax category code (ibt-118) equals "Exempt from tax" MUST equal 0 (zero). + + + + [aligned-ibrp-g-05-aunz]-In an Invoice line (ibg-25) where the Invoiced item tax category code (ibt-151) is "Export" the Invoiced item tax rate (ibt-152) MUST be 0 (zero). + + + [aligned-ibrp-g-06-aunz]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-095) is "Export" the Document level allowance tax rate (ibt-096) MUST be 0 (zero). + + + [aligned-ibrp-g-07-aunz]-In a Document level charge (ibg-21) where the Document level charge tax category code (ibt-102) is "Export" the Document level charge tax rate (ibt-103) MUST be 0 (zero). + + + [aligned-ibrp-g-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Export". + [aligned-ibrp-g-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Export" MUST be 0 (zero). + + + + [aligned-ibrp-o-05-aunz]-An Invoice line (ibg-25) where the tax category code (ibt-151) is "Not subject to tax" MUST not contain an Invoiced item tax rate (ibt-152). + + + [aligned-ibrp-o-06-aunz]-A Document level allowance (ibg-20) where tax category code (ibt-095) is "Not subject to tax" MUST not contain a Document level allowance tax rate (ibt-096). + + + [aligned-ibrp-o-07-aunz]-A Document level charge (ibg-21) where the tax category code (ibt-102) is "Not subject to tax" MUST not contain a Document level charge tax rate (ibt-103). + + + [aligned-ibrp-o-08-aunz]-In a tax breakdown (ibg-23) where the tax category code (ibt-118) is " Not subject to tax" the tax category taxable amount (ibt-116) MUST equal the sum of Invoice line net amounts (ibt-131) minus the sum of Document level allowance amounts (ibt-092) plus the sum of Document level charge amounts (ibt-099) where the tax category codes (ibt-151, ibt-095, ibt-102) are "Not subject to tax". + [aligned-ibrp-o-09-aunz]-The tax category tax amount (ibt-117) in a tax breakdown (ibg-23) where the tax category code (ibt-118) is "Not subject to tax" MUST be 0 (zero). + + + + + + + + [aligned-ibrp-cl-01-aunz]-Invoice tax categories (ibt-095) (ibt-102) (ibt-118) (ibt-192) (ibt-151) MUST be coded using UNCL5305 code list. + + + [aligned-ibrp-cl-02]-Tax point date code (ibt-008) MUST be coded using a restriction of UNTDID 2005. + + + + [aligned-ibrp-cl-04]-Mime code (ibt-125-1) MUST be according to subset of IANA code list. + + + + + + + + [aligned-ibr-001-aunz]-An invoice must contain the Seller's ABN (ibt-030) if Seller country (ibt-040) is Australia + + + [aligned-ibr-004-aunz]-An invoice must contain the Buyer's ABN (ibt-047) if Buyer country (ibt-055) is Australia + + + + [aligned-ibr-002-aunz]-An invoice must contain the Seller's NZBN (ibt-030) if Seller country (ibt-040) is New Zealand + + + [aligned-ibr-005-aunz]-An invoice must contain the Buyer's NZBN (ibt-047) if Buyer country (ibt-055) is New Zealand + + + + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Credit note.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Credit note.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Credit note.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Credit note.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Freight - Document Level.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Freight - Document Level.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Freight - Document Level.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Freight - Document Level.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Freight - Line Item.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Freight - Line Item.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Freight - Line Item.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Freight - Line Item.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Freight Only - Line Item.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Freight Only - Line Item.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Freight Only - Line Item.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Freight Only - Line Item.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU GST Only - Prepaid.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU GST Only - Prepaid.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU GST Only - Prepaid.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU GST Only - Prepaid.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU GST Only.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU GST Only.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU GST Only.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU GST Only.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice Energy Bill Example_1.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice Energy Bill Example_1.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice Energy Bill Example_1.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice Energy Bill Example_1.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice Energy Bill Example_2.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice Energy Bill Example_2.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice Energy Bill Example_2.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice Energy Bill Example_2.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice Energy Bill Example_3_negative_inv.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice Energy Bill Example_3_negative_inv.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice Energy Bill Example_3_negative_inv.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice Energy Bill Example_3_negative_inv.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/AU Invoice.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/AU Invoice.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Allowance On Invoice Line.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Allowance On Invoice Line.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Allowance On Invoice Line.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Allowance On Invoice Line.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Credit note.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Credit note.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Credit note.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Credit note.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Invoice Level Allowance.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Invoice Level Allowance.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Invoice Level Allowance.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Invoice Level Allowance.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Invoice Level Charge.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Invoice Level Charge.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Invoice Level Charge.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Invoice Level Charge.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ No Allowances.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ No Allowances.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ No Allowances.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ No Allowances.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Prepaid Amount.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Prepaid Amount.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/NZ Prepaid Amount.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/NZ Prepaid Amount.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/PINT_AUNZ_invoice.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/PINT_AUNZ_invoice.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/PINT_AUNZ_invoice.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/PINT_AUNZ_invoice.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/PINT_AUNZ_negative_invoice.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/PINT_AUNZ_negative_invoice.xml similarity index 100% rename from phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/PINT_AUNZ_negative_invoice.xml rename to phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/billing/PINT_AUNZ_negative_invoice.xml diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AU Self Billed Credit Note.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AU Self Billed Credit Note.xml new file mode 100644 index 00000000..796bd405 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AU Self Billed Credit Note.xml @@ -0,0 +1,133 @@ + + + + urn:peppol:pint:selfbilling-1@aunz-1 + urn:peppol:bis:selfbilling + CN03 + 2022-07-31 + 261 + Adjustment note to reverse prior bill Invoice01. + AUD + 0150abc + + + 2022-06-15 + 2022-07-15 + + + + Invoice01 + 2022-07-29 + + + + + CN03.pdf + + + UGxhaW4gdGV4dCBpbiBwbGFjZSBvZiBwZGYgYXR0YWNobWVudCBmb3Igc2FtcGxlIGludm9pY2Vz + + + + + + 47555222000 + + Harrison + 2912 + NSW + + AU + + + + Supplier Official Name Ltd + 47555222000 + + + + + + + 91888222000 + + AccountNumber123 + + + 100 Queen Street + Sydney + 2000 + NSW + + AU + + + + Trotters Incorporated + 91888222000 + + + Lisa Johnson + + + + + 15.94 + + + 159.43 + 15.94 + + S + 10 + + GST + + + + + + 159.43 + 159.43 + 175.37 + 175.37 + + + + 1 + 325.2 + 129.04 + + Adjustment - reverse prior Electricity charges - all day rate NMI 9000074677 + + S + 10 + + GST + + + + + 0.3968 + + + + + 2 + 31 + 30.39 + + Adjustment - reverse prior Supply charge + + S + 10 + + GST + + + + + 0.9803 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AU Self Billing - Negative Invoice.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AU Self Billing - Negative Invoice.xml new file mode 100644 index 00000000..7733dda6 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AU Self Billing - Negative Invoice.xml @@ -0,0 +1,353 @@ + + + + urn:peppol:pint:selfbilling-1@aunz-1 + urn:peppol:bis:selfbilling + INV_00483 + 2022-07-29 + 2022-08-30 + 389 + Adjustment note to reverse prior bill INV_00397 + AUD + 4025:123:4343 + 0150abc + + 2022-06-01 + 2022-07-31 + 3 + + + PO1245 + SO34678 + + + + INV_00397 + 2022-05-30 + + + + INV_00483.pdf + Invoice_with_additional_information + + aHR0cHM6Ly9naXRodWIuY29tL0EtTlotUEVQUE9ML0EtTlotUEVQUE9MLUJJUy0zLjA= + + + + + 47555222000 + + 47555222000 + + + Supplier Trading Name Ltd + + + Office 12 + Main street 1 + Harrison + 2912 + NSW + + c/o front desk + + + AU + + + + Supplier Official Name Ltd + 47555222000 + + + Ronald Ekk + Mobile 0430123456 + ronald.ekk@qualitygoods.com.au + + + + + + 91888222000 + + 1234567890135 + + + Trotters Trading Co Ltd + + + Floor 15 + 100 Queen Street + Sydney + 2000 + NSW + + c/o reception + + + AU + + + + Trotters Incorporated + 91888222000 + + + Lisa Johnson + 0261234567 + lj@buyer.com.au + + + + + true + SAA + Refund Shipping and Handling + -10 + -150.00 + 1500 + + S + 10 + + GST + + + + + false + 65 + discount product with production error + -20 + -10.00 + 50 + + S + 10 + + GST + + + + + -152.74 + + -1527.40 + -152.74 + + S + 10 + + GST + + + + + -100.00 + 0.00 + + Z + 0 + + GST + + + + + + -1487.40 + -1627.40 + -1780.14 + -10.00 + -150.00 + -50.00 + 0.14 + -1730.00 + + + 1 + Free text giving more information about the Invoice Line + -10 + -299.90 + Consulting Fees + + 2022-06-01 + 2022-07-30 + + + 123 + + + 9000074677 + 130 + + + Widgets True and Fair + True-Widgets + + W659590 + + + WG546767 + + + 12345678901231 + + + AU + + + 09348023 + + + 1009348023 + + + S + 10 + + GST + + + + QA + Class A + + + WARRANTY + 2 years + + + + 29.99 + + false + 0.01 + 30.00 + + + + + 2 + Daily rate includes travel time but not travel expenses + -4 + -900.00 + + 123 + + + true + AAF + Off premise service delivery + -25 + -200.00 + 800 + + + false + 95 + Discount as per contract + -12.5 + -100.00 + 800 + + + Description 2 + item name 2 + + 12345678901248 + + + NO + + + 09348023 + + + S + 10 + + GST + + + + + 400 + 2 + + + + 3 + Invoice Line Description + -25 + -187.50 + Consulting Fees + + 2022-06-01 + 2022-07-30 + + + 123 + + + 9000074677 + 130 + + + Widgets seconds + Widgets (seconds) + + W659590 + + + WG546767 + + + 12345678901255 + + + AU + + + 09348023 + + + S + 10 + + GST + + + + + 7.50 + + false + 0.00 + 7.50 + + + + + 4 + -2 + -100.00 + + 123 + + + Description 4 + item name 4 + + Z + 0 + + GST + + + + + 50 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AUNZ Self Billing.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AUNZ Self Billing.xml new file mode 100644 index 00000000..19ad6528 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/AUNZ Self Billing.xml @@ -0,0 +1,548 @@ + + + + urn:peppol:pint:selfbilling-1@aunz-1 + urn:peppol:bis:selfbilling + INV_00482 + 2022-07-29 + 2022-08-30 + 389 + Tax invoice. Prior invoice paid in full - Thank you! + AUD + NZD + 4025:123:4343 + 0150abc + + + 2022-06-01 + 2022-07-31 + 3 + + + PO1245 + SO34678 + + + + INV_00432 + 2022-05-30 + + + + + INV_00437 + 2022-05-31 + + + + ASN_03499 + + + RCPT_1290 + + + OD-REF_125 + + + CN_099787 + + + + 15622229-135 + 130 + + + + attID1 + Supporting information + + + UUFfc3RlcCxhc3N1cmFuY2VfZGVzYyxyZXN1bHQKUUMwMDEsZGltZW5zaW9uLHBhc3MKUUMwMDIsaGVhdCxwYXNzCg== + + + + + attID2 + Additional information via portal + + + https://github.com/A-NZ-PEPPOL/A-NZ-PEPPOL-BIS-3.0 + + + + + + INV_00482.pdf + Invoice_with_additional_information + + + aHR0cHM6Ly9naXRodWIuY29tL0EtTlotUEVQUE9ML0EtTlotUEVQUE9MLUJJUy0zLjA= + + + + PR_590 + + + + + 47555222000 + + 47555222000 + + + 1234567890128 + + + Supplier Trading Name Ltd + + + Office 12 + Main street 1 + Harrison + 2912 + NSW + + c/o front desk + + + AU + + + + 47555222000001 + + GST + + + + Supplier Official Name Ltd + 47555222000 + Partnership + + + Ronald Ekk + Mobile 0430123456 + ronald.ekk@qualitygoods.com.au + + + + + + + 91888222000 + + 1234567890135 + + + Trotters Trading Co Ltd + + + Floor 15 + 100 Queen Street + Sydney + 2000 + NSW + + c/o reception + + + AU + + + + 91888222000001 + + GST + + + + Trotters Incorporated + 91888222000 + + + Lisa Johnson + 0261234567 + lj@buyer.com.au + + + + + + 91888222000 + + + Mr Anderson + + + 91888222000 + + + + + Mr Wilson + + + 16 Stout Street + Po box 878 + Sydney + 2000 + NSW + + Unit 1 + + + AU + + + + 91888222000001 + + GST + + + + + + 2022-07-01 + + 1234567890135 + + Delivery street 2 + Building 56 + Sydney + 2000 + NSW + + Unit 1 + + + AU + + + + + + Delivery party Name + + + + + + 30 + PaymentReferenceText + + AccountNumber + AccountName + + BSB (branch) Number + + + + + + 49 + PaymentReferenceText + + mandate id + + cust acct nbr + + + + + + 30 + PaymentReferenceText + + payee@business1.com.au + + NPP-EMAL + + + + + + 30 + PaymentReferenceText + + https://www.yourwebsiteexample.com.au/pay + Supplier ABC + + URI + + + + + + 54 + PaymentReferenceText + + 1456 + VISA + Card holder + + + + + Payment within 30 days + + + true + SAA + Shipping and Handling + 10 + 150 + 1500 + + S + 10 + + GST + + + + + false + 65 + discount product with production error + 20 + 10 + 50 + + S + 10 + + GST + + + + + 152.74 + + + 1527.40 + 152.74 + + S + 10 + + GST + + + + + + 100.00 + 0.00 + + Z + 0 + + GST + + + + + + 168.23 + + + 1487.40 + 1627.40 + 1780.14 + 10 + 150 + 50.00 + -0.14 + 1730.00 + + + + 1 + Free text giving more information about the Invoice Line + 10 + 299.90 + Consulting Fees + + 2022-06-01 + 2022-07-30 + + + 123 + + + + 9000074677 + 130 + + + Widgets True and Fair + True-Widgets + + W659590 + + + WG546767 + + + 12345678901231 + + + AU + + + 09348023 + + + 1009348023 + + + S + 10.00 + + GST + + + + QA + Class A + + + WARRANTY + 2 years + + + + 29.99 + + false + 0.01 + 30.00 + + + + + 2 + Daily rate includes travel time but not travel expenses + 4 + 900 + + 123 + + + true + AAF + Off premise service delivery + 25 + 200 + 800 + + + false + 95 + Discount as per contract + 12.5 + 100 + 800 + + + Description 2 + item name 2 + + 12345678901248 + + + NO + + + 09348023 + + + S + 10 + + GST + + + + + 400 + 2 + + + + 3 + Invoice Line Description + 25 + 187.50 + Consulting Fees + + 2022-06-01 + 2022-07-30 + + + 123 + + + 9000074677 + 130 + + + Widgets seconds + Widgets (seconds) + + W659590 + + + WG546767 + + + 12345678901255 + + + AU + + + 09348023 + + + S + 10 + + GST + + + + + 7.50 + + false + 0.00 + 7.50 + + + + + 4 + 2 + 100 + + 123 + + + Description 4 + item name 4 + + Z + 0 + + GST + + + + + 50 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/NZ Self Billed Credit note.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/NZ Self Billed Credit note.xml new file mode 100644 index 00000000..b41a7440 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/NZ Self Billed Credit note.xml @@ -0,0 +1,383 @@ + + + urn:peppol:pint:selfbilling-1@aunz-1 + urn:peppol:bis:selfbilling + Snippet1 + + 2019-07-29 + + 261 + + Some Blurb about the Credit Note + NZD + 4025:123:4343 + 0150abc + + 2019-06-01 + 2019-07-30 + 432 + + + SOMEBLERB + 12345678 + + + + THEIDGOESHERE + 2019-07-30 + + + + DDR-REF + + + RD-REF + + + + CD-REF + + + + OD-REF + + + + + + 9429033821733 + + 9429033821733 + + + SupplierTradingName Ltd. + + + Main street 1 + Postbox 123 + Wellington + NZ 123 EW + + NZ + + + + 888-888-888 + + GST + + + + SupplierOfficialName Ltd + 9429033821733 + Partnership + + + + Ronald MacDonald + Mobile 021 1090666 + ronald.macdonald@qualitygoods.co.nz + + + + + + + 9429033591476 + + 9429033591476 + + + Trotters Trading Co Ltd + + + 100 Queen Street + Po box 878 + Auckland + A36577 + + NZ + + + + 999-999-999 + + GST + + + + Buyer Official Name + 9429033591476 + + + Lisa Johnson + 23434234 + lj@buyer.se + + + + + + + schemeID="SEPA" SR678659898009 + + + Mr Anderson + + + + 9429033591476 + + + + + + Mr Wilson + + + 16 Stout Street + Po box 878 + Wellington + 1111 + Kapiti Coast + + Out-in-theSticks + + + NZ + + + + 777-777-777 + + GST + + + + + + + 2019-06-01 + + 9429033591476 + + Delivery street 2 + Building 56 + Auckland + 21234 + Northland + + One-Tree-Hill + + + NZ + + + + + + Delivery party Name + + + + + 30 + Snippet1 + + IBAN32423940 + AccountName + + BIC324098 + + + + SEPA3245543940 + + BIC32778 + + + + + Payment within 30 days + + + + 581.20 + + 3874.65 + 581.20 + + S + 15 + + GST + + + + + + + + 3874.65 + 3874.65 + 4455.85 + 0.00 + 2500 + 1955.85 + + + + + 1 + Some Blurb Giving More Info about the Invoice Line + 10 + 599.90 + Consulting Fees + + 2019-06-01 + 2019-07-30 + + + 123 + + + 9000074677 + 130 + + + + + Widgets True and Fair + True-Widgets + + W659590 + + + WG546767 + + + WG546767 + + + NZ + + + 09348023 + + + S + 15 + + GST + + + + + + 59.99 + + false + 10.00 + 69.99 + + + + + + + + 2 + 2 + 1400 + + 123 + + + Description 2 + item name 2 + + 21382183120983 + + + NO + + + 09348023 + + + S + 15 + + GST + + + + + 700 + + false + 50.00 + 750 + + + + + + + 3 + Invoice Line Description + 25 + 1874.75 + Consulting Fees + + 2019-06-01 + 2019-07-30 + + + 123 + + + 9000074677 + 130 + + + + Widgets True and Fair + True-Widgets + + W659590 + + + WG546767 + + + WG546767 + + + NZ + + + 09348023 + + + S + 15 + + GST + + + + + + 74.99 + + false + 25.00 + 99.99 + + + + + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/NZ Self Billing.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/NZ Self Billing.xml new file mode 100644 index 00000000..e6ec7a13 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-aunz/1.0.1/selfbilling/NZ Self Billing.xml @@ -0,0 +1,384 @@ + + + + urn:peppol:pint:selfbilling-1@aunz-1 + urn:peppol:bis:selfbilling + + Snippet1 + 2019-07-29 + 2019-08-30 + + 389 + + Some Blurb about the Invoice + NZD + 4025:123:4343 + 0150abc + + 2019-06-01 + 2019-07-30 + 432 + + + SOMEBLERB + 12345678 + + + + THEIDGOESHERE + 2019-07-30 + + + + DDR-REF + + + RD-REF + + + OD-REF + + + CD-REF + + + PR-REF + + + + 9429033821733 + + 9429033821733 + + + SupplierTradingName Ltd. + + + Main street 1 + Postbox 123 + Wellington + NZ 123 EW + + NZ + + + + 777-777-777 + + GST + + + + SupplierOfficialName Ltd + 9429033821733 + Partnership + + + + Ronald MacDonald + Mobile 021 1090666 + ronald.macdonald@qualitygoods.co.nz + + + + + + + 9429033591476 + + 9429033591476 + + + Trotters Trading Co Ltd + + + 100 Queen Street + Po box 878 + Auckland + A36577 + + NZ + + + + 777-777-777 + + GST + + + + Buyer Official Name + 9429033591476 + + + Lisa Johnson + 23434234 + lj@buyer.se + + + + + + + schemeID="SEPA" SR678659898009 + + + Mr Anderson + + + + 9429033591476 + + + + + + Mr Wilson + + + 16 Stout Street + Po box 878 + Wellington + 1111 + Kapiti Coast + + Out-in-theSticks + + + NZ + + + + 777-777-777 + + GST + + + + + + + 2019-06-01 + + 9429033591476 + + Delivery street 2 + Building 56 + Auckland + 21234 + Northland + + One-Tree-Hill + + + NZ + + + + + + Delivery party Name + + + + + 30 + Snippet1 + + IBAN32423940 + AccountName + + BIC324098 + + + + SEPA3245543940 + + BIC32778 + + + + + Payment within 30 days + + + + 581.20 + + 3874.65 + 581.20 + + S + 15 + + GST + + + + + + + + 3874.65 + 3874.65 + 4455.85 + 0.00 + 2500 + 1955.85 + + + + + 1 + Some Blurb Giving More Info about the Invoice Line + 10 + 599.90 + Consulting Fees + + 2019-06-01 + 2019-07-30 + + + 123 + + + 9000074677 + 130 + + + + + Widgets True and Fair + True-Widgets + + W659590 + + + WG546767 + + + WG546767 + + + NZ + + + 09348023 + + + S + 15 + + GST + + + + + + 59.99 + + false + 10.00 + 69.99 + + + + + + + + 2 + 2 + 1400 + + 123 + + + Description 2 + item name 2 + + 21382183120983 + + + NO + + + 09348023 + + + S + 15 + + GST + + + + + 700 + + false + 50.00 + 750 + + + + + + + 3 + Invoice Line Description + 25 + 1874.75 + Consulting Fees + + 2019-06-01 + 2019-07-30 + + + 123 + + + 9000074677 + 130 + + + + Widgets True and Fair + True-Widgets + + W659590 + + + WG546767 + + + WG546767 + + + NZ + + + 09348023 + + + S + 15 + + GST + + + + + + 74.99 + + false + 25.00 + 99.99 + + + + + + + \ No newline at end of file