public InvoiceType HeatherAndIssueData(string invoiceNumber, InvoiceDocumentTypeType invoiceDocumentType, InvoiceClassType invoiceClassType, DateTime issueDate, 
            CurrencyCodeType invoiceCurrencyCode, LanguageCodeType languageCodeType)
        {
            this.InvoiceHeader = new InvoiceHeaderType() 
                { 
                    InvoiceNumber = invoiceNumber, 
                    InvoiceDocumentType = invoiceDocumentType, 
                    InvoiceClass = invoiceClassType 
                };

            this.InvoiceIssueData = new InvoiceIssueDataType() 
                { 
                    IssueDate = issueDate, 
                    TaxCurrencyCode = invoiceCurrencyCode, 
                    LanguageName = languageCodeType, 
                    InvoiceCurrencyCode = invoiceCurrencyCode 
                };

            this.TaxesOutputs = new TaxOutputType[] { };
            this.InvoiceTotals = new InvoiceTotalsType();

            this.InvoiceTotals.InvoiceTotal = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGrossAmount = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGeneralDiscounts = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGeneralSurcharges = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGrossAmountBeforeTaxes = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalTaxOutputs = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalTaxesWithheld = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalOutstandingAmount = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalExecutableAmount = new DoubleTwoDecimalType();

            //invoice.InvoiceIssueData.InvoicingPeriod = new PeriodDates() { StartDate = invoicingPeriodStartDate, EndDate = invoicingPeriodEndDate };
            return this;
        }
Beispiel #2
0
        public InvoiceType HeatherAndIssueData(string invoiceNumber, InvoiceDocumentTypeType invoiceDocumentType, InvoiceClassType invoiceClassType, DateTime issueDate,
                                               CurrencyCodeType invoiceCurrencyCode, LanguageCodeType languageCodeType)
        {
            this.InvoiceHeader = new InvoiceHeaderType()
            {
                InvoiceNumber       = invoiceNumber,
                InvoiceDocumentType = invoiceDocumentType,
                InvoiceClass        = invoiceClassType
            };

            this.InvoiceIssueData = new InvoiceIssueDataType()
            {
                IssueDate           = issueDate,
                TaxCurrencyCode     = invoiceCurrencyCode,
                LanguageName        = languageCodeType,
                InvoiceCurrencyCode = invoiceCurrencyCode
            };

            this.TaxesOutputs  = new TaxOutputType[] { };
            this.InvoiceTotals = new InvoiceTotalsType();

            this.InvoiceTotals.InvoiceTotal                = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGrossAmount            = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGeneralDiscounts       = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGeneralSurcharges      = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalGrossAmountBeforeTaxes = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalTaxOutputs             = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalTaxesWithheld          = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalOutstandingAmount      = new DoubleTwoDecimalType();
            this.InvoiceTotals.TotalExecutableAmount       = new DoubleTwoDecimalType();

            //invoice.InvoiceIssueData.InvoicingPeriod = new PeriodDates() { StartDate = invoicingPeriodStartDate, EndDate = invoicingPeriodEndDate };
            return(this);
        }