Ejemplo n.º 1
0
        private InvoicedOrderMessage CreateFlex_InvoicedOrderMessage()
        {
            var order = new InvoicedOrderMessage
            {
                Customer =
                    new Customer
                {
                    CustomerName = "Initech",
                    CustomerIDs  = new CustomerAliases()
                    {
                        LegacyCustomerID = BusinessPartner.Initech.Code
                    }
                },

                CustomerPO            = "997439",
                Location              = "Austin",
                OrderType             = "O",
                BusinessPartnerCode   = BusinessPartner.Initech.Code,
                BusinessPartnerNumber = BusinessPartner.Initech.Number,
                ControlNumber         = "70001",
                InvoiceNumber         = "2345",
                InvoiceDate           = "6/10/2009".CastToDateTime(),
                PODate = "6/1/2009".CastToDateTime()
            };

            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN23430I0",
                LineNumber         = 1,
                CustomerPartNumber = "WR545",
                ItemDescription    = "Box, 10X6X6",
                Price      = (decimal)1.1,
                Quantity   = 120,
                CustomerPO = "997439"
            });
            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN66430I0",
                LineNumber         = 2,
                CustomerPartNumber = "XR545",
                ItemDescription    = "Box 12X6X6",
                Price      = (decimal)1.78,
                Quantity   = 190,
                CustomerPO = "997439"
            });
            order.AddAddress(new Address
            {
                Address1    = "2343 Mockingbird Ln.",
                AddressCode = new AddressCode {
                    CustomerCode = "0000001"
                },
                AddressName = "Flex",
                AddressType = AddressTypeConstants.ShipTo,
                City        = "Boise",
                State       = "ID"
            });
            return(order);
        }
Ejemplo n.º 2
0
        private static InvoicedOrderMessage GetFedexOrder()
        {
            var order = new InvoicedOrderMessage
            {
                Customer =
                    new Customer {
                    CustomerIDs = new CustomerAliases()
                    {
                        LegacyCustomerID = BusinessPartner.FedEx.Code
                    }, CustomerName = "Fedex"
                },
                CustomerPO            = "SRC009680",
                Location              = "Austin",
                OrderType             = "O",
                BusinessPartnerCode   = BusinessPartner.FedEx.Code,
                BusinessPartnerNumber = BusinessPartner.FedEx.Number,
                ControlNumber         = "23443",
                InvoiceNumber         = "2345",
                InvoiceDate           = "6/10/2009".CastToDateTime(),
                SalesTax              = (decimal)2.50
            };

            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN23430I0",
                LineNumber         = 1,
                CustomerPartNumber = "94001",
                ItemDescription    = "Box, 10X6X6",
                Price      = (decimal)1.1,
                Quantity   = 120,
                CustomerPO = "997439"
            });
            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN66430I0",
                LineNumber         = 2,
                CustomerPartNumber = "94001",
                ItemDescription    = "Box 12X6X6",
                Price      = (decimal)1.78,
                Quantity   = 190,
                CustomerPO = "997439"
            });
            order.AddAddress(new Address
            {
                Address1    = "2343 Mockingbird Ln.",
                AddressCode = new AddressCode {
                    CustomerCode = "adfd"
                },
                AddressName = "Fedex",
                AddressType = AddressTypeConstants.ShipTo,
                City        = "Boise",
                State       = "ID"
            });
            return(order);
        }
Ejemplo n.º 3
0
        private static InvoicedOrderMessage GetOrder()
        {
            var order = new InvoicedOrderMessage
            {
                Customer =
                    new Customer {
                    CustomerIDs = new CustomerAliases()
                    {
                        LegacyCustomerID = BusinessPartner.Flextronics.Code
                    }, CustomerName = "Flextronix"
                },
                CustomerPO            = "4110213145",
                Location              = "Austin",
                OrderType             = "O",
                BusinessPartnerCode   = BusinessPartner.Flextronics.Code,
                BusinessPartnerNumber = BusinessPartner.Flextronics.Number,
                ControlNumber         = "23444",
                InvoiceNumber         = "461191",
                InvoiceDate           = "6/10/2011".CastToDateTime(),
                PODate = "6/1/2011".CastToDateTime(),
                Notes  = "101435"
            };

            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN23430I0",
                LineNumber         = 10,
                CustomerPartNumber = "14000181",
                ItemDescription    = "Box, 10X6X6",
                Price      = (decimal)419,
                Quantity   = 250,
                CustomerPO = "4110213145"
            });
            order.AddAddress(new Address
            {
                Address1    = "2343 Mockingbird Ln.",
                AddressCode = new AddressCode {
                    CustomerCode = "0000001"
                },
                AddressName = "Flex",
                AddressType = AddressTypeConstants.ShipTo,
                City        = "Boise",
                State       = "ID"
            });
            return(order);
        }
Ejemplo n.º 4
0
        private static InvoicedOrderMessage GetOrder()
        {
            var order = new InvoicedOrderMessage
            {
                Customer =
                    new Customer {
                    CustomerIDs = new CustomerAliases()
                    {
                        LegacyCustomerID = BusinessPartner.Initech.Code
                    }, CustomerName = "Initech"
                },
                CustomerPO            = "AFP009680",
                Location              = "Austin",
                OrderType             = "O",
                BusinessPartnerCode   = BusinessPartner.Initech.Code,
                BusinessPartnerNumber = BusinessPartner.Initech.Number,
                ControlNumber         = "23443",
                InvoiceNumber         = "2345",
                InvoiceDate           = "6/10/2009".CastToDateTime(),
                SalesTax              = 0m
            };

            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN23430I0",
                LineNumber         = 1,
                CustomerPartNumber = "94001",
                ItemDescription    = "Box, 10X6X6",
                Price      = (decimal)1.1,
                Quantity   = 120,
                CustomerPO = "997439"
            });
            order.Add(new InvoicedOrderLine
            {
                ItemID             = "FIN66430I0",
                LineNumber         = 2,
                CustomerPartNumber = "94001",
                ItemDescription    = "Box 12X6X6",
                Price      = (decimal)1.78,
                Quantity   = 190,
                CustomerPO = "997439"
            });
            order.AddAddress(new Address
            {
                Address1    = "2343 Mockingbird Ln.",
                AddressCode = new AddressCode {
                    CustomerCode = "adfd"
                },
                AddressName = "Initech",
                AddressType = AddressTypeConstants.ShipTo,
                City        = "Boise",
                State       = "ID"
            });

            order.AddAddress(new Address
            {
                Address1    = "1253 Heil Quaker Blvd.",
                AddressCode = new AddressCode {
                    CustomerCode = "adfd"
                },
                AddressName = "Austin Foam Plastics",
                AddressType = AddressTypeConstants.Vendor,
                City        = "La Vergne",
                State       = "TN",
                Zip         = "39234"
            });
            return(order);
        }