//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ERD
{
    using System;
    using System.Collections.Generic;
    
    public partial class TblInvoice
    {
        public TblInvoice()
        {
            this.TblInvoiceLines = new HashSet<TblInvoiceLine>();
        }
    
        public int OID { get; set; }
        public Nullable<System.DateTime> DateCreated { get; set; }
        public Nullable<System.Guid> CreatedBy { get; set; }
        public Nullable<int> Customer { get; set; }
        public Nullable<System.DateTime> InvoiceDate { get; set; }
        public Nullable<int> Company { get; set; }
        public Nullable<int> Resort { get; set; }
        public string ReferenceNumber { get; set; }
        public string Comments { get; set; }
        public Nullable<System.DateTime> DeliveryDate { get; set; }
        public Nullable<System.Guid> DeliveryAddress { get; set; }
        public Nullable<int> BankingDetails { get; set; }
        public Nullable<System.DateTime> DateInvoicePrinted { get; set; }
        public Nullable<bool> Recurring { get; set; }
        public Nullable<System.DateTime> DateLastInvoiced { get; set; }
        public Nullable<short> NumberOfMonths { get; set; }
        public Nullable<System.DateTime> RecurringFrom { get; set; }
        public Nullable<int> OptimisticLockField { get; set; }
        public Nullable<int> GCRecord { get; set; }
        public Nullable<decimal> TotalAmount { get; set; }
        public Nullable<decimal> TotalAmountExcl { get; set; }
        public Nullable<decimal> TotalTaxAmount { get; set; }
        public string InvoiceNumber { get; set; }
        public Nullable<System.DateTime> DatePaid { get; set; }
    
        public virtual ICollection<TblInvoiceLine> TblInvoiceLines { get; set; }
        public virtual TblResort TblResort { get; set; }
    }
}
