Documente Academic
Documente Profesional
Documente Cultură
* *
* FORMULA NAME: GET_PAY_AVAILABILITY *
* *
* FORMULA TYPE: Payroll Access to HR *
* *
* DESCRIPTION: This formula will return the Duration from Availability *
* *
* *
* Change History *
* --------------- *
* *
* Who Date Description *
* ---------- ---------- -------------------------------------- *
* Nprasath 10-Mar-11 Created *
* vdharmap Oct-2012 added a day to end date to cover for midnight and
* missing day
*
* vdharmap 13-Nov-2013 Bug 17790639 - UPTAKE WORK SCHEDULE API ENHANCEMENT IN
GLOBAL PAYROLL FORMULA
* *
* *
********************************************************************************/
DEFAULT FOR ENTRY_LEVEL IS 'AP'
Inputs are
actual_start_date (date),
actual_end_date (date),
unit_type (text),
hr_assign_id,
entry_level(text)
/* Call to Core HR Availability API to get the actual number of Hours Worked
Parameters passed:
-----------------
p_resource_id => Assignment Id or Term Id from context
p_resource_type default ASSIGN or EMPTERM_AGGR
p_period_start Period Start
p_period_end Period End
p_use_sch_asg DEFAULT 'Y'
p_use_sch_inh DEFAULT 'Y'
p_include_noshift DEFAULT 'N'
p_include_calevents DEFAULT 'Y'
p_calc_units DEFAULT 'H'
-- added params below after HR enh, bug 17790639 --
p_get_full_pay_period DEFAULT 'N'
p_use_working_hour_method DEFAULT 'N'
p_default_hours_per_day DEFAULT 0
p_default_start_time DEFAULT '8:30' -- The format of time is
'hh24:mi'
p_default_work_week DEFAULT '0-1-1-1-1-1-0' -- work week starting
from Sunday
*/
l_units =
GET_PAY_AVAILABILITY( l_resource_type,actual_start_date,l_actual_end_date,'Y','Y','
N','N',unit_type,'Y','Y',l_default_hours_per_day,'8:30','0-1-1-1-1-1-0')
l_log = PAY_INTERNAL_LOG_WRITE('(GLBEARN) UNITS '||TO_CHAR(l_units))
)
return l_units