256: --
257: cursor c1 is
258: select null
259: from ff_formulas_f ff
260: ,per_business_groups pbg
261: where ff.formula_id = p_formula_id
262: and ff.formula_type_id in (-171, -49, -507)
263: and pbg.business_group_id = p_business_group_id
264: and nvl(ff.business_group_id, p_business_group_id) =
656: -- Declare cursor
657: --
658: cursor csr_leg_code is
659: select a.legislation_code
660: from per_business_groups a,
661: ben_bnft_vrbl_rt_rl_f b
662: where b.bnft_vrbl_rt_rl_id = p_bnft_vrbl_rt_rl_id
663: and a.business_group_id = b.business_group_id;
664: --