1390: -------------
1391: /* Cursor to retrieve Cost Center */
1392: CURSOR csr_cost_center(p_assignment_id NUMBER) IS
1393: SELECT concatenated_segments
1394: FROM pay_cost_allocations_v
1395: WHERE assignment_id=p_assignment_id
1396: AND p_date_earned BETWEEN effective_start_date AND effective_end_date;
1397: -------------
1398: /* Cursor to pick up Payroll Location */
1475: l_legal_employer_id hr_organization_units.organization_id%TYPE;
1476: l_job PER_JOBS.NAME%TYPE;
1477: l_org_struct_ver_id hr_organization_information.org_information1%TYPE;
1478: l_top_org_id per_org_structure_elements.organization_id_parent%TYPE;
1479: l_cost_center pay_cost_allocations_v.concatenated_segments%TYPE;
1480: l_defined_balance_id NUMBER;
1481: l_balance_value NUMBER;
1482: l_formatted_value VARCHAR2(50) := NULL;
1483: l_org_exists NUMBER :=0;