/// <summary> /// Function to check existence of StockJournal InvoiceNumber based on parameters /// </summary> /// <param name="strvoucherNo"></param> /// <param name="decStockMasterId"></param> /// <param name="decVoucherTypeId"></param> /// <returns></returns> public bool StockJournalInvoiceNumberCheckExistence(string strinvoiceNo, decimal decStockMasterId, decimal decVoucherTypeId) { bool isEdit = false; try { isEdit = spStockJournalMaster.StockJournalInvoiceNumberCheckExistence(strinvoiceNo, decStockMasterId, decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("AL6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(isEdit); }