Skip to content

Commit

Permalink
Merge pull request #398 from ConnectingEurope/ph-testfile-update
Browse files Browse the repository at this point in the history
Added the test files from 1.3.12 release + created build release script
  • Loading branch information
oriol authored Oct 8, 2024
2 parents e176cd2 + 7237b0b commit 7ce3772
Show file tree
Hide file tree
Showing 17 changed files with 3,513 additions and 19 deletions.
24 changes: 11 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
*.class

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

.DS_Store

# IDE files
.project
*.iml
target/

# temp files
zz*

# vefa validator test folders
target-cii/
target-ubl/
zz*

# releases
en16931-cii-*.zip
en16931-ubl-*.zip
4 changes: 2 additions & 2 deletions buildconfig-cii.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
<title>TC434 CII Invoice</title>
<declaration type="xml.uncefact">CrossIndustryInvoice::urn:cen.eu:en16931:2017</declaration>
<inherit>uncefact-d16b-uncoupled-crossindustryinvoice</inherit>
<file source="cii/schematron/EN16931-CII-validation.sch" path="cii/xslt/EN16931-CII-validation.xsl" />
<file source="cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch" path="cii/xslt/EN16931-CII-validation.xsl" />
</configuration>

<configuration>
<identifier>tc434-cii-ferd</identifier>
<title>TC434 CII Invoice FERD</title>
<declaration type="xml.uncefact">CrossIndustryInvoice::urn:ferd:CrossIndustryDocument:invoice:1p0:comfort</declaration>
<inherit>uncefact-d16b-uncoupled-crossindustryinvoice</inherit>
<file source="cii/schematron/EN16931-CII-validation.sch" path="cii/xslt/EN16931-CII-validation.xsl" />
<file source="cii/schematron/preprocessed/EN16931-CII-validation-preprocessed.sch" path="cii/xslt/EN16931-CII-validation.xsl" />
</configuration>

</buildConfigurations>
8 changes: 4 additions & 4 deletions buildconfig-ubl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,31 @@
<title>TC434 UBL Invoice</title>
<declaration type="xml.ubl">Invoice::urn:cen.eu:en16931:2017</declaration>
<inherit>ubl-invoice-2.1</inherit>
<file source="ubl/schematron/EN16931-UBL-validation.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
<file source="ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
</configuration>

<configuration>
<identifier>tc434-ubl-cn</identifier>
<title>TC434 UBL Credit Note</title>
<declaration type="xml.ubl">CreditNote::urn:cen.eu:en16931:2017</declaration>
<inherit>ubl-creditnote-2.1</inherit>
<file source="ubl/schematron/EN16931-UBL-validation.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
<file source="ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
</configuration>

<configuration>
<identifier>tc434-ubl-peppol</identifier>
<title>TC434 UBL Example</title>
<declaration type="xml.ubl">Invoice::urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</declaration>
<inherit>ubl-invoice-2.1</inherit>
<file source="ubl/schematron/EN16931-UBL-validation.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
<file source="ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
</configuration>

<configuration>
<identifier>tc434-ubl-peppol-cn</identifier>
<title>TC434 UBL Example</title>
<declaration type="xml.ubl">CreditNote::urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</declaration>
<inherit>ubl-creditnote-2.1</inherit>
<file source="ubl/schematron/EN16931-UBL-validation.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
<file source="ubl/schematron/preprocessed/EN16931-UBL-validation-preprocessed.sch" path="ubl/xslt/EN16931-UBL-validation.xsl" />
</configuration>

</buildConfigurations>
195 changes: 195 additions & 0 deletions cii/examples/CII_business_example_Z.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,195 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed under European Union Public Licence (EUPL) version 1.2.
-->
<rsm:CrossIndustryInvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100 ../schema/D16B%20SCRDM%20(Subset)/uncoupled%20clm/CII/uncefact/data/standard/CrossIndustryInvoice_100pD16B.xsd"
xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
xmlns:rsm="urn:un:unece:uncefact:data:standard:CrossIndustryInvoice:100" xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100">
<rsm:ExchangedDocumentContext>
<ram:GuidelineSpecifiedDocumentContextParameter>
<ram:ID>urn:ferd:CrossIndustryDocument:invoice:1p0:comfort</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
</rsm:ExchangedDocumentContext>
<rsm:ExchangedDocument>
<ram:ID>2016166</ram:ID>
<ram:TypeCode>380</ram:TypeCode>
<ram:IssueDateTime>
<udt:DateTimeString format="102">20150109</udt:DateTimeString>
</ram:IssueDateTime>
<ram:IncludedNote>
<ram:Content>This is an example invoice based on data that is used in real business.Sehr geehrter Herr xxx,

für die Unterstützung im September stellen wir Ihnen gemäß Auftrag foldende Rechnung.

Für das in uns gesetzte Vertrauen bedanken wir uns auf diesem Wege herzlich.
</ram:Content>
<ram:SubjectCode>AAR</ram:SubjectCode>
</ram:IncludedNote>
<ram:IncludedNote>
<ram:Content>Sehr geehrter Herr xxx,

für die Unterstützung im September stellen wir Ihnen gemäß Auftrag foldende Rechnung.

Für das in uns gesetzte Vertrauen bedanken wir uns auf diesem Wege herzlich.
</ram:Content>

