635: end if;
636: END get_assignment_information;
637:
638:
639: FUNCTION setup_mo_global_params ( p_resource_id in number) return number is
640: l_operating_unit_id NUMBER(15);
641: BEGIN
642:
643: -- Derive the operating unit for the resource
656: -- now set the operating unit context
657:
658: -- ONLY CALL THIS FOR RELEASE 12
659:
660: mo_global.init('HXC');
661:
662: mo_global.set_policy_context ( 'S', l_operating_unit_id );
663:
664: return l_operating_unit_id;
658: -- ONLY CALL THIS FOR RELEASE 12
659:
660: mo_global.init('HXC');
661:
662: mo_global.set_policy_context ( 'S', l_operating_unit_id );
663:
664: return l_operating_unit_id;
665:
666: END setup_mo_global_params;
662: mo_global.set_policy_context ( 'S', l_operating_unit_id );
663:
664: return l_operating_unit_id;
665:
666: END setup_mo_global_params;
667:
668:
669: PROCEDURE get_org_id ( p_resource_id in number
670: ,p_props in out nocopy hxc_timecard_prop_table_type) is
676: if g_debug then
677: hr_utility.trace('Entering get org id : resource id is '||to_char(p_resource_id));
678: end if;
679:
680: l_operating_unit_id := setup_mo_global_params(p_resource_id);
681:
682: -- now add the operating unit to the timecard props record
683:
684: p_props.extend();