411: -- Check for use with budgets
412: DECLARE
413: CURSOR chk_budget is
414: SELECT 'Used for budgets' 415: FROM gl_budgets b, 416: gl_budget_versions bv,
417: gl_budget_period_ranges bpr,
418: gl_ledgers led
419: WHERE bv.budget_name = b.budget_name