/// <summary>
 /// Account ledger combobox index changed, get the id for party balance and chwcking the ledger comes under sundry dr
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmbAccountLedger_SelectedIndexChanged(object sender, EventArgs e)
 {
     AccountLedgerSP spaccountledger = new AccountLedgerSP();
     try
     {
         strAccNameText = cmbAccountLedger.Text;
         if (isWorkLedgerIndexChange)
         {
             if (cmbAccountLedger.SelectedValue != null && cmbAccountLedger.SelectedValue.ToString() != string.Empty)
             {
                 if (spaccountledger.AccountGroupIdCheckSundryDeptor(cmbAccountLedger.Text))
                 {
                     btnAgainRef.Enabled = true;
                     txtAmount.ReadOnly = true;
                     decLedgerIdForPartyBalance = Convert.ToDecimal(cmbAccountLedger.SelectedValue.ToString());
                 }
                 else
                 {
                     btnAgainRef.Enabled = false;
                     txtAmount.ReadOnly = false;
                 }
             }
             strOldLedgerId = (cmbAccountLedger.SelectedValue.ToString());
             txtAmount.Clear();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("PR33:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }