Skip to content

Commit 813474c

Browse files
feat: invoicer contact property for extended profile
1 parent 938ce91 commit 813474c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ZUGFeRD/InvoiceDescriptor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,12 @@ public class InvoiceDescriptor
219219
/// </summary>
220220
public Party Invoicer { get; set; }
221221

222+
/// <summary>
223+
/// Optional contact only used in Extended profile.
224+
/// Detailed contact information of the invoicer BG-X-34
225+
/// </summary>
226+
public Contact InvoicerContact { get; set; }
227+
222228
/// <summary>
223229
/// This party is optional and is written in most profiles except Minimum profile
224230
///

ZUGFeRD/InvoiceDescriptor23CIIWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ public override void Save(InvoiceDescriptor descriptor, Stream stream, ZUGFeRDFo
856856
_Writer.WriteOptionalElementString("ram", "InvoiceIssuerReference", this._Descriptor.SellerReferenceNo, Profile.Extended);
857857

858858
// 6. InvoicerTradeParty (optional), BG-X-33
859-
_writeOptionalParty(_Writer, PartyTypes.InvoicerTradeParty, this._Descriptor.Invoicer, Profile.Extended);
859+
_writeOptionalParty(_Writer, PartyTypes.InvoicerTradeParty, this._Descriptor.Invoicer, Profile.Extended, this._Descriptor.InvoicerContact);
860860

861861
// 7. InvoiceeTradeParty (optional), BG-X-36
862862
_writeOptionalParty(_Writer, PartyTypes.InvoiceeTradeParty, this._Descriptor.Invoicee, Profile.Extended, default, default, this._Descriptor.GetInvoiceeTaxRegistration());

0 commit comments

Comments
 (0)