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

            }
            return max;
        }