public void Insert(int?SupplierID, string InvoiceNo, DateTime?InvDate, int?CodeID, decimal?Amount, decimal?VATAmount, DateTime?DatePassed, int?PassedBy, int?ReChargeInvNo, string Remarks, byte[] Ts)
        {
            GeneralPurchasesTable item = new GeneralPurchasesTable();

            item.SupplierID = SupplierID;

            item.InvoiceNo = InvoiceNo;

            item.InvDate = InvDate;

            item.CodeID = CodeID;

            item.Amount = Amount;

            item.VATAmount = VATAmount;

            item.DatePassed = DatePassed;

            item.PassedBy = PassedBy;

            item.ReChargeInvNo = ReChargeInvNo;

            item.Remarks = Remarks;

            item.Ts = Ts;


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