E-invoice, both in EN16931 and X-Invoice

Hello everyone!
I have a problem with the German e-invoice, both in EN16931 and X-Rechnung format.
The invoice itself is generated in the correct form, but fields that are necessary for a machine test of the correctness of the calculation of the invoice items are filled with incorrect values.
Example:
Two items at a price of 10.00 are correctly calculated in the total as 20.00
In the xml file, however, the BT-146 field (price per unit (net)) is not filled with 10.00 but with 20.00, which leads to an item check calculating 20.00 x 2 = 40.00 and failing with an error.

And now the question: Is the error 50cm in front of the screen, or in the code?

PS: there seem to be more fields that are not filled, although the data is available in invoice ninja

Hi,

Please create a discussion on GitHub to get feedback from the backend developers

that’s a good idea, thank you!