stephanstapel / ZUGFeRD-csharp

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

Is this correct with TradingBusinessName? #290

Closed xafero closed 5 months ago

xafero commented 5 months ago

Hi, thanks for your library, but I got an invoice with a name, it gets read, but not written out again. So my input and my output X-Rechnung are not the same :-(

invoice.Buyer.SpecifiedLegalOrganization.TradingBusinessName = "Does not get written?";

I'm trying to save the invoice with X-Rechnung 3.0.1 (so Profile.XRechnung) and I guess the culprit is here: https://github.com/stephanstapel/ZUGFeRD-csharp/blob/master/ZUGFeRD/InvoiceDescriptor22Writer.cs#L1237

Is that behaviour really correct? Because in the case of Buyer, it is limited to Comfort and Extended, but in case of Seller and Payee not. Seems weird to me, but of course, the invoice I got could be wrong in this specific instance, so I'm asking.

stephanstapel commented 5 months ago

can you please test if it works with the latest commit?

xafero commented 5 months ago

Yes, thanks