DBA Data[Home] [Help]

APPS.PER_ACCRUAL_CALC_FUNCTIONS dependencies on FND_DATE

Line 49: l_inputs(2).value := fnd_date.date_to_canonical(p_calculation_date);

45: --
46: l_inputs(1).name := 'ASSIGNMENT_ID';
47: l_inputs(1).value := p_assignment_id;
48: l_inputs(2).name := 'DATE_EARNED';
49: l_inputs(2).value := fnd_date.date_to_canonical(p_calculation_date);
50: l_inputs(3).name := 'ACCRUAL_PLAN_ID';
51: l_inputs(3).value := p_plan_id;
52: l_inputs(4).name := 'BUSINESS_GROUP_ID';
53: l_inputs(4).value := p_business_group_id;

Line 57: l_inputs(6).value := fnd_date.date_to_canonical(p_calculation_date);

53: l_inputs(4).value := p_business_group_id;
54: l_inputs(5).name := 'PAYROLL_ID';
55: l_inputs(5).value := p_payroll_id;
56: l_inputs(6).name := 'CALCULATION_DATE';
57: l_inputs(6).value := fnd_date.date_to_canonical(p_calculation_date);
58: l_inputs(7).name := 'ACCRUAL_START_DATE';
59: l_inputs(7).value := fnd_date.date_to_canonical(p_accrual_start_date);
60: l_inputs(8).name := 'ASSIGNMENT_ACTION_ID';
61: l_inputs(8).value := p_assignment_action_id;

Line 59: l_inputs(7).value := fnd_date.date_to_canonical(p_accrual_start_date);

55: l_inputs(5).value := p_payroll_id;
56: l_inputs(6).name := 'CALCULATION_DATE';
57: l_inputs(6).value := fnd_date.date_to_canonical(p_calculation_date);
58: l_inputs(7).name := 'ACCRUAL_START_DATE';
59: l_inputs(7).value := fnd_date.date_to_canonical(p_accrual_start_date);
60: l_inputs(8).name := 'ASSIGNMENT_ACTION_ID';
61: l_inputs(8).value := p_assignment_action_id;
62: l_inputs(9).name := 'ACCRUAL_LATEST_BALANCE';
63: l_inputs(9).value := p_accrual_latest_balance;

Line 80: p_effective_start_date := fnd_date.canonical_to_date(l_outputs(2).value);

76: -- Fast formula output p_total_accrued_pto converted to number using
77: -- fnd_number.canonical_to_number function
78:
79: p_total_accrued_pto := fnd_number.canonical_to_number(l_outputs(1).value);
80: p_effective_start_date := fnd_date.canonical_to_date(l_outputs(2).value);
81: p_effective_end_date := fnd_date.canonical_to_date(l_outputs(3).value);
82: p_accrual_end_date := fnd_date.canonical_to_date(l_outputs(4).value);
83: --
84: hr_utility.set_location('Leaving '||l_proc, 10);

Line 81: p_effective_end_date := fnd_date.canonical_to_date(l_outputs(3).value);

77: -- fnd_number.canonical_to_number function
78:
79: p_total_accrued_pto := fnd_number.canonical_to_number(l_outputs(1).value);
80: p_effective_start_date := fnd_date.canonical_to_date(l_outputs(2).value);
81: p_effective_end_date := fnd_date.canonical_to_date(l_outputs(3).value);
82: p_accrual_end_date := fnd_date.canonical_to_date(l_outputs(4).value);
83: --
84: hr_utility.set_location('Leaving '||l_proc, 10);
85: --

Line 82: p_accrual_end_date := fnd_date.canonical_to_date(l_outputs(4).value);

78:
79: p_total_accrued_pto := fnd_number.canonical_to_number(l_outputs(1).value);
80: p_effective_start_date := fnd_date.canonical_to_date(l_outputs(2).value);
81: p_effective_end_date := fnd_date.canonical_to_date(l_outputs(3).value);
82: p_accrual_end_date := fnd_date.canonical_to_date(l_outputs(4).value);
83: --
84: hr_utility.set_location('Leaving '||l_proc, 10);
85: --
86: end Calculate_Accrual;

Line 293: l_inputs(2).value := fnd_date.date_to_canonical(P_calculation_date);

289:
290: l_inputs(1).name := 'ASSIGNMENT_ID';
291: l_inputs(1).value := p_assignment_id;
292: l_inputs(2).name := 'DATE_EARNED';
293: l_inputs(2).value := fnd_date.date_to_canonical(P_calculation_date);
294: l_inputs(3).name := 'ACCRUAL_PLAN_ID';
295: l_inputs(3).value := p_accrual_plan_id;
296: l_inputs(4).name := 'PAYROLL_ID';
297: l_inputs(4).value := p_payroll_id;

Line 301: l_inputs(6).value := fnd_date.date_to_canonical(p_calculation_date);

