Skip to content

Commit

Permalink
Added Peppol PINT JP 1.0.3 release
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Dec 3, 2024
1 parent 1deef6d commit bf15e53
Show file tree
Hide file tree
Showing 12 changed files with 2,539 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ I hope that with the introduction of PINT, the versioning problem will be solved
* v3.2.2 - work in progress
* Updated to XRechnung 3.0.2 Schematron Rules 2.2.0
* Added Peppol November 2024 release (Billing 3.0.18 and Upgrade 3.0.14)
* Added Peppol PINT JP 1.0.3 release
* v3.2.1 - 2024-10-09
* Added support for EN 16931 rules v1.3.13 format and deprecated v1.3.11
* v3.2.0 - 2024-09-16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ public final class PeppolValidationPintJP
"credit-note",
"1.0.2");

// 1.0.3
public static final DVRCoordinate VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_3 = PhiveRulesHelper.createCoordinate (GROUP_ID,
"invoice",
"1.0.3");
public static final DVRCoordinate VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_1_0_3 = PhiveRulesHelper.createCoordinate (GROUP_ID,
"credit-note",
"1.0.3");

private PeppolValidationPintJP ()
{}

Expand Down Expand Up @@ -130,5 +138,29 @@ public static void init (@Nonnull final IValidationExecutorSetRegistry <IValidat
PhiveRulesHelper.createXSLT (aCPR2,
aNSCtxCreditNote)));
}

// 1.0.3
{
final ClassPathResource aCPR1 = new ClassPathResource (BASE_PATH +
"1.0.3/xslt/PINT-UBL-validation-preprocessed.xslt",
_getCL ());
final ClassPathResource aCPR2 = new ClassPathResource (BASE_PATH +
"1.0.3/xslt/PINT-jurisdiction-aligned-rules.xslt",
_getCL ());
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_3,
"Peppol PINT Japan Invoice (UBL) 1.0.3",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
PhiveRulesHelper.createXSLT (aCPR1,
aNSCtxInvoice),
PhiveRulesHelper.createXSLT (aCPR2,
aNSCtxInvoice)));
aRegistry.registerValidationExecutorSet (ValidationExecutorSet.create (VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_1_0_3,
"Peppol PINT Japan Credit Note (UBL) 1.0.3",
PhiveRulesHelper.createSimpleStatus (bNotDeprecated),
PhiveRulesHelper.createXSLT (aCPR1,
aNSCtxCreditNote),
PhiveRulesHelper.createXSLT (aCPR2,
aNSCtxCreditNote)));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public static ICommonsList <PhiveTestFile> getAllTestFiles ()
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,
PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_3,
PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_CREDIT_NOTE_1_0_3,

/* PINT Malaysia */
PeppolValidationPintMY.VID_OPENPEPPOL_MY_PINT_UBL_INVOICE_1_0_0,
Expand Down Expand Up @@ -859,6 +861,30 @@ public static ICommonsList <? extends IReadableResource> getAllMatchingTestFiles
return new CommonsArrayList <> ();
}

// 1.0.3
if (aVESID.equals (PeppolValidationPintJP.VID_OPENPEPPOL_JP_PINT_INVOICE_1_0_3))
{
final String sPrefix = sPrefix0 + "pint-jp/1.0.3/";
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_3))
{
// empty
return new CommonsArrayList <> ();
}

/* Peppol Malaysia */
// 1.0.0
if (aVESID.equals (PeppolValidationPintMY.VID_OPENPEPPOL_MY_PINT_UBL_INVOICE_1_0_0))
Expand Down
Loading

0 comments on commit bf15e53

Please sign in to comment.