/// <summary> /// Function to view type of voucher based on parameter /// </summary> /// <param name="decVoucherTypeId"></param> /// <returns></returns> public VoucherTypeInfo TypeOfVoucherBasedOnVoucherTypeId(decimal decVoucherTypeId) { VoucherTypeInfo infoVoucherType = new VoucherTypeInfo(); try { infoVoucherType = spVoucherType.TypeOfVoucherBasedOnVoucherTypeId(decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("VT5:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(infoVoucherType); }