<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: OFS Brands Work Order Schedule Detail -->
 <REPORTS_ROW>
  <GUID>0F5063C8D7E14A2B9C0D1E2F3A4B5C6D</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>SELECT wsg.schedule_group_name,
       /*RTRIM (LTRIM (msi.attribute1, &apos;0&apos;), &apos;0&apos;) LENGTH,
       RTRIM (LTRIM (msi.attribute2, &apos;0&apos;), &apos;0&apos;) width,
       RTRIM (LTRIM (msi.attribute3, &apos;0&apos;), &apos;0&apos;) thick,
       */   -- Commented as part of remediation on 4-Nov
       rtrim(ltrim(msi.Unit_length,&apos;0&apos;),&apos;0&apos;) length,
       rtrim(ltrim(msi.Unit_Width,&apos;0&apos;),&apos;0&apos;) width,
	rtrim(ltrim(msi.Unit_Height,&apos;0&apos;),&apos;0&apos;) thick,
       RTRIM (LTRIM (msi.attribute4, &apos;0&apos;), &apos;0&apos;) face, msi.attribute9 vdwg,
       we.wip_entity_name job, msi.segment1 assembly,
       SUBSTR (msi.description, 1, 15) description,
          DECODE (msi.inventory_planning_code,
                  2, &apos;MIN&apos;,
                  6, &apos;&apos;,
                  &apos;?&apos;
                 )
       || &apos; &apos;
       || DECODE (msi.mrp_planning_code, 3, &apos;MRP&apos;, 6, &apos;&apos;, &apos;?&apos;) plan_code,
       wdj.start_quantity quantity, wdj.scheduled_completion_date pack_date,
         wdj.start_quantity
       - (NVL (wdj.quantity_completed, 0) + NVL (wdj.quantity_scrapped, 0))
                                                                      rem_qty,
wo.quantity_in_queue + wo.quantity_running + wo.quantity_waiting_to_move wo_qty, 
wdj.wip_entity_id,
wdj.primary_item_id, 
wdj.organization_id,
wo.description wo_description, 
wo.operation_seq_num,
wo.quantity_running wo_r,
wo.quantity_in_queue wo_q,
wo.quantity_waiting_to_move wo_m,
&apos;R&apos; status_type,
       (select max(wmt.transaction_date) from wip_move_transactions wmt where wmt.wip_entity_id=wdj.wip_entity_id and wmt.to_operation_seq_num=wo.operation_seq_num) last_transaction,
       case when (case when wo.quantity_in_queue&gt;0 then &apos;Q&apos; end||case when wo.quantity_running&gt;0 then &apos;R&apos; end||case when wo.quantity_waiting_to_move&gt;0 then &apos;M&apos; end) is not null
            then substr(wo.description,1,6)||&apos;-&apos;||(case when wo.quantity_in_queue&gt;0 then &apos;Q&apos; end||case when wo.quantity_running&gt;0 then &apos;R&apos; end||case when wo.quantity_waiting_to_move&gt;0 then &apos;M&apos; end) end step,
       (select br.resource_code from bom_resources br where br.resource_id=:p_resource_id) resource_name,
       substr(rtrim(ltrim(msi.unit_length,&apos;0&apos;),&apos;0&apos;)||&apos;x&apos;||rtrim(ltrim(msi.unit_width,&apos;0&apos;),&apos;0&apos;)||&apos;x&apos;||rtrim(ltrim(msi.unit_height,&apos;0&apos;),&apos;0&apos;),1,20) dimensions
  FROM wip_schedule_groups wsg,
       wip_entities we,
       mtl_system_items_b msi,
       wip_discrete_jobs wdj,
       wip_operations wo,
       WIP_OPERATION_RESOURCES orr
 WHERE we.primary_item_id = msi.inventory_item_id
   AND wdj.wip_entity_id = wo.wip_entity_id
   AND wdj.organization_id = wo.organization_id
   AND wo.wip_entity_id = orr.wip_entity_id (+)
   AND wo.organization_id = orr.organization_id (+)
   --AND wo.operation_seq_num = orr.operation_seq_num (+) 
   AND wo.quantity_in_queue + wo.quantity_running +wo.quantity_waiting_to_move &gt; 0
   AND wdj.status_type = 3
