0% found this document useful (0 votes)
124 views4 pages

Element Input Value For Reference Decree Number

This document describes a payroll value set that retrieves the decree number for an employee's MDA business trip payment reference. It joins tables for people, assignments, pay elements, and input values to filter for active employees and assignments, and the relevant pay element type and input value. It excludes any entries that have a cancelation or payment decree with the same decree reference number. The results are ordered by decree number in descending order.

Uploaded by

hamdy20017121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
124 views4 pages

Element Input Value For Reference Decree Number

This document describes a payroll value set that retrieves the decree number for an employee's MDA business trip payment reference. It joins tables for people, assignments, pay elements, and input values to filter for active employees and assignments, and the relevant pay element type and input value. It excludes any entries that have a cancelation or payment decree with the same decree reference number. The results are ordered by decree number in descending order.

Uploaded by

hamdy20017121
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Payroll Value Sets

Description MDA Business Trip Payment Ref Decree Number


*Module Global Payroll

*FROM Clause PER_ALL_PEOPLE_F PAPF,per_all_assignments_f paaf,


pay_element_entry_values_f peevf, pay_element_types_f
petf,pay_input_values_f pivf, pay_element_entries_f peef
*Value Column Name peevf.screen_entry_value

Description Column Name peevf.screen_entry_value


ID Column Name peevf.screen_entry_value
WHERE Clause papf.person_id = paaf.person_id
and paaf.PRIMARY_FLAG = 'Y'
AND paaf.effective_latest_change = 'Y'
AND paaf.ASSIGNMENT_TYPE = 'E'
AND paaf.PRIMARY_ASSIGNMENT_FLAG = 'Y'
and paaf.person_id = peef.person_id
and petf.element_type_id=peef.element_type_id
and petf.base_element_name='MDA Business Mission
Assignment Decree'
and peevf.element_entry_id = peef.element_entry_id
AND pivf.base_name = 'Decree Number'
AND peevf.input_value_id = pivf.input_value_id
AND peevf.input_value_id = pivf.input_value_id
--AND peevf.element_entry_id = :{PARAMETER.P_ENTRY_ID}
AND papf.person_id = :{PARAMETER.PersonId}
-- AND papf.person_number = '10124'
and TRUNC (SYSDATE) BETWEEN papf.effective_start_date
AND papf.effective_end_date
AND trunc(sysdate) BETWEEN paaf.effective_start_date AND
paaf.effective_end_date
AND NOT EXISTS (
SELECT 1
FROM
pay_element_entry_values_f peevf2
,pay_element_types_f
petf2
,pay_input_values_f
pivf2
,pay_element_entries
_f peef2
WHERE 1 = 1
AND peef2.person_id =
peef.person_id
and
petf2.element_type_id=peef2.element_type_id
and
petf2.base_element_name='MDA Business Mission Cancelation
Decree'
and peevf2.element_entry_id
= peef2.element_entry_id
AND pivf2.base_name =
'Decree Referance Number'
AND peevf2.input_value_id =
pivf2.input_value_id
AND peevf2.input_value_id
= pivf2.input_value_id
AND
peevf2.screen_entry_value = peevf.screen_entry_value
)
/* AND NOT EXISTS (
SELECT 1
FROM
pay_element_entry_values_f peevf2
,pay_element_types_f
petf2
,pay_input_values_f
pivf2
,pay_element_entries
_f peef2
WHERE 1 = 1
AND peef2.person_id =
peef.person_id
and
petf2.element_type_id=peef2.element_type_id
and
petf2.base_element_name='MDA Business Mission Payment Decree'
and peevf2.element_entry_id
= peef2.element_entry_id
AND pivf2.base_name =
'Mandate Decree Referance Number'
AND peevf2.input_value_id =
pivf2.input_value_id
AND peevf2.input_value_id
= pivf2.input_value_id
AND
peevf2.screen_entry_value = peevf.screen_entry_value
) */
ORDER BY Clause peevf.screen_entry_value DESC

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy