-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef880ec
commit e030538
Showing
2 changed files
with
221 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,216 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testSet xmlns="http://difi.no/xsd/vefa/validator/1.0" configuration="peppolbis-en16931-base-3.0-ubl"> | ||
<assert> | ||
<description>Invoice type code 326 or 384 are only allowed when both buyer and | ||
seller are German organizations.</description> | ||
<scope>PEPPOL-EN16931-P0112</scope> | ||
</assert> | ||
<test> | ||
<assert> | ||
<success>PEPPOL-EN16931-P0112</success> | ||
</assert> | ||
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"> | ||
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> | ||
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> | ||
<cac:AccountingSupplierParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID schemeID="0013">987654321</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Seller name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Seller address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Seller address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Seller city]</cbc:CityName> | ||
<cbc:PostalZone>12345</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>NO</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingSupplierParty> | ||
<cac:AccountingCustomerParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID>138</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Buyer name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Buyer address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Buyer address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Buyer city]</cbc:CityName> | ||
<cbc:PostalZone>98765</cbc:PostalZone> | ||
<cac:AddressLine> | ||
<cbc:Line>[Buyer address line 3]</cbc:Line> | ||
</cac:AddressLine> | ||
<cac:Country> | ||
<cbc:IdentificationCode>SE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingCustomerParty> | ||
</Invoice> | ||
</test> | ||
<test> | ||
<assert> | ||
<success>PEPPOL-EN16931-P0112</success> | ||
</assert> | ||
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"> | ||
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> | ||
<cbc:InvoiceTypeCode>326</cbc:InvoiceTypeCode> | ||
<cac:AccountingSupplierParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID schemeID="0013">987654321</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Seller name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Seller address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Seller address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Seller city]</cbc:CityName> | ||
<cbc:PostalZone>12345</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>DE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingSupplierParty> | ||
<cac:AccountingCustomerParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID>138</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Buyer name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Buyer address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Buyer address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Buyer city]</cbc:CityName> | ||
<cbc:PostalZone>98765</cbc:PostalZone> | ||
<cac:AddressLine> | ||
<cbc:Line>[Buyer address line 3]</cbc:Line> | ||
</cac:AddressLine> | ||
<cac:Country> | ||
<cbc:IdentificationCode>DE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingCustomerParty> | ||
</Invoice> | ||
</test> | ||
<test> | ||
<assert> | ||
<success>PEPPOL-EN16931-P0112</success> | ||
</assert> | ||
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"> | ||
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:02:1.0</cbc:ProfileID> | ||
<cbc:InvoiceTypeCode>384</cbc:InvoiceTypeCode> | ||
<cac:AccountingSupplierParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID schemeID="0013">987654321</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Seller name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Seller address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Seller address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Seller city]</cbc:CityName> | ||
<cbc:PostalZone>12345</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>DE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingSupplierParty> | ||
<cac:AccountingCustomerParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID>138</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Buyer name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Buyer address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Buyer address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Buyer city]</cbc:CityName> | ||
<cbc:PostalZone>98765</cbc:PostalZone> | ||
<cac:AddressLine> | ||
<cbc:Line>[Buyer address line 3]</cbc:Line> | ||
</cac:AddressLine> | ||
<cac:Country> | ||
<cbc:IdentificationCode>DE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingCustomerParty> | ||
</Invoice> | ||
</test> | ||
<test> | ||
<assert> | ||
<error>PEPPOL-EN16931-P0112</error> | ||
</assert> | ||
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"> | ||
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> | ||
<cbc:InvoiceTypeCode>384</cbc:InvoiceTypeCode> | ||
<cac:AccountingSupplierParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID schemeID="0013">987654321</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Seller name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Seller address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Seller address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Seller city]</cbc:CityName> | ||
<cbc:PostalZone>12345</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>SE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingSupplierParty> | ||
<cac:AccountingCustomerParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="EM">[email protected]</cbc:EndpointID> | ||
<cac:PartyIdentification> | ||
<cbc:ID>138</cbc:ID> | ||
</cac:PartyIdentification> | ||
<cac:PartyName> | ||
<cbc:Name>[Buyer name]</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>[Buyer address line 1]</cbc:StreetName> | ||
<cbc:AdditionalStreetName>[Buyer address line 2]</cbc:AdditionalStreetName> | ||
<cbc:CityName>[Buyer city]</cbc:CityName> | ||
<cbc:PostalZone>98765</cbc:PostalZone> | ||
<cac:AddressLine> | ||
<cbc:Line>[Buyer address line 3]</cbc:Line> | ||
</cac:AddressLine> | ||
<cac:Country> | ||
<cbc:IdentificationCode>NO</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
</cac:Party> | ||
</cac:AccountingCustomerParty> | ||
</Invoice> | ||
</test> | ||
</testSet> |