Exemplo n.º 1
0
 public void AddToInvoices(Invoice invoice)
 {
     base.AddObject("Invoices", invoice);
 }
Exemplo n.º 2
0
 public static Invoice CreateInvoice(string customerName, string salesperson, int orderID, string shipperName, int productID, string productName, decimal unitPrice, short quantity, float discount)
 {
     Invoice invoice = new Invoice();
     invoice.CustomerName = customerName;
     invoice.Salesperson = salesperson;
     invoice.OrderID = orderID;
     invoice.ShipperName = shipperName;
     invoice.ProductID = productID;
     invoice.ProductName = productName;
     invoice.UnitPrice = unitPrice;
     invoice.Quantity = quantity;
     invoice.Discount = discount;
     return invoice;
 }