297: l_inputs(4).value := p_payroll_id;
298: l_inputs(5).name := 'BUSINESS_GROUP_ID';
299: l_inputs(5).value := p_business_group_id;
300: l_inputs(6).name := 'CALCULATION_DATE';
301: l_inputs(6).value := fnd_date.date_to_canonical(p_calculation_date);
302: l_inputs(7).name := 'ACCRUAL_TERM';
303: l_inputs(7).value := p_accrual_term;
304:
305: l_outputs(1).name := 'MAX_CARRYOVER';

Line 320: l_p_calculation_date := FFFUNC.ADD_DAYS(fnd_date.canonical_to_date(l_outputs(2).value),1);

316:
317: OPEN csr_emp_asg_act;
318: FETCH csr_emp_asg_act INTO l_accrual_start;
319: IF csr_emp_asg_act%NOTFOUND THEN
320: l_p_calculation_date := FFFUNC.ADD_DAYS(fnd_date.canonical_to_date(l_outputs(2).value),1);
321: -- nvl condition added for the bug 7371746
322: l_inputs(2).value := fnd_date.date_to_canonical(nvl(l_p_calculation_date,p_calculation_date));
323:
324: per_formula_functions.run_formula(p_formula_id => p_co_formula_id,

Line 322: l_inputs(2).value := fnd_date.date_to_canonical(nvl(l_p_calculation_date,p_calculation_date));

318: FETCH csr_emp_asg_act INTO l_accrual_start;
319: IF csr_emp_asg_act%NOTFOUND THEN
320: l_p_calculation_date := FFFUNC.ADD_DAYS(fnd_date.canonical_to_date(l_outputs(2).value),1);
321: -- nvl condition added for the bug 7371746
322: l_inputs(2).value := fnd_date.date_to_canonical(nvl(l_p_calculation_date,p_calculation_date));
323:
324: per_formula_functions.run_formula(p_formula_id => p_co_formula_id,
325: p_calculation_date => p_calculation_date,
326: p_inputs => l_inputs,

Line 347: p_effective_date := fnd_date.canonical_to_date(l_outputs(2).value);

343: p_max_carry_over := fnd_number.canonical_to_number(l_outputs(1).value);
344: --
345: end if;
346:
347: p_effective_date := fnd_date.canonical_to_date(l_outputs(2).value);
348: p_expiry_date := fnd_date.canonical_to_date(l_outputs(3).value);
349:
350: hr_utility.set_location('Leaving '||l_proc, 10);
351: --

Line 348: p_expiry_date := fnd_date.canonical_to_date(l_outputs(3).value);

344: --
345: end if;
346:
347: p_effective_date := fnd_date.canonical_to_date(l_outputs(2).value);
348: p_expiry_date := fnd_date.canonical_to_date(l_outputs(3).value);
349:
350: hr_utility.set_location('Leaving '||l_proc, 10);
351: --
352: end Get_Carry_Over_Values;

Line 513: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',

509: and ncr.date_input_value_id = piv2.input_value_id
510: and pee.element_type_id = piv2.element_type_id
511: and p_calculation_date between piv2.effective_start_date
512: and piv2.effective_end_date
513: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
514: pev1.screen_entry_value, Null))
515: between p_start_date and p_calculation_date);
516: --
517: begin

Line 617: fnd_date.canonical_to_date(nvl(pev1.screen_entry_value,

613: --
614: cursor c_get_carryover is
615: -- index hint applied for bug 4737028 to avoid bitmap conversion and usage of proper index
616: select /*+ index(pee PAY_ELEMENT_ENTRIES_F_N53)*/ fnd_number.canonical_to_number(nvl(pev.screen_entry_value, 0)) carryover,
617: fnd_date.canonical_to_date(nvl(pev1.screen_entry_value,
618: p_calculation_date)) expiry_date
619: from pay_accrual_plans pap,
620: pay_element_entry_values_f pev,
621: pay_element_entry_values_f pev1,

Line 650: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',

646: and pap.co_date_input_value_id = piv2.input_value_id
647: and pee.element_type_id = piv2.element_type_id
648: and p_calculation_date between piv2.effective_start_date
649: and piv2.effective_end_date
650: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
651: pev2.screen_entry_value, Null)) <=
652: fnd_date.canonical_to_date(nvl(pev1.screen_entry_value,p_calculation_date))
653: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
654: pev2.screen_entry_value, Null))

Line 652: fnd_date.canonical_to_date(nvl(pev1.screen_entry_value,p_calculation_date))

648: and p_calculation_date between piv2.effective_start_date
649: and piv2.effective_end_date
650: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
651: pev2.screen_entry_value, Null)) <=
652: fnd_date.canonical_to_date(nvl(pev1.screen_entry_value,p_calculation_date))
653: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
654: pev2.screen_entry_value, Null))
655: between l_st_date and p_calculation_date)
656: order by expiry_date;

Line 653: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',

649: and piv2.effective_end_date
650: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
651: pev2.screen_entry_value, Null)) <=
652: fnd_date.canonical_to_date(nvl(pev1.screen_entry_value,p_calculation_date))
653: and fnd_date.canonical_to_date(decode(substr(piv2.uom, 1, 1),'D',
654: pev2.screen_entry_value, Null))
655: between l_st_date and p_calculation_date)
656: order by expiry_date;
657: