Exemple #1
0
        private void createInvoiceHeader(string invoiceNumber, InvoiceDS.InvoiceTotalTableRow total)
        {
            Invoice invoice = global::Argix.Finance.Globals.Invoice;

            //Remit To
            invoice.RemitToName.Value         = total.RemitToName.Trim();
            invoice.RemitToAddressLine1.Value = total.RemitToAddressLine1.Trim();
            invoice.RemitToAddressLine2.Value = total.IsRemitToAddressLine2Null() ? "" : total.RemitToAddressLine2.Trim();
            invoice.RemitToCityStateZip.Value = total.RemitToCity.Trim() + ", " + total.RemitToState.Trim() + " " + total.RemitToZip.Trim() + "-" + total.RemitToZip4;
            invoice.Telephone.Value           = (total.IsTelephoneNull() ? "" : total.Telephone.ToString());

            //Bill To
            invoice.BillToName.Value         = "Benetton";
            invoice.BillToAddressLine1.Value = invoice.BillToAddressLine2.Value = invoice.BillToCityStateZip.Value = "";

            //Account
            invoice.InvoiceNumber.Value = invoiceNumber;
            invoice.InvoiceDate.Value   = total.InvoiceDate;
        }