ConnectingEurope / eInvoicing-EN16931

Validation artefacts for the European eInvoicing standard EN 16931
Other
131 stars 52 forks source link

Incorrect formula(s) when mixed tax rates have to be reported in TaxTotal [UBL] #116

Closed SLennartsson closed 5 years ago

SLennartsson commented 5 years ago

In Sweden invoices may contain more than one tax rate (6%, 12% and/or 25%), all regarded as TaxCategory=”S”. Also the combination of TaxCategories ”S” and “E” is possible. All occurrencies of these tax combinations must be presented within TaxTotal as TaxSubTotals in the invoice.

EN 16931-1 illustrates situations of this nature in sections A.1.2 Example 1 and A.1.8 Example 7.

Currently, for “standard tax” the reporting of tax in TaxTotal seems to fail if more than one tax rate is present. Examples to failure are: When TaxableAmount=0

See attached test files.

Request: Review the set of rules validation to secure the following:

Incorrect_VATBreakdown_XML_usecase.pdf Incorrect_VATBreakdown_with_SFTI_sylesheet.pdf

SiwMeckelborg commented 5 years ago

I agree this should be fixed, and that the example should generate an error, but I am questioning the way this is solved. Is it ok to add 2 new rules which does not have a corresponding Business rule in the EN? (particularly since the rule id seems to reflect these are business rules from the EN (BR-66 and BR-67)

oriol commented 5 years ago

How would you solve the issue then?

SiwMeckelborg commented 5 years ago

I hoped you had a good answer to that...:) I see two possible options: 1) Use/rewrite the BR-S-08 rule, to ensure it checks this 2) In the rule text of your new rules reference chapter "6.4.3.3.1 Standard rate and reduced rate items" and its last bullet point where the following text appears: "In the calculation of VAT the Invoice shall show a subtotal of the VAT taxable amount and the VAT tax amount for each VAT rate (i.e. each combination of the category code S and VAT tax rate on line level and for allowance and charges on document level)."

oriol commented 5 years ago

Suggestion:

oriol commented 5 years ago

BR-67 to be removed because it is not explicitly defined in the EN.

oriol commented 5 years ago

BR-66 is also removed as this rule is not explicitly defined in the EN.

It can be implemented in the CIUS and added in another release of the European Norm.