--   AND wo.operation_seq_num IN (SELECT MIN (operation_seq_num)
                                 -- FROM wip_operations wo2
                                -- WHERE wo2.wip_entity_id = wo.wip_entity_id)
   AND we.organization_id = msi.organization_id
   AND we.wip_entity_id = wdj.wip_entity_id
   AND we.organization_id = wdj.organization_id
   AND wdj.schedule_group_id = wsg.schedule_group_id(+)
   and 1=1 
-- only look at jobs were quantity not completed
   AND NVL (wdj.quantity_completed, 0) + NVL (wdj.quantity_scrapped, 0) &lt;&gt;
                                                            wdj.start_quantity
   AND (   (    (msi.segment1 NOT LIKE &apos;6%&apos; AND :p_6million = &apos;Yes&apos;)
            AND (   (msi.segment1 LIKE &apos;5%&apos; AND :p_5million = &apos;No&apos;)
                 OR msi.segment1 NOT LIKE &apos;5%&apos;
                )
           )
        OR (    (msi.segment1 NOT LIKE &apos;5%&apos; AND :p_5million = &apos;Yes&apos;)
            AND (   (msi.segment1 LIKE &apos;6%&apos; AND :p_6million = &apos;No&apos;)
                 OR msi.segment1 NOT LIKE &apos;6%&apos;
                )
           )
        OR (msi.segment1 LIKE &apos;6%&apos; AND (:p_6milliononly = &apos;Yes&apos;))
        OR (msi.segment1 LIKE &apos;5%&apos; AND (:p_5milliononly = &apos;Yes&apos;))
        OR (    :p_6milliononly = &apos;No&apos;
            AND :p_6million = &apos;No&apos;
            AND :p_5milliononly = &apos;No&apos;
            AND :p_5million = &apos;No&apos;
           )
       )
UNION
SELECT wsg.schedule_group_name,
       /*RTRIM (LTRIM (msi.attribute1, &apos;0&apos;), &apos;0&apos;) LENGTH,
       RTRIM (LTRIM (msi.attribute2, &apos;0&apos;), &apos;0&apos;) width,
       RTRIM (LTRIM (msi.attribute3, &apos;0&apos;), &apos;0&apos;) thick,
       */                -- Commented as part of remediation on 4-Nov-16 
              rtrim(ltrim(msi.Unit_length,&apos;0&apos;),&apos;0&apos;) length,
       rtrim(ltrim(msi.Unit_Width,&apos;0&apos;),&apos;0&apos;) width,
	rtrim(ltrim(msi.Unit_Height,&apos;0&apos;),&apos;0&apos;) thick,
	RTRIM (LTRIM (msi.attribute4, &apos;0&apos;), &apos;0&apos;) face, msi.attribute9 vdwg,
       we.wip_entity_name job, msi.segment1 assembly,
       SUBSTR (msi.description, 1, 15) description,
          DECODE (msi.inventory_planning_code,
                  2, &apos;MIN&apos;,
                  6, &apos;&apos;,
                  &apos;?&apos;
                 )
       || &apos; &apos;
       || DECODE (msi.mrp_planning_code, 3, &apos;MRP&apos;, 6, &apos;&apos;, &apos;?&apos;) plan_code,
wdj.start_quantity quantity, 
wdj.scheduled_completion_date pack_date,
wdj.start_quantity - (NVL (wdj.quantity_completed, 0) + NVL (wdj.quantity_scrapped, 0))    rem_qty,
       wo.quantity_in_queue + wo.quantity_running wo_qty, wdj.wip_entity_id,
       wdj.primary_item_id, wdj.organization_id,
       wo.description wo_description,
 wo.operation_seq_num,