</ram:IncludedNote>
</rsm:ExchangedDocument>
<rsm:SupplyChainTradeTransaction>
<ram:IncludedSupplyChainTradeLineItem>
<ram:AssociatedDocumentLineDocument>
<ram:LineID>1</ram:LineID>
</ram:AssociatedDocumentLineDocument>
<ram:SpecifiedTradeProduct>
<ram:SellerAssignedID>846</ram:SellerAssignedID>
<ram:Name>Festpreis</ram:Name>
<ram:Description>Neues DSL Portfolio 2016</ram:Description>
</ram:SpecifiedTradeProduct>
<ram:SpecifiedLineTradeAgreement>
<ram:NetPriceProductTradePrice>
<ram:ChargeAmount>12122.5900</ram:ChargeAmount>
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="C62">1.000</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:CategoryCode>Z</ram:CategoryCode>
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:LineTotalAmount>12122.59</ram:LineTotalAmount>
</ram:SpecifiedTradeSettlementLineMonetarySummation>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>

<ram:IncludedSupplyChainTradeLineItem>
<ram:AssociatedDocumentLineDocument>
<ram:LineID>2</ram:LineID>
</ram:AssociatedDocumentLineDocument>
<ram:SpecifiedTradeProduct>
<ram:SellerAssignedID>832</ram:SellerAssignedID>
<ram:Name>Abzug</ram:Name>
</ram:SpecifiedTradeProduct>
<ram:SpecifiedLineTradeAgreement>
<ram:NetPriceProductTradePrice>
<ram:ChargeAmount>606.1300</ram:ChargeAmount>
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="C62">-1</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:CategoryCode>Z</ram:CategoryCode>
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:LineTotalAmount>-606.13</ram:LineTotalAmount>
</ram:SpecifiedTradeSettlementLineMonetarySummation>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>

<ram:IncludedSupplyChainTradeLineItem>
<ram:AssociatedDocumentLineDocument>
<ram:LineID>16</ram:LineID>
</ram:AssociatedDocumentLineDocument>
<ram:SpecifiedTradeProduct>
<ram:SellerAssignedID>870</ram:SellerAssignedID>
<ram:Name>zzgl. </ram:Name>
</ram:SpecifiedTradeProduct>
<ram:SpecifiedLineTradeAgreement>
<ram:NetPriceProductTradePrice>
<ram:ChargeAmount>1.5000</ram:ChargeAmount>
</ram:NetPriceProductTradePrice>
</ram:SpecifiedLineTradeAgreement>
<ram:SpecifiedLineTradeDelivery>
<ram:BilledQuantity unitCode="C62">1.000</ram:BilledQuantity>
</ram:SpecifiedLineTradeDelivery>
<ram:SpecifiedLineTradeSettlement>
<ram:ApplicableTradeTax>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:CategoryCode>Z</ram:CategoryCode>
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:SpecifiedTradeSettlementLineMonetarySummation>
<ram:LineTotalAmount>177.41</ram:LineTotalAmount>
</ram:SpecifiedTradeSettlementLineMonetarySummation>
</ram:SpecifiedLineTradeSettlement>
</ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableHeaderTradeAgreement>
<ram:SellerTradeParty>
<ram:Name>XXX AG</ram:Name>
<ram:SpecifiedLegalOrganization>
<ram:ID>57151520</ram:ID>
</ram:SpecifiedLegalOrganization>
<ram:PostalTradeAddress>
<ram:PostcodeCode>10369</ram:PostcodeCode>
<ram:LineOne>Storkower Straße 207</ram:LineOne>
<ram:CityName>Berlin</ram:CityName>
<ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="VA">DE37/302/30168</ram:ID>
</ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
<ram:ID>10202</ram:ID>
<ram:Name>XXX AG</ram:Name>
<ram:DefinedTradeContact>
<ram:PersonName>XXXX</ram:PersonName>
</ram:DefinedTradeContact>
<ram:PostalTradeAddress>
<ram:PostcodeCode>10369</ram:PostcodeCode>
<ram:LineOne>Storkower Straße 207</ram:LineOne>
<ram:CityName>Berlin</ram:CityName>
<ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>
</ram:BuyerTradeParty>
</ram:ApplicableHeaderTradeAgreement>

<ram:ApplicableHeaderTradeDelivery>
<ram:ActualDeliverySupplyChainEvent>
<ram:OccurrenceDateTime>
<udt:DateTimeString format="102">20160906</udt:DateTimeString>
</ram:OccurrenceDateTime>
</ram:ActualDeliverySupplyChainEvent>
</ram:ApplicableHeaderTradeDelivery>

<ram:ApplicableHeaderTradeSettlement>
<ram:PaymentReference>2016166</ram:PaymentReference>
<ram:InvoiceCurrencyCode>EUR</ram:InvoiceCurrencyCode>
<ram:SpecifiedTradeSettlementPaymentMeans>
<ram:TypeCode>30</ram:TypeCode>
<ram:PayeePartyCreditorFinancialAccount>
<ram:IBANID>DE12500105170648489890</ram:IBANID>
</ram:PayeePartyCreditorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>
<ram:ApplicableTradeTax>
<ram:CalculatedAmount>0.00</ram:CalculatedAmount>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:BasisAmount>11693.87</ram:BasisAmount>
<ram:CategoryCode>Z</ram:CategoryCode>
<ram:RateApplicablePercent>0.00</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
<ram:SpecifiedTradePaymentTerms>
<ram:DueDateDateTime>
<udt:DateTimeString format="102">20150109</udt:DateTimeString>
</ram:DueDateDateTime>
</ram:SpecifiedTradePaymentTerms>
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>11693.87</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>11693.87</ram:TaxBasisTotalAmount>
<ram:TaxTotalAmount currencyID="EUR">0.0</ram:TaxTotalAmount>
<ram:GrandTotalAmount>11693.87</ram:GrandTotalAmount>
<ram:DuePayableAmount>11693.87</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
</ram:ApplicableHeaderTradeSettlement>
</rsm:SupplyChainTradeTransaction>
</rsm:CrossIndustryInvoice>
Loading

0 comments on commit 7ce3772

Please sign in to comment.