<ROOT>
 <APPS_INITIALIZE_DATA>
  <USER_NAME>ENGINATICS</USER_NAME>
  <RESPONSIBILITY_KEY>SYSTEM_ADMINISTRATOR</RESPONSIBILITY_KEY>
  <APPLICATION_SHORT_NAME>SYSADMIN</APPLICATION_SHORT_NAME>
 </APPS_INITIALIZE_DATA>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: PAY Fringe Benefits -->
 <REPORTS_ROW>
  <GUID>C6E085D4715251A9E05362FB09050512</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
    concatenated_segments,
     avalue ,   
         dt,
    full_name,
    employee_number,
    assignment_number,
    cost_centre,
    element_name
 from (
select  /*+leading (pec pet piv peev)*/ (nvl(pcak.concatenated_segments,0) ) concatenated_segments
    ,to_number (peev1.screen_entry_value) avalue,   
         to_char( to_date(peev.screen_entry_value,&apos;yyyy/mm/dd hh24:mi:ss&apos;),&apos;dd-MON-yyyy&apos;) dt,
    per.full_name,
    per.employee_number,
    asg.assignment_number,
    pcak.concatenated_segments cost_centre,
    nvl(pet.reporting_name,pet.element_name) element_name,
    per.person_id,
    asg.period_of_service_id
from
    per_people_f per,
    per_assignments_f asg,
                pay_assignment_actions paa,
                pay_payroll_actions ppa,
    pay_cost_allocation_keyflex pcak,
    pay_cost_allocations_f pca,
    pay_element_Entry_values_f peev,
        Pay_Element_Entries_f pee, 
        Pay_Input_Values_f PIV, 
    Pay_Input_Values_f PIV1,
    pay_element_types_f pet,
    pay_element_classifications pec,
    pay_element_Entry_values_f peev1    
where
    per.person_id=asg.person_id and
    per.business_group_id=:P_BUSINESS_GROUP_ID
    and pcak.cost_allocation_keyflex_id(+)=pca.cost_allocation_keyflex_id and
    pca.assignment_id(+)=asg.assignment_id and
                asg.assignment_id=pee.assignment_id 
               and paa.assignment_id = asg.assignment_id
               and ppa.payroll_action_id = paa.payroll_action_id
               and ppa.action_type in (&apos;R&apos;, &apos;Q&apos;)
               and ppa.date_earned between pee.effective_start_date and pee.effective_end_date and
                peev.element_entry_id = pee.element_entry_id and
    peev1.element_entry_id = pee.element_entry_id 
        and PIV.Name = &apos;Date&apos; 
    and PIV.UOM = &apos;D&apos; 
    and PIV1.Name = &apos;Taxable Value&apos; 
            and PIV1.UOM = &apos;M&apos;
    And PIV.Input_Value_ID = PEEV.INPUT_VALUE_id 
    And PIV1.Input_Value_ID = PEEV1.INPUT_VALUE_id  
               and (substr(peev.screen_entry_value,5,1) =&apos;/&apos; 
and to_date(to_char(peev.screen_Entry_value),&apos;yyyy/mm/dd hh24:mi:ss&apos;)  Between :P_START_DATE  and :P_END_DATE
and to_date(to_char(peev.screen_Entry_value),&apos;yyyy/mm/dd hh24:mi:ss&apos;) Between per.effective_start_date  and per.effective_end_date
and to_date(to_char(peev.screen_Entry_value),&apos;yyyy/mm/dd hh24:mi:ss&apos;) Between asg.effective_start_date  and asg.effective_end_date 
and (to_date(to_char(peev.screen_Entry_value),&apos;yyyy/mm/dd hh24:mi:ss&apos;) Between pca.effective_start_date  and pca.effective_end_date
    OR not exists (select null from pay_cost_allocations_f pca2
                    where pca.cost_allocation_id = pca2.cost_allocation_id ))
and :P_START_DATE Between pet.effective_start_date  and pet.effective_end_date )
    And  piv.element_type_id=pet.element_type_id and
                piv1.element_type_id=pet.element_type_id 
                and pec.classification_name =&apos;Fringe Benefits&apos; and
                pet.classification_id=pec.classification_id 
    and pet.business_group_id = :P_BUSINESS_GROUP_ID
    and (pcak.cost_allocation_keyflex_id=:P_COST_CENTRE or :P_COST_CENTRE is null)
)
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>PAY</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>PYAUFBR_XML</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PAY Fringe Benefits</REPORT_NAME>
    <DESCRIPTION>Imported from BI Publisher
Description: Fringe Benefits Report
Application: Payroll
Source: Fringe Benefits Report (XML)
Short Name: PYAUFBR_XML
DB package: PAY_PYAUFBR_XMLP_PKG</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:cp_currency_code</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_business_group_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_conc_request_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_cost_centre</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_end</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_end_date</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_start</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_start_date</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_business_group_id</ANCHOR>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;PER_BUSINESS_GROUP_ID&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Business Group Id</PARAMETER_NAME>
      <DESCRIPTION>Business Group Id</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_start_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>Select fnd_date.date_to_displaydate(effective_date) from fnd_sessions where session_id=userenv(&apos;sessionid&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Start Date</PARAMETER_NAME>
      <DESCRIPTION>Start Date</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_end_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>Select fnd_date.date_to_displaydate(effective_date) from fnd_sessions where session_id=userenv(&apos;sessionid&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>End Date</PARAMETER_NAME>
      <DESCRIPTION>End Date</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_cost_centre</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_AU_COST_CENTRES</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
cost_allocation_keyflex_id id,
concatenated_segments value,
null description
from
pay_cost_allocation_keyflex
where id_flex_num in
(select org_information7 from hr_organization_information_v
where organization_id=fnd_global.per_business_group_id
and org_information_context=&apos;Business Group Information&apos;)
and concatenated_segments is not null
order by concatenated_segments</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Cost Centre</PARAMETER_NAME>
      <DESCRIPTION>Cost Centre</DESCRIPTION>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
