Closed playunits closed 2 years ago
Thanks for reporting! Please also report to https://github.com/ConnectingEurope/eInvoicing-EN16931, because it's a CEN rule that fails
Hello,
why is this completed? Is there a Fix ?
We are facing a similar issue. We can't find any error in attached incoice, but still it fails. As sender of the Invoice it is hard to get the receiver to check the validation. Best Regards
Ulrich Becker BR_IC_08.txt
Validating a XRechnung Document with TradeTax Category Code K results in an Error.
Appended below you can find an anonymized XRechnung Document containing the Error.
Splitting up the Calculation of BR-IC-08 there are 3 Core Parts: Sum of Line Totals, Sum of Allowances and Sum of Charges. Individually calculating these results in a correct result, however running these calculations combined appears to produce some sort of calculation error.
Sum of Line Totals
Running the Calculation results in the Value 1966.58
Sum of Allowances
Running the Calculation results in the Value 16.81
Sum of Charges
Running the Calculation results in the Value 0
Combined these Values equal 1983.39 (= 1966.58 + 16.81 - 0)
However when testing the combined function it results in 1983.3899999999999
Because of this miscalculation the calculated amount does not equal
and thus this validation fails.
The test has been conducted using the XPath Notebook for Visual Studio Code and the appended Document.
Thanks in Advance for taking a look at this Issue and the maintenance of these Validators.
Best Regards Juri Scholz
Appended Document