Hello D3 community,
We are implementing for Germany the standard xRechnung (e-invoice) , however we are receiving a validation error which is related to cash discount in the XML, particularly related to the line <cbc:ID>Z</cbc:ID>. The Z indicates that it's a zero rated transaction. We are validating this on the government portal (Germany). We do not understand why it's at all calculating cash discount already in the XML, as you cannot know at this point if the Customer will pay in the required time!
If you go on the german government portal and create an invoice with cash discount, the cash discount is only provided as a note, which is correct-see below, so why is D365 calculating the above in the standard ER.