554: End if;
555:
556: IF nvl(l_status_processing_rule_id,9999) = 9999 THEN
557:
558: l_Status_Processing_Rule_Id := pay_formula_results.ins_stat_proc_rule(
559: p_legislation_code => l_legislation_code,
560: p_effective_start_date => l_effective_start_date,
561: p_effective_end_date => l_effective_end_date,
562: p_element_type_id => p_element_type_id,
689:
690: IF l_rules_exists = 0 THEN
691:
692: IF p_bal_type = 4 THEN
693: l_formula_result_rule_id := pay_formula_results.ins_form_res_rule
694: (
695: p_business_group_id => p_business_group_id,
696: p_effective_start_date => l_effective_start_date,
697: p_effective_end_date => l_effective_end_date,
701: p_result_rule_type => l_result_rule_type,
702: p_element_type_id => l_element_type_id
703: );
704: ELSE
705: l_formula_result_rule_id := pay_formula_results.ins_form_res_rule
706: (
707: p_business_group_id => p_business_group_id,
708: p_effective_start_date => l_effective_start_date,
709: p_effective_end_date => l_effective_end_date,