wo.quantity_running ,
wo.quantity_in_queue ,
wo.quantity_waiting_to_move ,
&apos;U&apos; status_type,
       (select max(wmt.transaction_date) from wip_move_transactions wmt where wmt.wip_entity_id=wdj.wip_entity_id and wmt.to_operation_seq_num=wo.operation_seq_num) last_transaction,
       case when (case when wo.quantity_in_queue&gt;0 then &apos;Q&apos; end||case when wo.quantity_running&gt;0 then &apos;R&apos; end||case when wo.quantity_waiting_to_move&gt;0 then &apos;M&apos; end) is not null
            then substr(wo.description,1,6)||&apos;-&apos;||(case when wo.quantity_in_queue&gt;0 then &apos;Q&apos; end||case when wo.quantity_running&gt;0 then &apos;R&apos; end||case when wo.quantity_waiting_to_move&gt;0 then &apos;M&apos; end) end step,
       (select br.resource_code from bom_resources br where br.resource_id=:p_resource_id) resource_name,
       substr(rtrim(ltrim(msi.unit_length,&apos;0&apos;),&apos;0&apos;)||&apos;x&apos;||rtrim(ltrim(msi.unit_width,&apos;0&apos;),&apos;0&apos;)||&apos;x&apos;||rtrim(ltrim(msi.unit_height,&apos;0&apos;),&apos;0&apos;),1,20) dimensions
  FROM wip_schedule_groups wsg,
       wip_entities we,
       mtl_system_items_b msi,
       wip_discrete_jobs wdj,
       wip_operations wo,
       WIP_OPERATION_RESOURCES orr
 WHERE we.primary_item_id = msi.inventory_item_id
   AND wdj.wip_entity_id = wo.wip_entity_id
   AND wdj.organization_id = wo.organization_id
   AND wo.wip_entity_id = orr.wip_entity_id (+)
   AND wo.organization_id = orr.organization_id (+)
   --AND wo.operation_seq_num = orr.operation_seq_num (+)
   AND wdj.status_type = 1
   AND wo.operation_seq_num IN (SELECT MIN (operation_seq_num)
                                 FROM wip_operations wo2
                                WHERE wo2.wip_entity_id = wo.wip_entity_id)
   AND we.organization_id = msi.organization_id
   AND we.wip_entity_id = wdj.wip_entity_id
   AND we.organization_id = wdj.organization_id
   AND wdj.schedule_group_id = wsg.schedule_group_id(+)
   and 1=1 
-- only look at jobs were quantity not completed
   AND NVL (wdj.quantity_completed, 0) + NVL (wdj.quantity_scrapped, 0) &lt;&gt;
                                                            wdj.start_quantity
   AND (   (    (msi.segment1 NOT LIKE &apos;6%&apos; AND :p_6million = &apos;Yes&apos;)
            AND (   (msi.segment1 LIKE &apos;5%&apos; AND :p_5million = &apos;No&apos;)
                 OR msi.segment1 NOT LIKE &apos;5%&apos;
                )
           )
        OR (    (msi.segment1 NOT LIKE &apos;5%&apos; AND :p_5million = &apos;Yes&apos;)
            AND (   (msi.segment1 LIKE &apos;6%&apos; AND :p_6million = &apos;No&apos;)
                 OR msi.segment1 NOT LIKE &apos;6%&apos;
                )
           )
        OR (msi.segment1 LIKE &apos;6%&apos; AND (:p_6milliononly = &apos;Yes&apos;))
        OR (msi.segment1 LIKE &apos;5%&apos; AND (:p_5milliononly = &apos;Yes&apos;))
        OR (    :p_6milliononly = &apos;No&apos;
            AND :p_6million = &apos;No&apos;
            AND :p_5milliononly = &apos;No&apos;
            AND :p_5million = &apos;No&apos;
           )
       )
</SQL_TEXT>
  <VERSION_COMMENTS>v02 - bind anchors converted to 1=1 + SQL_TEXT for the independent optional filters (Org Id, Jobs/Assemblies/Pack Dates From-To); Drawer converted to matching-value (E exclude / O only; blank=all); Resource ID 1=1. The 4 six/five-million flags stay as bind anchors (one interdependent boolean - cannot be split). Added Request Group assignments (All Reports@WIP, All Inclusive GUI@INV) - confirm vs the program&apos;s actual request groups (the gather did not capture _assignments.xml).</VERSION_COMMENTS>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>OFS Brands Work Order Schedule Detail</REPORT_NAME>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Custom Reports OFS</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_5million</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_5milliononly</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_6million</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_6milliononly</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>-10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>we.organization_id=:p_org_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Number</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>fnd_profile.value(&apos;MFG_ORGANIZATION_ID&apos;)</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Org Id</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>we.wip_entity_name&gt;=:p_from_job</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select we.wip_entity_name id, we.wip_entity_name value, msiv.concatenated_segments description from wip_entities we, wip_discrete_jobs wdj, mtl_system_items_vl msiv where we.wip_entity_id=wdj.wip_entity_id and we.organization_id=:$flex$.Org_Id and msiv.inventory_item_id(+)=we.primary_item_id and msiv.organization_id(+)=we.organization_id order by we.wip_entity_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Jobs From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>we.wip_entity_name&lt;=:p_to_job</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select we.wip_entity_name id, we.wip_entity_name value, msiv.concatenated_segments description from wip_entities we, wip_discrete_jobs wdj, mtl_system_items_vl msiv where we.wip_entity_id=wdj.wip_entity_id and we.organization_id=:$flex$.Org_Id and msiv.inventory_item_id(+)=we.primary_item_id and msiv.organization_id(+)=we.organization_id order by we.wip_entity_name</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Jobs To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>msi.segment1&gt;=:p_from_assmb</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select distinct msiv.segment1 id, msiv.segment1 value, msiv.description description from mtl_system_items_vl msiv, wip_discrete_jobs wdj, wip_entities we where msiv.organization_id=:$flex$.Org_Id and we.wip_entity_id=wdj.wip_entity_id and we.primary_item_id=msiv.inventory_item_id and we.organization_id=msiv.organization_id order by msiv.segment1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Assemblies From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>msi.segment1&lt;=:p_to_assmb</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <FILTER_BEFORE_DISPLAY_DSP>Y</FILTER_BEFORE_DISPLAY_DSP>
    <LOV_QUERY_DSP>select distinct msiv.segment1 id, msiv.segment1 value, msiv.description description from mtl_system_items_vl msiv, wip_discrete_jobs wdj, wip_entities we where msiv.organization_id=:$flex$.Org_Id and we.wip_entity_id=wdj.wip_entity_id and we.primary_item_id=msiv.inventory_item_id and we.organization_id=msiv.organization_id order by msiv.segment1</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Assemblies To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>wdj.scheduled_completion_date&gt;=:p_from_date</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Pack Dates From</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>wdj.scheduled_completion_date&lt;:p_to_date+1</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Pack Dates To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>:p_6million</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Yes&apos; id, &apos;Yes&apos; value, null description from dual union all select &apos;No&apos; id, &apos;No&apos; value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>No</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Exclude 6 Million Parts?</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>:p_6milliononly</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Yes&apos; id, &apos;Yes&apos; value, null description from dual union all select &apos;No&apos; id, &apos;No&apos; value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>No</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Only 6 Million Parts</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>:p_5million</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Yes&apos; id, &apos;Yes&apos; value, null description from dual union all select &apos;No&apos; id, &apos;No&apos; value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>No</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Exclude 5 Million Parts?</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>:p_5milliononly</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Yes&apos; id, &apos;Yes&apos; value, null description from dual union all select &apos;No&apos; id, &apos;No&apos; value, null description from dual</LOV_QUERY_DSP>
    <DEFAULT_VALUE>No</DEFAULT_VALUE>
    <REQUIRED>Y</REQUIRED>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Only 5 Million Parts</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(wsg.schedule_group_name,&apos;x&apos;)&lt;&gt;&apos;DRAWER&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;A&apos; id, &apos;All jobs&apos; value, null description from dual union all select &apos;E&apos; id, &apos;Exclude drawers&apos; value, null description from dual union all select &apos;O&apos; id, &apos;Only drawers&apos; value, null description from dual</LOV_QUERY_DSP>
    <MATCHING_VALUE>E</MATCHING_VALUE>
    <DEFAULT_VALUE>All jobs</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Drawer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>nvl(wsg.schedule_group_name,&apos;x&apos;)=&apos;DRAWER&apos;</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <MATCHING_VALUE>O</MATCHING_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Drawer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>orr.resource_id=:p_resource_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select br.resource_id id, br.resource_code value, br.description from bom_resources br where br.resource_id is not null order by br.resource_code</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Resource ID</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>
