/// <summary> /// Function to get the next id for PurchaseReturnMaster table /// </summary> /// <param name="decVoucherTypeId"></param> /// <returns></returns> public decimal PurchaseReturnMasterGetMaxPlusOne(decimal decVoucherTypeId) { PurchaseReturnMasterSP SPPurchaseReturnMaster = new PurchaseReturnMasterSP(); decimal max = 0; try { max = SPPurchaseReturnMaster.PurchaseReturnMasterGetMaxPlusOne(decVoucherTypeId); } catch (Exception ex) { MessageBox.Show("PrBll 15:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return max; }