/// <summary> /// Function to get the next id from StockJournal Table based on parameter /// </summary> /// <param name="decVoucherTypeId"></param> /// <returns></returns> public decimal StockJournalMasterMaxPlusOne(decimal decVoucherTypeId) { decimal max = 0; try { max = spStockJournalMaster.StockJournalMasterMaxPlusOne(decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("AL6:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(max); }