stephanstapel / ZUGFeRD-csharp

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

failing test TestXRechnung1 validation || and && wrong #133

Closed bvschie closed 3 years ago

bvschie commented 3 years ago

InvoiceDescriptor21Writer.cs Save -> was ReceivableSpecifiedTradeAccountingAccount

            if (descriptor.Profile == Profile.XRechnung1 || descriptor.Profile == Profile.XRechnung && tradeLineItem.ReceivableSpecifiedTradeAccountingAccounts.Count > 0)

-> think need to change into:

            if ((descriptor.Profile == Profile.XRechnung1 || descriptor.Profile == Profile.XRechnung) && tradeLineItem.ReceivableSpecifiedTradeAccountingAccounts.Count > 0)
stephan-nowecor commented 3 years ago

you are right, thanks