Ejemplo n.º 1
0
        public double InvoiceTotal(InvoiceDetail[] items)
        {
            double total = 0;

            foreach (var i in items)
            {
                total += i.DblLineTotal;
            }

            return total;
        }
Ejemplo n.º 2
0
 //general purpose constructor
 public ReceivableInvoice(InvoiceDetail[] items)
     : base(items)
 {
 }
Ejemplo n.º 3
0
 //general purpose constructor
 public OutgoingInvoice(InvoiceDetail[] items)
     : base(items)
 {
 }
Ejemplo n.º 4
0
 //general purpose constructor
 public Invoice(InvoiceDetail[] items)
 {
     InvoiceNumber = sequence_id++;
     InvoiceItems = items;
 }
Ejemplo n.º 5
0
 //copy constructor
 public InvoiceDetail(InvoiceDetail i)
     : this(i.DblLineTotal)
 {
 }