3795: per_all_assignments_f asg,
3796: pay_payroll_actions ppa1
3797: where ppa1.payroll_action_id = :payroll_action_id
3798: and ppa.effective_date between
3799: fnd_date.canonical_to_date('''||
3800: fnd_date.date_to_canonical(l_year_start)||''') and
3801: fnd_date.canonical_to_date('''||
3802: fnd_date.date_to_canonical(l_year_end)||''')
3803: and ppa.action_type in (''R'',''Q'',''V'',''B'',''I'')
3796: pay_payroll_actions ppa1
3797: where ppa1.payroll_action_id = :payroll_action_id
3798: and ppa.effective_date between
3799: fnd_date.canonical_to_date('''||
3800: fnd_date.date_to_canonical(l_year_start)||''') and
3801: fnd_date.canonical_to_date('''||
3802: fnd_date.date_to_canonical(l_year_end)||''')
3803: and ppa.action_type in (''R'',''Q'',''V'',''B'',''I'')
3804: and ppa.action_status = ''C''
3797: where ppa1.payroll_action_id = :payroll_action_id
3798: and ppa.effective_date between
3799: fnd_date.canonical_to_date('''||
3800: fnd_date.date_to_canonical(l_year_start)||''') and
3801: fnd_date.canonical_to_date('''||
3802: fnd_date.date_to_canonical(l_year_end)||''')
3803: and ppa.action_type in (''R'',''Q'',''V'',''B'',''I'')
3804: and ppa.action_status = ''C''
3805: and ppa.business_group_id + 0 = '||to_char(l_business_group)||'
3798: and ppa.effective_date between
3799: fnd_date.canonical_to_date('''||
3800: fnd_date.date_to_canonical(l_year_start)||''') and
3801: fnd_date.canonical_to_date('''||
3802: fnd_date.date_to_canonical(l_year_end)||''')
3803: and ppa.action_type in (''R'',''Q'',''V'',''B'',''I'')
3804: and ppa.action_status = ''C''
3805: and ppa.business_group_id + 0 = '||to_char(l_business_group)||'
3806: and ppa.payroll_action_id = paa.payroll_action_id