<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: PER Norwegian Child/Child Minder Sickness Leave Balance -->
 <REPORTS_ROW>
  <GUID>82288223F36D3869E053B46B63588994</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>   SELECT ppf.full_name
         ,ppf.employee_number
         ,paf.assignment_id
         ,pay_no_abs_validation.get_cms_leave_taken(ppf.person_id,:p_report_date) cms_leave_taken
         ,pay_no_abs_validation.get_cms_entitlement(ppf.person_id,:p_report_date) cms_entitlement                 			
     FROM per_all_people_f ppf
         ,per_all_assignments_f paf
         ,hr_soft_coding_keyflex hsck
    WHERE ppf.person_id = paf.person_id
      AND paf.soft_coding_keyflex_id = hsck.soft_coding_keyflex_id
      AND :p_report_date between ppf.effective_start_date and ppf.effective_end_date 	 
      AND :p_report_date between paf.effective_start_date and paf.effective_end_date
      AND ppf.person_id = NVL(:p_person_id,ppf.person_id)
      AND paf.PRIMARY_FLAG=&apos;Y&apos;        
      AND paf.ASSIGNMENT_TYPE=&apos;E&apos; 		  
      AND EXISTS (SELECT hoi1.organization_id
                 FROM hr_organization_units o1
                     ,hr_organization_information hoi1
                     ,hr_organization_information hoi2
                     ,hr_organization_information hoi3
                     ,hr_organization_information hoi4      
                WHERE hoi1.organization_id = o1.organization_id
                  AND hoi1.org_information1 = &apos;NO_LOCAL_UNIT&apos;
                  AND hoi1.org_information_context = &apos;CLASS&apos;
                  AND o1.organization_id = hoi2.org_information1
                  AND hoi2.org_information_context =&apos;NO_LOCAL_UNITS&apos;
                  AND hoi2.organization_id =  hoi3.organization_id
                  AND hoi3.org_information_context =&apos;CLASS&apos;
                  AND hoi3.org_information1 = &apos;HR_LEGAL_EMPLOYER&apos;
                  AND hoi3.organization_id = :p_legal_employer_id
                  AND hoi1.organization_id =  hoi4.organization_id
                  AND hoi4.org_information_context =&apos;NO_LOCAL_UNIT_DETAILS&apos;
                  AND to_char(hoi1.organization_id) = hsck.segment2)
     ORDER BY ppf.employee_number                                  
</SQL_TEXT>
  <XDO_APPLICATION_SHORT_NAME>PER</XDO_APPLICATION_SHORT_NAME>
  <XDO_DATA_SOURCE_CODE>PERNOCLBR</XDO_DATA_SOURCE_CODE>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>PER Norwegian Child/Child Minder Sickness Leave Balance</REPORT_NAME>
    <DESCRIPTION>Application: Human Resources
Source: Norwegian Child/Child Minder Sickness Leave Balance
Short Name: PERNOCLBR
DB package: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>BI Publisher</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>:p_legal_employer_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_person_id</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_report_date</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>:p_legal_employer_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_NO_LEGAL_EMPLOYER</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
o.organization_id id,
o.name value,
null description
from
hr_all_organization_units o,fnd_sessions s,hr_organization_information hoi
where o.business_group_id=fnd_global.per_business_group_id
and o.organization_id=hoi.organization_id
and hoi.org_information_context=&apos;CLASS&apos;
and hoi.org_information1=&apos;HR_LEGAL_EMPLOYER&apos;
and s.session_id=userenv(&apos;sessionid&apos;)
and s.effective_date between o.date_from and nvl(o.date_to,to_date(&apos;31/12/4712&apos;,&apos;DD/MM/YYYY&apos;))
order by o.name</LOV_QUERY_DSP>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Legal Employer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>:p_report_date</ANCHOR>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>SELECT TRUNC(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>Effective Date</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>:p_person_id</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV Oracle</PARAMETER_TYPE_DSP>
    <LOV_NAME>PY_NO_LE_EMPLOYEES</LOV_NAME>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
ppf.person_id id,
ppf.full_name value,
null description
from
per_all_people_f ppf,per_all_assignments_f paf,hr_soft_coding_keyflex hsc,fnd_sessions fnd
where ppf.person_id=paf.person_id
and paf.soft_coding_keyflex_id=hsc.soft_coding_keyflex_id
and fnd.session_id=userenv(&apos;SESSIONID&apos;)
and fnd.effective_date between ppf.effective_start_date and ppf.effective_end_date
and fnd.effective_date between paf.effective_start_date and paf.effective_end_date
and exists (select hoi1.organization_id
from hr_organization_units o1
,hr_organization_information hoi1
,hr_organization_information hoi2
,hr_organization_information hoi3
,hr_organization_information hoi4
where hoi1.organization_id=o1.organization_id
and hoi1.org_information1=&apos;NO_LOCAL_UNIT&apos;
and hoi1.org_information_context=&apos;CLASS&apos;
and o1.organization_id=hoi2.org_information1
and hoi2.org_information_context=&apos;NO_LOCAL_UNITS&apos;
and hoi2.organization_id=hoi3.organization_id
and hoi3.org_information_context=&apos;CLASS&apos;
and hoi3.org_information1=&apos;HR_LEGAL_EMPLOYER&apos;
and hoi3.organization_id=:$flex$.py_no_legal_employer
and hoi1.organization_id=hoi4.organization_id
and hoi4.org_information_context=&apos;NO_LOCAL_UNIT_DETAILS&apos;
and to_char(hoi1.organization_id)=hsc.segment2)
order by value,description</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Employee Name</PARAMETER_NAME>
     </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>
