965: -------------
966: /* Cursor to retrieve Cost Center */
967: CURSOR csr_cost_center(p_assignment_id NUMBER) IS
968: SELECT concatenated_segments
969: FROM pay_cost_allocations_v
970: WHERE assignment_id=p_assignment_id
971: AND p_date_earned BETWEEN effective_start_date AND effective_end_date;
972: -------------
973: /* Cursor to pick up Payroll Location */
1062: l_legal_employer_id hr_organization_units.organization_id%TYPE;
1063: l_job PER_JOBS.NAME%TYPE;
1064: l_org_struct_ver_id hr_organization_information.org_information1%TYPE;
1065: l_top_org_id per_org_structure_elements.organization_id_parent%TYPE;
1066: l_cost_center pay_cost_allocations_v.concatenated_segments%TYPE;
1067: l_defined_balance_id NUMBER;
1068: l_balance_value NUMBER;
1069: l_formatted_value VARCHAR2(50) := NULL;
1070: l_org_exists NUMBER :=0;