stephanstapel / ZUGFeRD-csharp

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

X-Rechnung 3.1 UBL for Deutsche Bahn - line item gross unit price #256

Closed stephanstapel closed 2 months ago

stephanstapel commented 2 months ago

broken down from #254, submitted by @goedo

InvoiceDescriptor22Writer.cs, 263

                   // BT-148                 
                   if (tradeLineItem.GrossUnitPrice.HasValue || (tradeLineItem.GetTradeAllowanceCharges().Count > 0)
                        && !tradeLineItem.NetUnitPrice.HasValue // roger
stephanstapel commented 2 months ago

@goedo: can you please describe why this needs to be checked?

goedo commented 2 months ago

Close the issue please. I think it was because messing with data during tests. I'll keep the line as comment to remember the situation.