/// <summary>
 /// Vouchertype combofill function
 /// </summary>
 public void VoucherTypeComboFill()
 {
     SalesInvoiceBll BllSalesInvoice = new SalesInvoiceBll();
     try
     {
         string typeOfVoucher = string.Empty;
         if (cmbSalesMode.Text == "Against SalesOrder")
         {
             typeOfVoucher = "Sales Order";
         }
         else if (cmbSalesMode.Text == "Against Delivery Note")
         {
             typeOfVoucher = "Delivery Note";
         }
         else if (cmbSalesMode.Text == "Against Quotation")
         {
             typeOfVoucher = "Sales Quotation";
         }
         List<DataTable> listObj = new List<DataTable>();
         listObj = BllSalesInvoice.VoucherTypesBasedOnTypeOfVouchers(typeOfVoucher);
         cmbVoucherType.DataSource = listObj[0];
         cmbVoucherType.ValueMember = "voucherTypeId";
         cmbVoucherType.DisplayMember = "voucherTypeName";
     }
     catch (Exception ex)
     {
         MessageBox.Show("SI: 09" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }