ConnectingEurope / eInvoicing-EN16931

Validation artefacts for the European eInvoicing standard EN 16931
Other
120 stars 51 forks source link

Value added tax point date to be independent of invoicing period #168

Closed SLennartsson closed 4 years ago

SLennartsson commented 4 years ago

In EN 16 931-1, BT-8 Value added tax point date code and BG-14 Invoicing period has no rule of dependence between them.
With the UBL syntax binding, presence of InvoicePeriod/DescriptionCode currently requires the presence of also StartDate or EndDate or both. Invoice-TaxPointDateCode_withoutPeriod.txt

oriol commented 4 years ago

Both StartDate and EndDate are optional, so you can add a Value added tax point date without any of them.

The norm has no rule of dependence nor of independence, so I do not see the need to add any extra rule.

SLennartsson commented 4 years ago

Hi Clarification: I do not seek a new rule, but I have an issue with rule BR-CO-19. I attach testfile used to get fatal error using the SFTI validation service. Regards, Sören

From: Oriol Bausa Sent: Friday, September 20, 2019 1:31 PM To: ConnectingEurope/eInvoicing-EN16931 Cc: SLennartsson ; Author Subject: Re: [ConnectingEurope/eInvoicing-EN16931] Value added tax point date to be independent of invoicing period (#168)

Both StartDate and EndDate are optional, so you can add a Value added tax point date without any of them.

The norm has no rule of dependence nor of independence, so I do not see the need to add any extra rule.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

<?xml version="1.0" encoding="UTF-8"?>

<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>2018-112</cbc:ID>
<cbc:IssueDate>2018-07-31</cbc:IssueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode> 
<cbc:DocumentCurrencyCode>SEK</cbc:DocumentCurrencyCode>
<cbc:BuyerReference>ACE22</cbc:BuyerReference>

<cac:InvoicePeriod>
    <cbc:DescriptionCode>432</cbc:DescriptionCode>
</cac:InvoicePeriod>

<cac:AccountingSupplierParty>
    <cac:Party>
        <cbc:EndpointID schemeID="0007">1234567890</cbc:EndpointID> 
        <cac:PostalAddress>
            <cac:Country>
                <cbc:IdentificationCode>SE</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>SE123451234501</cbc:CompanyID>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>Säljbolaget AB</cbc:RegistrationName>
        </cac:PartyLegalEntity>
    </cac:Party>
</cac:AccountingSupplierParty>

<cac:AccountingCustomerParty>
    <cac:Party>
        <cbc:EndpointID schemeID="0007">9876543210</cbc:EndpointID>  
        <cac:PostalAddress>
            <cac:Country>
                <cbc:IdentificationCode>SE</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>Centrala Inköps Handelsbolag</cbc:RegistrationName>
        </cac:PartyLegalEntity>
    </cac:Party>
</cac:AccountingCustomerParty>

<cac:PaymentTerms>                                                                   
    <cbc:Note>As per contract clasuse X.123</cbc:Note>                           
</cac:PaymentTerms>                                                                  

<cac:TaxTotal>
    <cbc:TaxAmount currencyID="SEK">100</cbc:TaxAmount>
    <cac:TaxSubtotal>
        <cbc:TaxableAmount currencyID="SEK">400</cbc:TaxableAmount>
        <cbc:TaxAmount currencyID="SEK">100</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">400</cbc:LineExtensionAmount> 
    <cbc:TaxExclusiveAmount currencyID="SEK">400</cbc:TaxExclusiveAmount> 
    <cbc:TaxInclusiveAmount currencyID="SEK">500</cbc:TaxInclusiveAmount> 
    <cbc:PayableAmount currencyID="SEK">500</cbc:PayableAmount>
</cac:LegalMonetaryTotal> 

<cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="MON">1</cbc:InvoicedQuantity> 
    <cbc:LineExtensionAmount currencyID="SEK">400</cbc:LineExtensionAmount> 
    <cac:Item>
        <cbc:Name>Service fee</cbc:Name> 
        <cac:ClassifiedTaxCategory>
            <cbc:ID>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">400</cbc:PriceAmount> 
    </cac:Price>
</cac:InvoiceLine>

oriol commented 4 years ago

You are right, BI-CO-19 should be corrected.