From 0804f6b433217062a5ef4f3d9712b005f795f094 Mon Sep 17 00:00:00 2001 From: Philip Helger Date: Wed, 24 Jul 2024 19:37:43 +0200 Subject: [PATCH] Added Peppol PINT Japan 1.0.2 rules --- README.md | 1 + phive-rules-peppol/pom.xml | 4 +- .../phive/peppol/PeppolValidationPintJP.java | 45 +- .../xslt/PINT-jurisdiction-aligned-rules.xslt | 1021 +++++++++++++++++ .../helger/phive/peppol/mock/CTestFiles.java | 30 +- .../1.0.2/PINT-jurisdiction-aligned-rules.sch | 124 ++ .../rule-source/pint-jp/1.0.2/readme.txt | 1 + .../1.0.2/Japan PINT Invoice UBL Example.xml | 467 ++++++++ ...apan PINT Invoice UBL Example1-minimum.xml | 155 +++ ...n PINT Invoice UBL Example2-TaxAcctCur.xml | 148 +++ ...apan PINT Invoice UBL Example3-SumInv1.xml | 293 +++++ ...apan PINT Invoice UBL Example4-SumInv2.xml | 248 ++++ ...T Invoice UBL Example5-AllowanceCharge.xml | 326 ++++++ ...apan PINT Invoice UBL Example6-CorrInv.xml | 320 ++++++ ... Invoice UBL Example7-Return.Quan.ItPr.xml | 193 ++++ ...INT Invoice UBL Example9-SumInv1 and O.xml | 333 ++++++ 16 files changed, 3696 insertions(+), 13 deletions(-) create mode 100644 phive-rules-peppol/src/main/resources/external/schematron/pint-jp/1.0.2/xslt/PINT-jurisdiction-aligned-rules.xslt create mode 100644 phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/PINT-jurisdiction-aligned-rules.sch create mode 100644 phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/readme.txt create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example1-minimum.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example2-TaxAcctCur.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example3-SumInv1.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example4-SumInv2.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example5-AllowanceCharge.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example6-CorrInv.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example7-Return.Quan.ItPr.xml create mode 100644 phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example9-SumInv1 and O.xml diff --git a/README.md b/README.md index fcaa5463..b1604464 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,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 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) * Added Peppol A-NZ-PEPPOL 1.0.11 rules diff --git a/phive-rules-peppol/pom.xml b/phive-rules-peppol/pom.xml index 03adad64..6fc5c5a2 100644 --- a/phive-rules-peppol/pom.xml +++ b/phive-rules-peppol/pom.xml @@ -156,8 +156,8 @@ convert - src/test/resources/external/rule-source/pint-jp/0.1.2 - src/main/resources/external/schematron/pint-jp/0.1.2/xslt + src/test/resources/external/rule-source/pint-jp/1.0.2 + src/main/resources/external/schematron/pint-jp/1.0.2/xslt --> diff --git a/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintJP.java b/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintJP.java index cb6d11f5..9a6d5e0d 100644 --- a/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintJP.java +++ b/phive-rules-peppol/src/main/java/com/helger/phive/peppol/PeppolValidationPintJP.java @@ -41,19 +41,24 @@ @Immutable public final class PeppolValidationPintJP { + public static final String GROUP_ID = "org.peppol.jp.pint"; + private static final String BASE_PATH = "external/schematron/pint-jp/"; + @Nonnull private static ClassLoader _getCL () { return PeppolValidationPintJP.class.getClassLoader (); } - private static final String BASE_PATH = "external/schematron/pint-jp/"; - // 0.1.2 - public static final VESID VID_OPENPEPPOL_JP_PINT_INVOICE_012 = new VESID ("org.peppol.jp.pint", "invoice", "0.1.2"); - public static final VESID VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_012 = new VESID ("org.peppol.jp.pint", - "credit-note", - "0.1.2"); + @Deprecated + public static final VESID VID_OPENPEPPOL_JP_PINT_INVOICE_012 = new VESID (GROUP_ID, "invoice", "0.1.2"); + @Deprecated + public static final VESID VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_012 = new VESID (GROUP_ID, "credit-note", "0.1.2"); + + // 1.0.2 + public static final VESID VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_2 = new VESID (GROUP_ID, "invoice", "1.0.2"); + public static final VESID VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_1_0_2 = new VESID (GROUP_ID, "credit-note", "1.0.2"); private PeppolValidationPintJP () {} @@ -76,6 +81,7 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + / + + + + + + *: + + [namespace-uri()=' + + '] + + + + [ + + ] + + + + / + + @ + + + @*[local-name()=' + + ' and namespace-uri()=' + + '] + + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + / + + + [ + + ] + + + + /@ + + + + + + + + + + + + + + + + + + + + + + + + . + + + + +U + + U + + + + U. + + n + + + + U. + + _ + + _ + + + + + + + + +   +   +   + + + + + + + + + + + + + + + + UBL-modelaligned + UBL-modelaligned + + + + + + + + Codesmodelaligned + Codesmodelaligned + + + + + + + + + + + + + + + + + + + + + + aligned-ibrp-032-jp + fatal + + + + [aligned-ibrp-032jp]-Each Document level allowance (ibg-20) MUST have a Document level allowance tax category code (ibt-095) and Document level allowance tax rate (ibt-096), except if the allowance is outside the scope of tax. + + + + + + + + + + + + + + + + aligned-ibrp-037-jp + fatal + + + + [aligned-ibrp-037-jp]-Each Document level charge (ibg-21) MUST have a Document level charge tax category code (ibt-102) and Document level charge tax rate (ibt-103), except if the charge is outside the scope of tax. + + + + + + + + + + + + + + + + aligned-ibrp-050-jp + fatal + + + + [aligned-ibrp-050-jp]-Each Invoice line (ibg-25) MUST be categorized with an Invoiced item tax category code (ibt-151) and Invoiced item tax rate (ibt-152). + + + + + + + + + + + + + + + + aligned-ibrp-001-jp + fatal + + + + [aligned-ibrp-001-jp]-Specification identifier MUST start with the value 'urn:fdc:peppol:jp:billing:3.0' or 'urn:peppol:pint:billing-1@jp-1'. + + + + + + + + + + aligned-ibrp-002-jp + fatal + + + + [aligned-ibrp-002-jp]-Business process MUST be in the format 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0' or 'urn:peppol:bis:billing'. + + + + + + + + + + aligned-ibrp-008 + fatal + + + + [aligned-ibrp-008]-Payment terms (ibt-020) MUST occur maximum once. + + + + + + + + + + aligned-ibrp-009 + fatal + + + + [aligned-ibrp-009]-Seller tax identifier (ibt-031) MUST occur maximum once. + + + + + + + + + + aligned-ibrp-014 + fatal + + + + [aligned-ibrp-014]-Remittance information (ibt-083) MUST occur maximum once. + + + + + + + + + + aligned-ibrp-052 + fatal + + + + [aligned-ibrp-052]-An Invoice MUST have an invoice period (ibg-14) or an Invoice line period (ibg-26). + + + + + + + + + + aligned-ibrp-e-01 + fatal + + + + [aligned-ibrp-e-01]-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-95 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 + fatal + + + + [aligned-ibrp-g-01]-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-95 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 + fatal + + + + [aligned-ibrp-o-01]-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-95 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-sr-12 + fatal + + + + [aligned-ibrp-sr-12]-Seller VAT identifier (ibt-031) MUST occur maximum once + + + + + + + + + + aligned-ibrp-sr-13 + fatal + + + + [aligned-ibrp-sr-13]-Seller tax registration (ibt-032) MUST occur maximum once + + + + + + + + + + aligned-ibr-jp-04 + fatal + + + + [aligned-ibr-jp-04]-An Invoice shall have the Seller tax identifier (ibt-031). + + + + + + + + + + aligned-ibr-jp-05 + fatal + + + + [aligned-ibr-jp-05]-If Tax accounting currency (ibt-006) is present, it shall be coded using JPY in ISO code list of 4217 a-3. + + + + + + + + + + + + + + + + aligned-ibrp-045 + fatal + + + + [aligned-ibrp-045]-Each tax breakdown (ibg-23) MUST have a tax category taxable amount (ibt-116). + + + + + + + + + + aligned-ibrp-051-jp + fatal + + + + [aligned-ibrp-051-jp]-Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) / 100), rounded to integer. The rounded result amount shall be between the floor and the ceiling. + + + + + + + + + + + + + + + + aligned-ibrp-046 + fatal + + + + [aligned-ibrp-046]-Each tax breakdown (ibg-23) MUST have a tax category tax amount (ibt-117). + + + + + + + + + + aligned-ibrp-047 + fatal + + + + [aligned-ibrp-047]-Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). + + + + + + + + + + aligned-ibrp-048 + fatal + + + + [aligned-ibrp-048]-Each tax breakdown (ibg-23) MUST have a tax category rate (ibt-119), except if the Invoice is not subject to tax. + + + + + + + + + + aligned-ibr-jp-06 + fatal + + + + [aligned-ibr-jp-06]-Tax category tax amount (ibt-117) with currency code JPY and tax category tax amount in accounting currency (ibt-190) shall not have decimal. + + + + + + + + + + + + + + + + aligned-ibrp-010 + fatal + + + + [aligned-ibrp-010]-Seller tax representative tax identifier (ibt-063) MUST occur maximum once, if the Seller has a tax representative (ibg-11). + + + + + + + + + + + + + + + + aligned-ibrp-016 + fatal + + + + [aligned-ibrp-016]-A Payment account identifier (ibt-84) MUST be present if Credit transfer (ibg-17) information is provided in the invoice. + + + + + + + + + + + + + + + + aligned-ibrp-017 + fatal + + + + [aligned-ibrp-017]-The last 4 to 6 digits of the Payment card primary account number (ibt-87) MUST be present if Payment card information (ibg-18) is provided in the Invoice. + + + + + + + + + + + + + + + + aligned-ibrp-049 + fatal + + + + [aligned-ibrp-049]-A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-81). + + + + + + + + + + + + + + + + aligned-ibrp-019 + fatal + + + + [aligned-ibrp-019]-Mandate reference (ibt-089) MUST be provided for direct debit. + + + + + + + + + + + + + + + + aligned-ibrp-e-05 + fatal + + + + [aligned-ibrp-e-05]-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 + fatal + + + + [aligned-ibrp-e-06]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-95) is "Exempt from tax", the Document level allowance tax rate (ibt-96) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-e-07 + fatal + + + + [aligned-ibrp-e-07]-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-09 + fatal + + + + [aligned-ibrp-e-09]-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 + fatal + + + + [aligned-ibrp-g-05]-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 + fatal + + + + [aligned-ibrp-g-06]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-95) is "Export" the Document level allowance tax rate (ibt-96) MUST be 0 (zero). + + + + + + + + + + + + + + + + aligned-ibrp-g-07 + fatal + + + + [aligned-ibrp-g-07]-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-09 + fatal + + + + [aligned-ibrp-g-09]-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 + fatal + + + + [aligned-ibrp-o-05]-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 + fatal + + + + [aligned-ibrp-o-06]-A Document level allowance (ibg-20) where tax category code (ibt-95) is "Not subject to tax" MUST not contain a Document level allowance tax rate (ibt-96). + + + + + + + + + + + + + + + + aligned-ibrp-o-07 + fatal + + + + [aligned-ibrp-o-07]-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-09 + fatal + + + + [aligned-ibrp-o-09]-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-ibr-jp-01 + fatal + + + + [aligned-ibr-jp-01]-If a date of an invoice period (ibg-14) or an invoice line period (ibg-26) is on and after October 1st 2023, Seller Tax Identifier shall be coded by using a Registration Number for Qualified Invoice purpose in Japan, which consists of 14 digits that start with T. + + + + + + + + + + + + + + + + aligned-ibr-jp-03 + fatal + + + + [aligned-ibr-jp-03]-Tax scheme shall use VAT from UNECE 5153 code list. VAT means Consumption Tax in Japan. + + + + + + + + + + + + + + + + + + + + + + + aligned-ibrp-cl-01-jp + fatal + + + + [aligned-ibrp-cl-01-jp]-Japanese invoice tax categories MUST be coded using UNCL5305 code list. + + + + + + + + + + + + + + + + aligned-ibrp-cl-02-jp + fatal + + + + [aligned-ibrp-cl-02-jp]-The document type code (ibt-003) MUST be 380. + + + + + + + + + + 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 b3eea0db..c90c8acd 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 @@ -145,15 +145,17 @@ public static ICommonsList getAllTestFiles () PeppolValidationReporting.VID_OPENPEPPOL_TSR_V104, PeppolValidationReporting.VID_OPENPEPPOL_TSR_V105, - /* PINT AUNZ */ + /* PINT A-NZ */ PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_INVOICE_1_0_1, PeppolValidationPintAUNZ.VID_OPENPEPPOL_AUNZ_PINT_UBL_CREDIT_NOTE_1_0_1, - /* Japan */ + /* PINT Japan */ PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_012, PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_012, + PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_2, + PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_1_0_2, - /* Malaysia */ + /* PINT Malaysia */ PeppolValidationPintMY.VID_OPENPEPPOL_MY_PINT_UBL_INVOICE_1_0_0, PeppolValidationPintMY.VID_OPENPEPPOL_MY_PINT_UBL_CREDIT_NOTE_1_0_0, PeppolValidationPintMY.VID_OPENPEPPOL_MY_PINT_UBL_INVOICE_SELF_BILLING_1_0_0, @@ -703,6 +705,28 @@ public static ICommonsList getAllMatchingTestFiles // empty return new CommonsArrayList <> (); } + if (aVESID.equals (PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_2)) + { + final String sPrefix = sPrefix0 + "pint-jp/1.0.2/"; + return new CommonsArrayList <> (new FileSystemResource (sPrefix + "Japan PINT Invoice UBL Example.xml"), + new FileSystemResource (sPrefix + "Japan PINT Invoice UBL Example1-minimum.xml"), + new FileSystemResource (sPrefix + + "Japan PINT Invoice UBL Example2-TaxAcctCur.xml"), + new FileSystemResource (sPrefix + "Japan PINT Invoice UBL Example3-SumInv1.xml"), + new FileSystemResource (sPrefix + "Japan PINT Invoice UBL Example4-SumInv2.xml"), + new FileSystemResource (sPrefix + + "Japan PINT Invoice UBL Example5-AllowanceCharge.xml"), + new FileSystemResource (sPrefix + "Japan PINT Invoice UBL Example6-CorrInv.xml"), + new FileSystemResource (sPrefix + + "Japan PINT Invoice UBL Example7-Return.Quan.ItPr.xml"), + new FileSystemResource (sPrefix + + "Japan PINT Invoice UBL Example9-SumInv1 and O.xml")); + } + if (aVESID.equals (PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_1_0_2)) + { + // empty + return new CommonsArrayList <> (); + } /* Peppol Malaysia */ if (aVESID.equals (PeppolValidationPintMY.VID_OPENPEPPOL_MY_PINT_UBL_INVOICE_1_0_0)) diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/PINT-jurisdiction-aligned-rules.sch b/phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/PINT-jurisdiction-aligned-rules.sch new file mode 100644 index 00000000..bf4d308f --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/PINT-jurisdiction-aligned-rules.sch @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + [aligned-ibrp-032jp]-Each Document level allowance (ibg-20) MUST have a Document level allowance tax category code (ibt-095) and Document level allowance tax rate (ibt-096), except if the allowance is outside the scope of tax. + + + [aligned-ibrp-037-jp]-Each Document level charge (ibg-21) MUST have a Document level charge tax category code (ibt-102) and Document level charge tax rate (ibt-103), except if the charge is outside the scope of tax. + + + [aligned-ibrp-050-jp]-Each Invoice line (ibg-25) MUST be categorized with an Invoiced item tax category code (ibt-151) and Invoiced item tax rate (ibt-152). + + + [aligned-ibrp-001-jp]-Specification identifier MUST start with the value 'urn:fdc:peppol:jp:billing:3.0' or 'urn:peppol:pint:billing-1@jp-1'. + [aligned-ibrp-002-jp]-Business process MUST be in the format 'urn:fdc:peppol.eu:2017:poacc:billing:01:1.0' or 'urn:peppol:bis:billing'. + [aligned-ibrp-008]-Payment terms (ibt-020) MUST occur maximum once. + [aligned-ibrp-009]-Seller tax identifier (ibt-031) MUST occur maximum once. + [aligned-ibrp-014]-Remittance information (ibt-083) MUST occur maximum once. + [aligned-ibrp-052]-An Invoice MUST have an invoice period (ibg-14) or an Invoice line period (ibg-26). + [aligned-ibrp-e-01]-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-95 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]-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-95 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]-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-95 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-sr-12]-Seller VAT identifier (ibt-031) MUST occur maximum once + [aligned-ibrp-sr-13]-Seller tax registration (ibt-032) MUST occur maximum once + [aligned-ibr-jp-04]-An Invoice shall have the Seller tax identifier (ibt-031). + [aligned-ibr-jp-05]-If Tax accounting currency (ibt-006) is present, it shall be coded using JPY in ISO code list of 4217 a-3. + + + [aligned-ibrp-045]-Each tax breakdown (ibg-23) MUST have a tax category taxable amount (ibt-116). + [aligned-ibrp-051-jp]-Tax category tax amount (ibt-117) = tax category taxable amount (ibt-116) x (tax category rate (ibt-119) / 100), rounded to integer. The rounded result amount shall be between the floor and the ceiling. + + + [aligned-ibrp-046]-Each tax breakdown (ibg-23) MUST have a tax category tax amount (ibt-117). + [aligned-ibrp-047]-Each tax breakdown (ibg-23) MUST be defined through a tax category code (ibt-118). + [aligned-ibrp-048]-Each tax breakdown (ibg-23) MUST have a tax category rate (ibt-119), except if the Invoice is not subject to tax. + [aligned-ibr-jp-06]-Tax category tax amount (ibt-117) with currency code JPY and tax category tax amount in accounting currency (ibt-190) shall not have decimal. + + + [aligned-ibrp-010]-Seller tax representative tax identifier (ibt-063) MUST occur maximum once, if the Seller has a tax representative (ibg-11). + + + [aligned-ibrp-016]-A Payment account identifier (ibt-84) MUST be present if Credit transfer (ibg-17) information is provided in the invoice. + + + [aligned-ibrp-017]-The last 4 to 6 digits of the Payment card primary account number (ibt-87) MUST be present if Payment card information (ibg-18) is provided in the Invoice. + + + [aligned-ibrp-049]-A Payment instruction (ibg-16) MUST specify the Payment means type code (ibt-81). + + + [aligned-ibrp-019]-Mandate reference (ibt-089) MUST be provided for direct debit. + + + [aligned-ibrp-e-05]-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]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-95) is "Exempt from tax", the Document level allowance tax rate (ibt-96) MUST be 0 (zero). + + + [aligned-ibrp-e-07]-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-09]-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]-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]-In a Document level allowance (ibg-20) where the Document level allowance tax category code (ibt-95) is "Export" the Document level allowance tax rate (ibt-96) MUST be 0 (zero). + + + [aligned-ibrp-g-07]-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-09]-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]-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]-A Document level allowance (ibg-20) where tax category code (ibt-95) is "Not subject to tax" MUST not contain a Document level allowance tax rate (ibt-96). + + + [aligned-ibrp-o-07]-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-09]-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-ibr-jp-01]-If a date of an invoice period (ibg-14) or an invoice line period (ibg-26) is on and after October 1st 2023, Seller Tax Identifier shall be coded by using a Registration Number for Qualified Invoice purpose in Japan, which consists of 14 digits that start with T. + + + [aligned-ibr-jp-03]-Tax scheme shall use VAT from UNECE 5153 code list. VAT means Consumption Tax in Japan. + + + + + [aligned-ibrp-cl-01-jp]-Japanese invoice tax categories MUST be coded using UNCL5305 code list. + + + [aligned-ibrp-cl-02-jp]-The document type code (ibt-003) MUST be 380. + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/readme.txt b/phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/readme.txt new file mode 100644 index 00000000..28f27bff --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/rule-source/pint-jp/1.0.2/readme.txt @@ -0,0 +1 @@ +This release uses PINT Schematrons 1.0.1 as-is diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example.xml new file mode 100644 index 00000000..58641450 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example.xml @@ -0,0 +1,467 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 156 + 2023-10-24 + + 2023-11-20 + 380 + Ordered at trade show + + JPY + + 4217:2323:2323 + 0150abc + + 2023-10-18 + 2023-10-18 + + + + O-998877 + SO-12343 + + + + 123 + 2023-10-20 + + + + despadv-3 + + + resadv-1 + + + ppid-123 + + + framework no 1 + + + DR35141 + 130 + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + project333 + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + Third address line + + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + Third line + + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + + 123456:000124:0147:1 + + + Payee party + + + 123456:000124:0147:1 + + + + + TaxRepresentative Name + + + 四谷4-32-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + Third line + + + JP + + + + T7654321098765 + + VAT + + + + + 2023-10-18 + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + Gate 15 + + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + + 30 + + + + 1234:567:1:3242394 + カ)マルマルシヨウジ + + + + + + + + 月末締め翌月20日払い, 銀行手数料振込人負担 + + + + + + false + 95 + 値引 + + 179 + + + S + 10 + + VAT + + + + + true + FC + 配送サービス + + 7679 + + + S + 10 + + VAT + + + + + 26000 + + 260000 + 26000 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + + 255990 + 263490 + 289490 + 179 + 7679 + 0 + 0 + 289490 + + + 1 + The equipment has 3 year warranty. + 5 + 250000 + Cost id 654 + + 2023-10-18 + 2023-10-18 + + + 1 + + 1 + + + + 010 + + 789 + + + + D001-1 + + + + AB-123 + 130 + + + false + 95 + 値引 + + 1500 + + + + true + CG + クリーニング + + 1500 + + + + + デスクチェア + + b-13214 + + + 97iugug876 + + + 4503994155481 + + + JP + + + 86776 + + + + S + 10 + + + VAT + + + + 表示単位名称 + + + + + 50000 + 1 + + + + 2 + + 5 + 2500 + + + 2023-10-18 + 2023-10-18 + + + D001-2 + + + + + コピー用紙(A4) + + + Item3 + + + 1234567890121 + + + + 43211503 + + + S + 10 + + + VAT + + + + 表示単位名称 + + + + + 500 + 1 + + false + 100 + 600 + + + + + 3 + + 10 + 3490 + + + 2023-10-18 + 2023-10-18 + + + D001-3 + + + + 検定済教科書(算数) + + E + 0 + + + VAT + + + + 表示単位名称 + + + + + 349 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example1-minimum.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example1-minimum.xml new file mode 100644 index 00000000..6edec96c --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example1-minimum.xml @@ -0,0 +1,155 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 156 + 2023-10-24 + 380 + JPY + + 2023-10-18 + 2023-10-18 + + + + 1234567890123 + + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + + + + + + 3210987654321 + + + JP + + + + 株式会社 〇〇物産 + + + + + 25250 + + 252500 + 25250 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + + 255990 + 255990 + 281240 + 0 + 0 + 0 + 0 + 281240 + + + 1 + 5 + 250000 + + 2023-10-18 + 2023-10-18 + + + デスクチェア + + S + 10 + + VAT + + + + + 50000 + 1 + + + + 2 + 5 + 2500 + + 2023-10-18 + 2023-10-18 + + + コピー用紙(A4) + + S + 10 + + VAT + + + + + 500 + 1 + + + + 3 + 10 + 3490 + + 2023-10-18 + 2023-10-18 + + + 検定済教科書(算数) + + E + 0 + + VAT + + + + + 349 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example2-TaxAcctCur.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example2-TaxAcctCur.xml new file mode 100644 index 00000000..8dedb64c --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example2-TaxAcctCur.xml @@ -0,0 +1,148 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 156 + 2023-10-24 + 2023-11-20 + 380 + EUR + JPY + + 2023-10-18 + 2023-10-18 + + + + 9482348239847239874 + + + GB + + + + T1234567890123 + + VAT + + + + XYZ Digital Learning Services, Inc. + + + + + + 3210987654321 + + + JP + + + + 〇〇 Bussan Co., Ltd. + + + + + + TaxRepresentative Name + + + + JP + + + + T7654321098765 + + VAT + + + + + 54 + 9387439 + + 123236 + VISA + Card holders name + + + + 250 + + 2500 + 250 + + S + 10 + + VAT + + + + + + 32500 + + 32500 + + S + 10 + + VAT + + + + + + 2500 + 2500 + 2750 + 0 + 0 + 0 + 0 + 2750 + + + 1 + 5 + 2500 + + 2023-10-18 + 2023-10-18 + + + 1 + + OR-123 + + + + 1-day online lecture course + + BE + + + S + 10 + + + VAT + + + + + 500 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example3-SumInv1.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example3-SumInv1.xml new file mode 100644 index 00000000..502f9356 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example3-SumInv1.xml @@ -0,0 +1,293 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 103 + 2023-11-01 + 2023-11-20 + 380 + JPY + + 2023-10-01 + 2023-10-31 + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + 30 + + 1234:567:1:3242394 + カ)マルマルシヨウジ + + + + 月末締め翌月20日払い, 銀行手数料振込人負担 + + + 26000 + + 260000 + 26000 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + + 263490 + 263490 + 289490 + 0 + 0 + 0 + 0 + 289490 + + + 1 + The equipment has 3 year warranty. + 5 + 257500 + + 2023-10-16 + 2023-10-16 + + + D001-1 + + + false + 95 + 値引 + 1679 + + + true + CG + クリーニング + 1500 + + + true + FC + 配送サービス + 7679 + + + デスクチェア + + S + 10 + + VAT + + + + 表示単位名称 + + + + + 50000 + 1 + + + + 2 + 5 + 2500 + + 2023-10-18 + 2023-10-18 + + + D001-2 + + + コピー用紙(A4) + + S + 10 + + + VAT + + + + 表示単位名称 + + + + + 500 + 1 + + false + 100 + 600 + + + + + 3 + 10 + 3490 + + 2023-10-18 + 2023-10-18 + + + D001-3 + + + 検定済教科書(算数) + + E + 0 + + VAT + + + + 表示単位名称 + + + + + 349 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example4-SumInv2.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example4-SumInv2.xml new file mode 100644 index 00000000..cfbaf592 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example4-SumInv2.xml @@ -0,0 +1,248 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 103 + 2023-11-01 + 2023-11-20 + 380 + JPY + + 2023-10-01 + 2023-10-31 + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + 30 + + 1234:567:1:3242394 + カ)マルマルシヨウジ + + + + 月末締め翌月20日払い, 銀行手数料振込人負担 + + + 26000 + + 260000 + 26000 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + + 263490 + 263490 + 289490 + 0 + 0 + 0 + 0 + 289490 + + + 1 + 1 + 257500 + + 2023-10-16 + 2023-10-16 + + + D001-1 + + S + 10 + + VAT + + + + + 257500 + 1 + + + + 2 + 1 + 2500 + + 2023-10-18 + 2023-10-18 + + + D001-2 + + S + 10 + + + VAT + + + + + 2500 + 1 + + + + 3 + 1 + 3490 + + 2023-10-20 + 2023-10-20 + + + D001-3 + + E + 0 + + VAT + + + + + 3490 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example5-AllowanceCharge.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example5-AllowanceCharge.xml new file mode 100644 index 00000000..81b3fcbd --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example5-AllowanceCharge.xml @@ -0,0 +1,326 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 156 + 2023-10-24 + 2023-11-20 + 380 + JPY + + 2023-10-18 + 2023-10-18 + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + 2023-10-18 + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + 30 + + 1234:567:1:3242394 + カ)マルマルシヨウジ + + + + 月末締め翌月20日払い, 銀行手数料振込人負担 + + + false + 95 + 値引 + 179 + + S + 10 + + VAT + + + + + true + FC + 配送サービス + 7679 + + S + 10 + + VAT + + + + + 26000 + + 260000 + 26000 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + + 255990 + 263490 + 289490 + 179 + 7679 + 0 + 0 + 289490 + + + 1 + The equipment has 3 year warranty. + 5 + 250000 + Cost id 654 + + 2023-10-18 + 2023-10-18 + + + 1 + + 1 + + + + 010 + + 789 + + + + D001-1 + + + false + 95 + 値引 + 1500 + + + true + CG + クリーニング + 1500 + + + デスクチェア + + S + 10 + + VAT + + + + 表示単位名称 + + + + + 50000 + 1 + + + + 2 + 5 + 2500 + + 2023-10-18 + 2023-10-18 + + + D001-2 + + + コピー用紙(A4) + + S + 10 + + VAT + + + + 表示単位名称 + + + + + 500 + 1 + + false + 100 + 600 + + + + + 3 + 10 + 3490 + + 2023-10-18 + 2023-10-18 + + + D001-3 + + + 検定済教科書(算数) + + E + 0 + + VAT + + + + 表示単位名称 + + + + + 349 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example6-CorrInv.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example6-CorrInv.xml new file mode 100644 index 00000000..913a22b8 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example6-CorrInv.xml @@ -0,0 +1,320 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 156 + 2023-10-24 + 2023-11-20 + 380 + Ordered at trade show + JPY + + 2023-10-18 + 2023-10-18 + + + + 123 + 2023-10-20 + + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + 2023-10-18 + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + 30 + + 1234:567:1:3242394 + カ)マルマルシヨウジ + + + + 月末締め翌月20日払い, 銀行手数料振込人負担 + + + false + 95 + 値引 + 179 + + S + 10 + + VAT + + + + + true + FC + 配送サービス + 7679 + + S + 10 + + VAT + + + + + 26000 + + 260000 + 26000 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + + 255990 + 263490 + 289490 + 179 + 7679 + 0 + 0 + 289490 + + + 1 + The equipment has 3 year warranty. + 5 + 250000 + + 2023-10-18 + 2023-10-18 + + + D001-1 + + + false + 95 + 値引 + 1500 + + + true + CG + クリーニング + 1500 + + + デスクチェア + + S + 10 + + VAT + + + + 表示単位名称 + + + + + 50000 + 1 + + + + 2 + 5 + 2500 + + 2023-10-18 + 2023-10-18 + + + D001-2 + + + コピー用紙(A4) + + S + 10 + + VAT + + + + 表示単位名称 + + + + + 500 + 1 + + false + 100 + 600 + + + + + 3 + 10 + 3490 + + 2023-10-18 + 2023-10-18 + + + D001-3 + + + 検定済教科書(算数) + + E + 0 + + VAT + + + + 表示単位名称 + + + + + 349 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example7-Return.Quan.ItPr.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example7-Return.Quan.ItPr.xml new file mode 100644 index 00000000..82c5e1c9 --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example7-Return.Quan.ItPr.xml @@ -0,0 +1,193 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 156 + 2023-10-25 + 380 + JPY + + 2023-10-24 + 2023-10-24 + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + 2023-10-24 + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + Gate 15 + + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + -10000 + + -100000 + -10000 + + S + 10 + + VAT + + + + + + -100000 + -100000 + -110000 + 0 + 0 + 0 + 0 + -110000 + + + 1 + 2023-10-18 + -2 + -100000 + + 2023-10-24 + 2023-10-24 + + + R001-1 + + + + デスクチェア + + S + 10 + + + VAT + + + + 表示単位名称 + + + + + 50000 + 1 + + + \ No newline at end of file diff --git a/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example9-SumInv1 and O.xml b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example9-SumInv1 and O.xml new file mode 100644 index 00000000..49d529af --- /dev/null +++ b/phive-rules-peppol/src/test/resources/external/test-files/pint-jp/1.0.2/Japan PINT Invoice UBL Example9-SumInv1 and O.xml @@ -0,0 +1,333 @@ + + + + + + 2.1 + urn:peppol:pint:billing-1@jp-1 + urn:peppol:bis:billing + 103 + 2023-11-01 + 2023-11-20 + 380 + JPY + + 2023-10-01 + 2023-10-31 + + + doc1 + Usage summary + + aHR0cHM6Ly90ZXN0LXZlZmEuZGlmaS5uby9wZXBwb2xiaXMvcG9hY2MvYmlsbGluZy8zLjAvYmlzLw== + + + http://www.salescompany.com/summary001.html + + + + + doc2 + Usage breakdown + + + http://www.salescompany.com/breakdown001.html + + + + + + 1234567890123 + + 123456:000123:0147:1 + + + 株式会社 〇〇商事 + + + 四谷4-29-X + 〇〇商事ビル + 新宿区 + 1600044 + 東京都 + + JP + + + + T1234567890123 + + VAT + + + + 株式会社 〇〇商事 + 1234567890123 + Private Limited Company + + + 青木 志郎 + 03-3xxx-0001 + shirou_aoki@〇〇co.jp + + + + + + 3210987654321 + + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + >T3210987654321 + + VAT + + + + 株式会社 〇〇物産 + 654321:000321:0147:1 + + + 株式会社 〇〇物産 + 011-757-1xxx + purchaser@oobussan.co.jp + + + + + + 123456:000123:0147:1 + + 北区 + 北十二条西76-X + 札幌市 + 0010012 + 北海道 + + JP + + + + + + 株式会社 〇〇物産 札幌支社 + + + + + 30 + + 1234:567:1:3242394 + カ)マルマルシヨウジ + + + + 月末締め翌月20日払い, 銀行手数料振込人負担 + + + 26000 + + 260000 + 26000 + + S + 10 + + VAT + + + + + 3490 + 0 + + E + 0 + + VAT + + + + + 70000 + 0 + + O + + VAT + + + + + + 333490 + 333490 + 359490 + 0 + 0 + 0 + 0 + 359490 + + + 1 + The equipment has 3 year warranty. + 5 + 257500 + + 2023-10-16 + 2023-10-16 + + + D001-1 + + + false + 95 + 値引 + 1679 + + + true + CG + クリーニング + 1500 + + + true + FC + 配送サービス + 7679 + + + デスクチェア + + S + 10 + + VAT + + + + 表示単位名称 + + + + + 50000 + 1 + + + + 2 + 5 + 2500 + + 2023-10-18 + 2023-10-18 + + + D001-2 + + + コピー用紙(A4) + + S + 10 + + + VAT + + + + 表示単位名称 + + + + + 500 + 1 + + false + 100 + 600 + + + + + 3 + 10 + 3490 + + 2023-10-18 + 2023-10-18 + + + D001-3 + + + 検定済教科書(算数) + + E + 0 + + VAT + + + + 表示単位名称 + + + + + 349 + 1 + + + + 4 + Sample of new model + 1 + 70000 + + 2023-10-17 + 2023-10-17 + + + D001-4 + + + オフィスチェア + + O + + VAT + + + + 表示単位名称 + + + + + 70000 + 1 + + + \ No newline at end of file