private void UpdateFreight() { BranchTransferDetails clsBranchTransferDetails = new BranchTransferDetails(); clsBranchTransferDetails.BranchTransferID = Convert.ToInt64(lblBranchTransferID.Text); clsBranchTransferDetails.Freight = Convert.ToDecimal(txtBranchTransferFreight.Text); BranchTransfer clsBranchTransfer = new BranchTransfer(); clsBranchTransfer.UpdateFreight(clsBranchTransferDetails.BranchTransferID, clsBranchTransferDetails.Freight); clsBranchTransfer.SynchronizeAmount(Convert.ToInt64(lblBranchTransferID.Text)); clsBranchTransferDetails = clsBranchTransfer.Details(Convert.ToInt64(lblBranchTransferID.Text)); clsBranchTransfer.CommitAndDispose(); UpdateFooter(clsBranchTransferDetails); }