stephanstapel / ZUGFeRD-csharp

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

X-Rechnung 3.1 UBL for Deutsche Bahn - unclear #259

Closed stephanstapel closed 4 months ago

stephanstapel commented 5 months ago

broken down from #254, submitted by @goedo

InvoiceDescriptor22Writer.cs, later

                if (tradeLineItem.TaxCategoryCode != TaxCategoryCodes.O) // notwendig, damit die Validierung klappt
                {
                    Writer.WriteElementString("ram:RateApplicablePercent", _formatDecimal(tradeLineItem.TaxPercent));
                }
                //roger
                if (tradeLineItem.LineTotalAmount.HasValue)
                {
                    Writer.WriteStartElement("ram:BasisAmount", profile: Profile.Extended); // not in XRechnung, according to CII-SR-123
                    Writer.WriteValue(_formatDecimal(tradeLineItem.LineTotalAmount.Value, 2));
                    Writer.WriteEndElement();
                }
stephanstapel commented 5 months ago

@goedo: can you describe what you changed here and why?

goedo commented 4 months ago

Please close/ignore this, it's in #260