public InvoiceLineType AddInvoiceItem(string articleCode, string productDescription) { var item = new InvoiceLineType { Parent = this , ArticleCode = articleCode , ItemDescription = productDescription }; this.Items.Add(item); return(item); }
/// <summary> /// Adds a new line to an invoice. /// </summary> /// <param name="productCode">The product code.</param> /// <param name="productDescription">The product description.</param> /// <returns></returns> public InvoiceLineType AddInvoiceItem(string productCode, string productDescription) { var item = new InvoiceLineType { Parent = this , ArticleCode = productCode , ItemDescription = productDescription }; this.Items.Add(item); return item; }