public void Update(int GenPurchaseID, 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.MarkOld();
            item.IsLoaded = true;

            item.GenPurchaseID = GenPurchaseID;

            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);
        }