stephanstapel/ZUGFeRD-csharp

X-Rechnung 3.1 UBL for Deutsche Bahn - unclear

Closed this issue · 2 comments

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();
                }

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

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