<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: ECC Order Management, Credit Check Hold Details -->
 <REPORTS_ROW>
  <GUID>31BBF4BFEBEF0AD9E06362FB090507AE</GUID><ENABLED>Y</ENABLED>
  <SQL_TEXT>select
x.*
from
(
SELECT * FROM
                                                    (
                                                        SELECT
                                                            oech.header_id|| &apos; - &apos;|| oech.line_id ecc_spec_id,
                                                            oech.header_id,
                                                            oech.line_id,
                                                            oech.credit_check_rule_id,
                                                            oech.hold_id,
                                                            oech.hold_comment,
                                                            oech.party_id,
                                                            oech.bill_to_customer_id,
                                                            oech.bill_to_site_id,
                                                            oech.operating_unit,
                                                            oech.cc_released_flag,
                                                            oech.cc_global_exposure_flag,
                                                            oech.order_currency,
                                                            curr.name credit_limit_currency,
                                                            oech.order_limit,
                                                            oech.credit_currency_order_amount,
                                                            (
                                                                    SELECT
                                                                        st.meaning
                                                                    FROM
                                                                        fnd_lookup_values st
                                                                    WHERE
                                                                            st.lookup_code = oech.overdue_invoice_exists
                                                                        AND st.language = curr.language
                                                                        AND st.lookup_type = &apos;YES_NO&apos;
                                                                        AND st.view_application_id = 660
                                                                        AND st.security_group_id = 0
                                                                ) overdue_invoice_exists,
                                                            oech.order_number,
                                                            oech.order_amount,
                                                            oech.org_id,
                                                            oech.external_exposure,
                                                            oech.credit_limit_level,
                                                            oech.credit_limit_level_id,
                                                            oech.credit_limit_level_name,
                                                            curr.language     language_code,
							    decode(oech.overdue_invoice_exists,&apos;Y&apos;,&apos;false&apos;,&apos;true&apos;) HIDE_OVERDUE_INVOICE_ALERT,  -- Bug 36326419
							    CASE
							    	when oech.order_limit IS NULL then &apos;true&apos;
								when nvl(oech.credit_currency_order_amount,0)&gt;nvl(oech.order_limit,0) then &apos;false&apos;
								else &apos;true&apos;
							    END HIDE_ORDER_LIMIT_ALERT  -- Bug 36326419
                                                        FROM
                                                            oe_ecc_credit_hold_details   oech,
                                                            fnd_currencies_tl curr
                                                        WHERE
                                                                oech.cc_support_flag = &apos;Y&apos;
                                                            AND oech.credit_limit_currency = curr.currency_code AND 1=1  AND curr.language IN ( &apos;US&apos; )
                                                    ) PIVOT (
                                                        MAX ( credit_limit_currency ) AS credit_limit_currency,
                                                        MAX ( overdue_invoice_exists ) AS overdue_invoice_exists
                                                        FOR language_code IN ( &apos;US&apos; &quot;US&quot;))
) x
where
2=2</SQL_TEXT>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>ECC Order Management, Credit Check Hold Details</REPORT_NAME>
    <DESCRIPTION>Imported from Enterprise Command Center
Dataset Key: ont-cc-hold-details
Query Procedure: OE_ECC_CREDITCHECK_PVT.GET_OM_CREDIT_DATA_LOAD_INFO
Security Procedure: </DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enterprise Command Center</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
  </PARAMETERS>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
