public void Update(int InvoiceNumber, int?OrderNumber, int?DepartmentID, DateTime?InvoiceDate, int?Customer, int?InvoiceCurrencyID, string Description, float?ExchangeRate, string Notes, DateTime?PaymentDueDate, int?InvoiceRaisedBy, DateTime?InvoiceRaised, float?InsuranceValue, string Contact, float?OriginalProfitMargin, DateTime?OriginalProfitDate, DateTime?DateQueryRaised, string DetailsOfQuery, string Resolution, bool?ConfirmedCompleted, DateTime?CompletionDate, int?Controller, byte[] Ts)
        {
            InternalInvoiceTable item = new InternalInvoiceTable();

            item.MarkOld();
            item.IsLoaded = true;

            item.InvoiceNumber = InvoiceNumber;

            item.OrderNumber = OrderNumber;

            item.DepartmentID = DepartmentID;

            item.InvoiceDate = InvoiceDate;

            item.Customer = Customer;

            item.InvoiceCurrencyID = InvoiceCurrencyID;

            item.Description = Description;

            item.ExchangeRate = ExchangeRate;

            item.Notes = Notes;

            item.PaymentDueDate = PaymentDueDate;

            item.InvoiceRaisedBy = InvoiceRaisedBy;

            item.InvoiceRaised = InvoiceRaised;

            item.InsuranceValue = InsuranceValue;

            item.Contact = Contact;

            item.OriginalProfitMargin = OriginalProfitMargin;

            item.OriginalProfitDate = OriginalProfitDate;

            item.DateQueryRaised = DateQueryRaised;

            item.DetailsOfQuery = DetailsOfQuery;

            item.Resolution = Resolution;

            item.ConfirmedCompleted = ConfirmedCompleted;

            item.CompletionDate = CompletionDate;

            item.Controller = Controller;

            item.Ts = Ts;

            item.Save(UserName);
        }
 public bool Destroy(object InvoiceNumber)
 {
     return(InternalInvoiceTable.Destroy(InvoiceNumber) == 1);
 }