public void Update(int EntryNumber, int?InvoiceNumber, int?ChargeType, string Detail, decimal?Amount, bool Vat, double?VATAmount, byte[] Ts)
        {
            InvoiceSubTable item = new InvoiceSubTable();

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

            item.EntryNumber = EntryNumber;

            item.InvoiceNumber = InvoiceNumber;

            item.ChargeType = ChargeType;

            item.Detail = Detail;

            item.Amount = Amount;

            item.Vat = Vat;

            item.VATAmount = VATAmount;

            item.Ts = Ts;

            item.Save(UserName);
        }
        public void Insert(int?InvoiceNumber, int?ChargeType, string Detail, decimal?Amount, bool Vat, double?VATAmount, byte[] Ts)
        {
            InvoiceSubTable item = new InvoiceSubTable();

            item.InvoiceNumber = InvoiceNumber;

            item.ChargeType = ChargeType;

            item.Detail = Detail;

            item.Amount = Amount;

            item.Vat = Vat;

            item.VATAmount = VATAmount;

            item.Ts = Ts;


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