34:
35: -- For P & L Objective threshold.
36: CURSOR c_pl_color IS
37: SELECT color_range_id
38: FROM bsc_color_type_props
39: WHERE indicator = p_indicator
40: --AND kpi_measure_id = p_kpi_measure_id;
41: AND property_value = 1;
42: -- For kpi_measure threshold.
41: AND property_value = 1;
42: -- For kpi_measure threshold.
43: CURSOR c_kpi_measure_color IS
44: SELECT color_range_id
45: FROM bsc_color_type_props
46: WHERE indicator = p_indicator
47: AND kpi_measure_id = p_kpi_measure_id;
48:
49: -- For weight Objective threshold.
48:
49: -- For weight Objective threshold.
50: CURSOR c_objective_color IS
51: SELECT color_range_id
52: FROM bsc_color_type_props
53: WHERE indicator = p_indicator
54: AND kpi_measure_id IS NULL;
55:
56: CURSOR c_threshold_values IS