示例#1
0
        /// <summary>
        /// Creates a new invoice
        /// </summary>
        /// <param name="eInvoice"></param>
        /// <returns></returns>
        public InvoiceType CreateInvoice()
        {
            var invoice = new InvoiceType
            {
                Parent             = this
                , InvoiceHeader    = new InvoiceHeaderType()
                , InvoiceTotals    = new InvoiceTotalsType()
                , InvoiceIssueData = new InvoiceIssueDataType()
                , Items            = new List <InvoiceLineType>()
            };

            this.Invoices.Add(invoice);

            return(invoice);
        }
        /// <summary>
        /// Creates a new invoice.
        /// </summary>
        /// <returns>The new invoice.</returns>
        public InvoiceType CreateInvoice()
        {
            var invoice = new InvoiceType
            {
                Parent           = this
              , InvoiceHeader    = new InvoiceHeaderType()
              , InvoiceTotals    = new InvoiceTotalsType()
              , InvoiceIssueData = new InvoiceIssueDataType()
              , Items            = new List<InvoiceLineType>()
            };

            this.Invoices.Add(invoice);

            return invoice;
        }