/// <summary> /// Function to Check For Default VoucherType based on parameter /// </summary> /// <param name="decVoucherTypeId"></param> /// <returns></returns> public bool CheckForDefaultVoucherType(decimal decVoucherTypeId) { bool isDefault = true; try { isDefault = spVoucherType.CheckForDefaultVoucherType(decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("VT16:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(isDefault); }