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