stephanstapel / ZUGFeRD-csharp

C# assembly for creating and reading ZUGFeRD invoices
Apache License 2.0
224 stars 118 forks source link

TradeLineItem attribute "ram:ExemptionReason" is useless with Profile.XRechnung #165

Closed elotto closed 3 years ago

elotto commented 3 years ago

Tax ExemptionReason is required only on invoice level. Semantic model of XRechnung does not require this attribute on the invoice lines. Our custemers have invoices with many line items included tax code "O". Through current implementation, every trade line includes following entry:

Dienstleistungen außerhalb des Steueranwendungsbereichs</ram:ExemptionReason>

It grows file size and is for XRechnung-Profile useless. It may be useful to omit generation of this attribute by InvoiceDescriptor21Writer or to give more control to invoice descriptor API for generation of tax entries on the line item level.

stephanstapel commented 3 years ago

Please test against the current source code

elotto commented 3 years ago

Thank you for the fix. It works for me, because i don't use Profile.Extended.