-
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
f866cf4
commit d92a40b
Showing
3 changed files
with
351 additions
and
2 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
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,311 @@ | ||
<?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>The last digit of a Swedish organization number must be valid according to the Luhn algorithm.</description> | ||
<scope>SE-R-013</scope> | ||
</assert> | ||
<test> | ||
<assert> | ||
<success>SE-R-013</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:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID> | ||
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> | ||
<cbc:ID>2018210</cbc:ID> | ||
<cbc:IssueDate>2018-02-08</cbc:IssueDate> | ||
<cbc:DueDate>2018-03-07</cbc:DueDate> | ||
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> | ||
<cbc:Note>Testfil för kontroll av svenska valideringsregler</cbc:Note> | ||
<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode> | ||
<cbc:BuyerReference>BuyerRef 123</cbc:BuyerReference> | ||
|
||
<cac:AccountingSupplierParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="0007">2021005489</cbc:EndpointID> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>Storgatan 1</cbc:StreetName> | ||
<cbc:CityName>Stockholm</cbc:CityName> | ||
<cbc:PostalZone>11122</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>SE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
<cac:PartyTaxScheme> | ||
<cbc:CompanyID>Godkänd för F-skatt</cbc:CompanyID> | ||
<cac:TaxScheme> | ||
<cbc:ID>TAX</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:PartyTaxScheme> | ||
<cac:PartyTaxScheme> | ||
<cbc:CompanyID>SE123456789001</cbc:CompanyID> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:PartyTaxScheme> | ||
<cac:PartyLegalEntity> | ||
<cbc:RegistrationName>Allsälj AB</cbc:RegistrationName> | ||
<cbc:CompanyID>2021005489</cbc:CompanyID> | ||
<cbc:CompanyLegalForm>Säte: Stockholm</cbc:CompanyLegalForm> | ||
</cac:PartyLegalEntity> | ||
</cac:Party> | ||
</cac:AccountingSupplierParty> | ||
|
||
<cac:AccountingCustomerParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="0007">2021005489</cbc:EndpointID> | ||
<cac:PartyName> | ||
<cbc:Name>Kommunteknisk service</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>Lilla gränd 9</cbc:StreetName> | ||
<cbc:CityName>Stockholm</cbc:CityName> | ||
<cbc:PostalZone>10203</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>SE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
<cac:PartyLegalEntity> | ||
<cbc:RegistrationName>Kommunens Tekniska Bolag AB</cbc:RegistrationName> | ||
<cbc:CompanyID schemeID="0007">2021005489</cbc:CompanyID> | ||
</cac:PartyLegalEntity> | ||
</cac:Party> | ||
</cac:AccountingCustomerParty> | ||
|
||
<cac:PaymentMeans> | ||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode> | ||
<cbc:PaymentID>08/00355</cbc:PaymentID> | ||
<cac:PayeeFinancialAccount> | ||
<cbc:ID>1234567</cbc:ID> | ||
<cbc:Name>Account name</cbc:Name> | ||
<cac:FinancialInstitutionBranch> | ||
<cbc:ID>9999</cbc:ID> | ||
</cac:FinancialInstitutionBranch> | ||
</cac:PayeeFinancialAccount> | ||
</cac:PaymentMeans> | ||
|
||
<cac:AllowanceCharge> | ||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator> | ||
<cbc:AllowanceChargeReason>Rabatt</cbc:AllowanceChargeReason> | ||
<cbc:Amount currencyID="SEK">11</cbc:Amount> | ||
<cac:TaxCategory> | ||
<cbc:ID>S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:TaxCategory> | ||
</cac:AllowanceCharge> | ||
<cac:AllowanceCharge> | ||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator> | ||
<cbc:AllowanceChargeReason>Förvaring</cbc:AllowanceChargeReason> | ||
<cbc:Amount currencyID="SEK">11</cbc:Amount> | ||
<cac:TaxCategory> | ||
<cbc:ID>S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:TaxCategory> | ||
</cac:AllowanceCharge> | ||
|
||
<cac:TaxTotal> | ||
<cbc:TaxAmount currencyID="SEK">25</cbc:TaxAmount> | ||
<cac:TaxSubtotal> | ||
<cbc:TaxableAmount currencyID="SEK">100</cbc:TaxableAmount> | ||
<cbc:TaxAmount currencyID="SEK">25</cbc:TaxAmount> | ||
<cac:TaxCategory> | ||
<cbc:ID>S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:TaxCategory> | ||
</cac:TaxSubtotal> | ||
</cac:TaxTotal> | ||
|
||
<cac:LegalMonetaryTotal> | ||
<cbc:LineExtensionAmount currencyID="SEK">100</cbc:LineExtensionAmount> | ||
<cbc:TaxExclusiveAmount currencyID="SEK">100</cbc:TaxExclusiveAmount> | ||
<cbc:TaxInclusiveAmount currencyID="SEK">125</cbc:TaxInclusiveAmount> | ||
|
||
<cbc:AllowanceTotalAmount currencyID="SEK">11</cbc:AllowanceTotalAmount> | ||
<cbc:ChargeTotalAmount currencyID="SEK">11</cbc:ChargeTotalAmount> | ||
<cbc:PayableAmount currencyID="SEK">125</cbc:PayableAmount> | ||
</cac:LegalMonetaryTotal> | ||
|
||
<cac:InvoiceLine> | ||
<cbc:ID>1</cbc:ID> | ||
<cbc:InvoicedQuantity unitCode="EA">5</cbc:InvoicedQuantity> | ||
<cbc:LineExtensionAmount currencyID="SEK">100</cbc:LineExtensionAmount> | ||
<cac:Item> | ||
<cbc:Name>Utbytesstol</cbc:Name> | ||
<cac:ClassifiedTaxCategory> | ||
<cbc:ID schemeID="UNCL5305">S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:ClassifiedTaxCategory> | ||
</cac:Item> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="SEK">20</cbc:PriceAmount> | ||
</cac:Price> | ||
</cac:InvoiceLine> | ||
|
||
</Invoice> | ||
|
||
|
||
</test> | ||
<test> | ||
<assert> | ||
<warning>SE-R-013</warning> | ||
</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:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID> | ||
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID> | ||
<cbc:ID>2018210</cbc:ID> | ||
<cbc:IssueDate>2018-02-08</cbc:IssueDate> | ||
<cbc:DueDate>2018-03-07</cbc:DueDate> | ||
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> | ||
<cbc:Note>Testfil för kontroll av svenska valideringsregler</cbc:Note> | ||
<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode> | ||
<cbc:BuyerReference>BuyerRef 123</cbc:BuyerReference> | ||
|
||
<cac:AccountingSupplierParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="0007">2021005489</cbc:EndpointID> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>Storgatan 1</cbc:StreetName> | ||
<cbc:CityName>Stockholm</cbc:CityName> | ||
<cbc:PostalZone>11122</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>SE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
<cac:PartyTaxScheme> | ||
<cbc:CompanyID>SE123456789001</cbc:CompanyID> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:PartyTaxScheme> | ||
<cac:PartyLegalEntity> | ||
<cbc:RegistrationName>Allsälj AB</cbc:RegistrationName> | ||
<cbc:CompanyID>2021005480</cbc:CompanyID> | ||
<cbc:CompanyLegalForm>Säte: Stockholm</cbc:CompanyLegalForm> | ||
</cac:PartyLegalEntity> | ||
</cac:Party> | ||
</cac:AccountingSupplierParty> | ||
|
||
<cac:AccountingCustomerParty> | ||
<cac:Party> | ||
<cbc:EndpointID schemeID="0007">2021005489</cbc:EndpointID> | ||
<cac:PartyName> | ||
<cbc:Name>Kommunteknisk service</cbc:Name> | ||
</cac:PartyName> | ||
<cac:PostalAddress> | ||
<cbc:StreetName>Lilla gränd 9</cbc:StreetName> | ||
<cbc:CityName>Stockholm</cbc:CityName> | ||
<cbc:PostalZone>10203</cbc:PostalZone> | ||
<cac:Country> | ||
<cbc:IdentificationCode>SE</cbc:IdentificationCode> | ||
</cac:Country> | ||
</cac:PostalAddress> | ||
<cac:PartyLegalEntity> | ||
<cbc:RegistrationName>Kommunens Tekniska Bolag AB</cbc:RegistrationName> | ||
<cbc:CompanyID schemeID="0007">1234512345</cbc:CompanyID> | ||
</cac:PartyLegalEntity> | ||
</cac:Party> | ||
</cac:AccountingCustomerParty> | ||
|
||
<cac:PaymentMeans> | ||
<cbc:PaymentMeansCode>30</cbc:PaymentMeansCode> | ||
<cbc:PaymentID>08/00355</cbc:PaymentID> | ||
<cac:PayeeFinancialAccount> | ||
<cbc:ID>1234567</cbc:ID> | ||
<cbc:Name>Account name</cbc:Name> | ||
<cac:FinancialInstitutionBranch> | ||
<cbc:ID>9999</cbc:ID> | ||
</cac:FinancialInstitutionBranch> | ||
</cac:PayeeFinancialAccount> | ||
</cac:PaymentMeans> | ||
|
||
<cac:AllowanceCharge> | ||
<cbc:ChargeIndicator>false</cbc:ChargeIndicator> | ||
<cbc:AllowanceChargeReason>Rabatt</cbc:AllowanceChargeReason> | ||
<cbc:Amount currencyID="SEK">11</cbc:Amount> | ||
<cac:TaxCategory> | ||
<cbc:ID>S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:TaxCategory> | ||
</cac:AllowanceCharge> | ||
<cac:AllowanceCharge> | ||
<cbc:ChargeIndicator>true</cbc:ChargeIndicator> | ||
<cbc:AllowanceChargeReason>Förvaring</cbc:AllowanceChargeReason> | ||
<cbc:Amount currencyID="SEK">11</cbc:Amount> | ||
<cac:TaxCategory> | ||
<cbc:ID>S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:TaxCategory> | ||
</cac:AllowanceCharge> | ||
|
||
<cac:TaxTotal> | ||
<cbc:TaxAmount currencyID="SEK">25</cbc:TaxAmount> | ||
<cac:TaxSubtotal> | ||
<cbc:TaxableAmount currencyID="SEK">100</cbc:TaxableAmount> | ||
<cbc:TaxAmount currencyID="SEK">25</cbc:TaxAmount> | ||
<cac:TaxCategory> | ||
<cbc:ID>S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:TaxCategory> | ||
</cac:TaxSubtotal> | ||
</cac:TaxTotal> | ||
|
||
<cac:LegalMonetaryTotal> | ||
<cbc:LineExtensionAmount currencyID="SEK">100</cbc:LineExtensionAmount> | ||
<cbc:TaxExclusiveAmount currencyID="SEK">100</cbc:TaxExclusiveAmount> | ||
<cbc:TaxInclusiveAmount currencyID="SEK">125</cbc:TaxInclusiveAmount> | ||
|
||
<cbc:AllowanceTotalAmount currencyID="SEK">11</cbc:AllowanceTotalAmount> | ||
<cbc:ChargeTotalAmount currencyID="SEK">11</cbc:ChargeTotalAmount> | ||
<cbc:PayableAmount currencyID="SEK">125</cbc:PayableAmount> | ||
</cac:LegalMonetaryTotal> | ||
|
||
<cac:InvoiceLine> | ||
<cbc:ID>1</cbc:ID> | ||
<cbc:InvoicedQuantity unitCode="EA">5</cbc:InvoicedQuantity> | ||
<cbc:LineExtensionAmount currencyID="SEK">100</cbc:LineExtensionAmount> | ||
<cac:Item> | ||
<cbc:Name>Utbytesstol</cbc:Name> | ||
<cac:ClassifiedTaxCategory> | ||
<cbc:ID schemeID="UNCL5305">S</cbc:ID> | ||
<cbc:Percent>25</cbc:Percent> | ||
<cac:TaxScheme> | ||
<cbc:ID>VAT</cbc:ID> | ||
</cac:TaxScheme> | ||
</cac:ClassifiedTaxCategory> | ||
</cac:Item> | ||
<cac:Price> | ||
<cbc:PriceAmount currencyID="SEK">20</cbc:PriceAmount> | ||
</cac:Price> | ||
</cac:InvoiceLine> | ||
|
||
</Invoice> | ||
|
||
</test> | ||
</testSet> |