/// <summary>
        /// function to add new ledger
        /// </summary>
        public void OpenCashorPartyPopup()
        {
            try
            {
                if (cmbCashorParty.SelectedValue != null)
                {
                    strCashorParty = cmbCashorParty.SelectedValue.ToString();

                }
                else
                {
                    strCashorParty = string.Empty;
                }

                frmAccountLedger frmAccountLedgerObj = new frmAccountLedger();
                frmAccountLedgerObj.MdiParent = formMDI.MDIObj;
                frmAccountLedger openAccountLedger = Application.OpenForms["frmAccountLedger"] as frmAccountLedger;
                if (openAccountLedger == null)
                {
                    frmAccountLedgerObj.WindowState = FormWindowState.Normal;
                    frmAccountLedgerObj.MdiParent = formMDI.MDIObj;
                    frmAccountLedgerObj.CallFromRejectionIn(this);
                }
                else
                {
                    openAccountLedger.MdiParent = formMDI.MDIObj;
                    openAccountLedger.BringToFront();
                    openAccountLedger.CallFromRejectionIn(this);
                    if (openAccountLedger.WindowState == FormWindowState.Minimized)
                    {
                        openAccountLedger.WindowState = FormWindowState.Normal;
                    }
                }
            }
            catch (Exception ex)
            {

                MessageBox.Show("RI:01" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }