DBA Data[Home] [Help]

APPS.PAY_QPQ_API dependencies on PER_ASSIGNMENTS_F

Line 411: , per_assignments_f asg

407: --
408: cursor pay_asg is
409: select 'Y'
410: from fnd_sessions ses
411: , per_assignments_f asg
412: where ses.session_id = userenv('SESSIONID')
413: and ses.effective_date between asg.effective_start_date
414: and asg.effective_end_date
415: and asg.payroll_id is not null

Line 460: from per_assignments_f asg

456: v_argument varchar2(30);
457: --
458: cursor cur_dat (v_assignment_id number, v_new_date date) is
459: select 'Y'
460: from per_assignments_f asg
461: where asg.assignment_id = v_assignment_id
462: and asg.payroll_id is not null
463: and v_new_date between asg.effective_start_date
464: and asg.effective_end_date;

Line 541: from per_assignments_f

537: v_proc varchar2(72) := g_package||'chk_assignment';
538: --
539: cursor sel_asg is
540: select 'Y'
541: from per_assignments_f
542: where assignment_id = p_assignment_id
543: and business_group_id + 0 = p_business_group_id
544: and p_effective_date between effective_start_date
545: and effective_end_date;

Line 821: , per_assignments_f a

817: select p.start_date
818: , p.end_date
819: , a.payroll_id
820: from per_time_periods p
821: , per_assignments_f a
822: where a.assignment_id = p_assignment_id
823: and p_effective_date between a.effective_start_date
824: and a.effective_end_date
825: and p.payroll_id = a.payroll_id

Line 837: from per_assignments_f a

833: ) is
834: select a.effective_start_date
835: , a.effective_end_date
836: , a.payroll_id
837: from per_assignments_f a
838: where a.assignment_id = p_assignment_id
839: and a.effective_end_date >= v_period_start
840: and a.effective_start_date <= v_period_end
841: order by a.effective_start_date;

Line 854: v_cur_payroll_id per_assignments_f.payroll_id%TYPE;

850: -- p_effective_date.
851: v_period_end_date date;
852: --
853: -- The assignment's payroll as of p_effective_date.
854: v_cur_payroll_id per_assignments_f.payroll_id%TYPE;
855: --
856: -- Working value for the date earned. The best value so far given the
857: -- the processed records.
858: v_wrk_date date := null;

Line 998: from per_assignments_f asg

994: -- Used to find out if the assingment is on a payroll as p_effective_date
995: --
996: cursor sel_pay is
997: select asg.payroll_id
998: from per_assignments_f asg
999: where /* Payroll as of effective date */
1000: asg.assignment_id = p_assignment_id
1001: and asg.payroll_id is not null
1002: and p_effective_date between asg.effective_start_date

Line 1194: from per_assignments_f asg

1190: v_argument varchar2(30);
1191: --
1192: cursor sel_pay is
1193: select asg.payroll_id
1194: from per_assignments_f asg
1195: where /* Payroll as of date_earned */
1196: asg.assignment_id = p_assignment_id
1197: and asg.payroll_id is not null
1198: and p_date_earned between asg.effective_start_date

Line 1316: from per_assignments_f asg1

1312: v_proc varchar2(72) := g_package||'chk_eff_earned_payroll';
1313: --
1314: cursor sel_same is
1315: select 'Y'
1316: from per_assignments_f asg1
1317: , per_assignments_f asg2
1318: where /* Payroll as of date_earned */
1319: asg1.assignment_id = p_assignment_id
1320: and p_date_earned between asg1.effective_start_date

Line 1317: , per_assignments_f asg2

1313: --
1314: cursor sel_same is
1315: select 'Y'
1316: from per_assignments_f asg1
1317: , per_assignments_f asg2
1318: where /* Payroll as of date_earned */
1319: asg1.assignment_id = p_assignment_id
1320: and p_date_earned between asg1.effective_start_date
1321: and asg1.effective_end_date

Line 3837: select /*+ ORDERED INDEX(asg PER_ASSIGNMENTS_F_PK) */

3833: from fnd_sessions ses
3834: where ses.session_id = userenv('sessionid');
3835: --
3836: cursor csr_payroll (v_cur_date date) is
3837: select /*+ ORDERED INDEX(asg PER_ASSIGNMENTS_F_PK) */
3838: asg.payroll_id
3839: , pro.consolidation_set_id
3840: , con.consolidation_set_name
3841: , bus.legislation_code

Line 3847: from per_assignments_f asg

3843: , hr_general.decode_lookup('ASSIGNMENT_ACTION_STATUS', 'M')
3844: , hr_general.decode_lookup('ASSIGNMENT_ACTION_STATUS', 'C')
3845: , hr_general.decode_lookup('ASSIGNMENT_ACTION_STATUS', 'E')
3846: , hr_general.decode_lookup('ACTION_TYPE', 'Q')
3847: from per_assignments_f asg
3848: , pay_payrolls_f pro
3849: , pay_consolidation_sets con
3850: , per_business_groups_perf bus
3851: where /* Assignment's Payroll details */

Line 3880: v_payroll_id per_assignments_f.payroll_id%TYPE;

3876: -- The assignment's business group legislation_code:
3877: v_legislation_code per_business_groups.legislation_code%TYPE;
3878: --
3879: -- The assignment's payroll as of the session effective or trunc(sysdate).
3880: v_payroll_id per_assignments_f.payroll_id%TYPE;
3881: --
3882: -- Period name which exists as of v_eff_date.
3883: v_period_name per_time_periods.period_name%TYPE;
3884: --