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.
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.
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.
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