private void UpdateDeposit() { SOReturnDetails clsSOReturnDetails = new SOReturnDetails(); clsSOReturnDetails.CreditMemoID = Convert.ToInt64(lblCreditMemoID.Text); clsSOReturnDetails.Deposit = Convert.ToDecimal(txtSODeposit.Text); SOReturns clsSOReturns = new SOReturns(); clsSOReturns.UpdateDeposit(clsSOReturnDetails.CreditMemoID, clsSOReturnDetails.Deposit); clsSOReturns.SynchronizeAmount(clsSOReturnDetails.CreditMemoID); clsSOReturnDetails = clsSOReturns.Details(clsSOReturnDetails.CreditMemoID); clsSOReturns.CommitAndDispose(); UpdateFooter(clsSOReturnDetails); }