<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>
<LOVS>
<!-- loader xml for Enginatics Blitz Report lov: Yes -->
 <LOVS_ROW>
  <GUID>8E2FF36EDEA679D2E0530100007F1FF2</GUID>
  <LOV_NAME>Yes</LOV_NAME>
  <VALIDATE_FROM_LIST>Y</VALIDATE_FROM_LIST>
  <LOV_QUERY>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY>
  <LOV_TRANSLATIONS>
   <LOV_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
   </LOV_TRANSLATIONS_ROW>
  </LOV_TRANSLATIONS>
 </LOVS_ROW>
</LOVS>
<REPORTS>
<!-- loader xml for Enginatics Blitz Report: QP Pricing Agreements -->
 <REPORTS_ROW>
  <GUID>210828171B81B176E0630100007F54DC</GUID>
  <SQL_TEXT>with
qpa as
(
 select
 -- agreement
 opcv.agreement_name,
 opcv.agreement_num,
 opcv.revision,
 opcv.revision_date,
 xxen_util.meaning(opcv.revision_reason_code,&apos;QP_REVISION_REASON_CODE&apos;,661) revision_reason,
 opcv.start_date_active,
 opcv.end_date_active,
 opcv.customer,
 opcv.customer_number,
 opcv.agreement_type,
 opcv.agreement_contact,
 opcv.salesrep,
 opcv.purchase_order_num,
 opcv.signature_date,
 xxen_util.meaning(opcv.agreement_source_code,&apos;AGREEMENT_SOURCE_CODE&apos;,661) agreement_source,
 -- pricing
 xxen_util.meaning(opcv.list_type_code,&apos;LIST_TYPE_CODE&apos;,661) price_list_type,
 opcv.price_list,
 opcv.currency_code,
 (select qclt.name from qp_currency_lists_tl qclt where qclt.currency_header_id = opcv.currency_header_id and qclt.language = userenv(&apos;LANG&apos;) and rownum &lt;= 1) multi_currency_conversion,
 opcv.rounding_factor,
 opcv.description,
 opcv.ship_method_code,
 opcv.freight_terms,
 opcv.comments,
 -- Payment
 opcv.term,
 opcv.invoice_name,
 opcv.address1,
 opcv.address2,
 opcv.address3,
 opcv.invoice_contact,
 opcv.accounting_rule,
 opcv.invoicing_rule,
 xxen_util.meaning(opcv.override_arule_flag,&apos;YES_NO&apos;,0) override_accounting_rule,
 xxen_util.meaning(opcv.override_irule_flag,&apos;YES_NO&apos;,0) override_invoicing_rule,
-- dff
 oab.context agreement_dff_context,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE1&apos;,oab.rowid,oab.attribute1) agreement_attribute1,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE2&apos;,oab.rowid,oab.attribute2) agreement_attribute2,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE3&apos;,oab.rowid,oab.attribute3) agreement_attribute3,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE4&apos;,oab.rowid,oab.attribute4) agreement_attribute4,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE5&apos;,oab.rowid,oab.attribute5) agreement_attribute5,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE6&apos;,oab.rowid,oab.attribute6) agreement_attribute6,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE7&apos;,oab.rowid,oab.attribute7) agreement_attribute7,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE8&apos;,oab.rowid,oab.attribute8) agreement_attribute8,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE9&apos;,oab.rowid,oab.attribute9) agreement_attribute9,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE10&apos;,oab.rowid,oab.attribute10) agreement_attribute10,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE11&apos;,oab.rowid,oab.attribute11) agreement_attribute11,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE12&apos;,oab.rowid,oab.attribute12) agreement_attribute12,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE13&apos;,oab.rowid,oab.attribute13) agreement_attribute13,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE14&apos;,oab.rowid,oab.attribute14) agreement_attribute14,
 xxen_util.display_flexfield_value(661,&apos;OE_AGREEMENTS&apos;,&apos;ATTRIBUTE15&apos;,oab.rowid,oab.attribute15) agreement_attribute15,
 -- audit
 xxen_util.user_name(opcv.created_by,&apos;N&apos;) agreement_created_by,
 xxen_util.client_time(opcv.creation_date) agreement_creation_date,
 xxen_util.user_name(opcv.last_updated_by,&apos;N&apos;) agreement_last_updated_by,
 xxen_util.client_time(opcv.last_update_date) agreement_last_update_date,
 -- ids
 opcv.agreement_id,
 opcv.price_list_id
 from
 oe_pricing_contracts_v opcv,
 oe_agreements_b oab
 where
 1=1 and
 opcv.agreement_id = oab.agreement_id and
 opcv.price_list_id in
 (select
  qslhv.list_header_id
  from
  qp_secu_list_headers_v qslhv
  where qslhv.list_type_code in (&apos;PRL&apos;,&apos;AGR&apos;) and
  qslhv.view_flag = &apos;Y&apos;
 )
),
qll as
(
 select /*+ leading(qp_list_lines_v.qppr) use_nl(qp_list_lines_v.qpll) no_expand */
 -- agreement lines
 qllv.list_line_no,
 mciav.customer_item_number customer_item,
 mciav.concatenated_address address,
 mciav.customer_category address_category,
 qllv.product_attr_val_disp product_value,
 msiv.description product_description,
 qllv.product_uom_code uom,
 case when qllv.primary_uom_flag = &apos;Y&apos; then xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) else null end primary_uom_flag,
 xxen_util.meaning(qllv.list_line_type_code,&apos;LIST_LINE_TYPE_CODE&apos;,661) line_type,
 xxen_util.meaning(qllv.price_break_type_code,&apos;PRICE_BREAK_TYPE_CODE&apos;,661) price_break_type,
 xxen_util.meaning(qllv.arithmetic_operator,&apos;ARITHMETIC_OPERATOR&apos;,661) application_method,
 --qllv.accum_attribute accumulation_attribute,
 qllv.break_uom_code break_uom,
 qllv.break_uom_attribute,
 qllv.operand value,
 qpfv1.name dynamic_formula,
 qpfv2.name statis_formula,
 qllv.start_date_active line_start_date,
 qllv.end_date_active line_end_date,
 qllv.product_precedence precedence,
 qllv.comments line_comments,
 qllv.revision line_revsion,
 xxen_util.meaning(qllv.revision_reason_code,&apos;QP_REVISION_REASON_CODE&apos;,661) line_revision_reason,
 qllv.revision_date line_revision_date,
 -- dff
 qllv.context line_dff_context,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE1&apos;,qllv.row_id,qllv.attribute1) line_attribue1,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE2&apos;,qllv.row_id,qllv.attribute2) line_attribue2,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE3&apos;,qllv.row_id,qllv.attribute3) line_attribue3,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE4&apos;,qllv.row_id,qllv.attribute4) line_attribue4,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE5&apos;,qllv.row_id,qllv.attribute5) line_attribue5,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE6&apos;,qllv.row_id,qllv.attribute6) line_attribue6,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE7&apos;,qllv.row_id,qllv.attribute7) line_attribue7,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE8&apos;,qllv.row_id,qllv.attribute8) line_attribue8,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE9&apos;,qllv.row_id,qllv.attribute9) line_attribue9,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE10&apos;,qllv.row_id,qllv.attribute10) line_attribue10,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE11&apos;,qllv.row_id,qllv.attribute11) line_attribue11,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE12&apos;,qllv.row_id,qllv.attribute12) line_attribue12,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE13&apos;,qllv.row_id,qllv.attribute13) line_attribue13,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE14&apos;,qllv.row_id,qllv.attribute14) line_attribue14,
 xxen_util.display_flexfield_value(661,&apos;QP_LIST_LINES&apos;,&apos;ATTRIBUTE15&apos;,qllv.row_id,qllv.attribute15) line_attribue15,
 -- audit
 xxen_util.user_name(qllv.created_by,&apos;N&apos;) created_by,
 xxen_util.client_time(qllv.creation_date) creation_date,
 xxen_util.user_name(qllv.last_updated_by,&apos;N&apos;) last_updated_by,
 xxen_util.client_time(qllv.last_update_date) last_update_date,
 -- ids
 qllv.list_header_id,
 qllv.pa_list_header_id,
 qllv.list_line_id
from
 qp_list_lines_v qllv,
 mtl_system_items_vl msiv,
 qp_price_formulas_vl qpfv1,
 qp_price_formulas_vl qpfv2,
 mtl_customer_items_all_v mciav
where
 2=2 and
 qllv.product_attribute_context = &apos;ITEM&apos; and
 (qllv.product_attribute&lt;&gt;&apos;PRICING_ATTRIBUTE1&apos; or
  msiv.inventory_item_id is not null
 ) and
 case when qllv.product_attribute_context = &apos;ITEM&apos; and qllv.product_attribute = &apos;PRICING_ATTRIBUTE1&apos; then qllv.product_attr_value end = msiv.inventory_item_id(+) and
 msiv.organization_id (+) = qp_util.get_item_validation_org and
 qllv.price_by_formula_id = qpfv1.price_formula_id(+) and
 qllv.generate_using_formula_id = qpfv2.price_formula_id(+) and
 qllv.customer_item_id = mciav.customer_item_id (+)
),
qpb as
(
 select
 qpbv.pricing_attr_value_from price_break_value_from,
 qpbv.pricing_attr_value_to price_break_value_to,
 qpbv.operand price_break_value,
 qp_qp_form_pricing_attr.Get_Formula(qpbv.price_by_formula_id) price_break_formula,
 qp_qp_form_pricing_attr.Get_Meaning (qpbv.arithmetic_operator, &apos;ARITHMETIC_OPERATOR&apos;) price_break_application_method,
 qpbv.benefit_qty price_break_benefit_qty,
 qpbv.benefit_uom_code price_break_benefit_uom,
 qpbv.accrual_conversion_rate price_break_accrual_conv_rate,
 xxen_util.client_time(qpbv.creation_date) creation_date,
 xxen_util.user_name(qpbv.created_by,&apos;N&apos;) created_by,
 xxen_util.client_time(qpbv.last_update_date) last_update_date,
 xxen_util.user_name(qpbv.last_updated_by,&apos;N&apos;) last_updated_by,
 qpbv.list_line_id list_line_id,
 qpbv.list_header_id list_header_id,
 qpbv.parent_list_line_id parent_list_line_id
 from
 qp_price_breaks_v qpbv
),
qpat as
(
 select
 qp_qp_form_pricing_attr.Get_Attribute (&apos;QP_ATTR_DEFNS_PRICING&apos;, qpa.product_attribute_context, qpa.product_attribute) product_attribute,
 qp_price_list_line_util.Get_Product_Value (&apos;QP_ATTR_DEFNS_PRICING&apos;, qpa.product_attribute_context, qpa.product_attribute, qpa.product_attr_value) product_attribute_value,
 qp_qp_form_pricing_attr.Get_Attribute (&apos;QP_ATTR_DEFNS_PRICING&apos;,qpa.pricing_attribute_context,qpa.pricing_attribute) pricing_attribute,
 qpa.comparison_operator_code pricing_attribute_operator,
 qpa.pricing_attr_value_from pricing_attribute_value_from,
 qpa.pricing_attr_value_to pricing_attribute_value_to,
 qpa.product_uom_code pricing_attribute_buy_uom,
 xxen_util.client_time(qpa.creation_date) creation_date,
 xxen_util.user_name(qpa.created_by,&apos;N&apos;) created_by,
 xxen_util.client_time(qpa.last_update_date) last_update_date,
 xxen_util.user_name(qpa.last_updated_by,&apos;N&apos;) last_updated_by,
 qpa.list_line_id list_line_id,
 qpa.list_header_id list_header_id
 from
  qp_pricing_attributes qpa
 where
 nvl(qpa.pricing_attribute_context, &apos;VOLUME&apos;) &lt;&gt; &apos;VOLUME&apos; and
 ( qpa.pricing_attribute_context != &apos;PRICING ATTRIBUTE&apos; or
   (qpa.pricing_attribute_context = &apos;PRICING ATTRIBUTE&apos; and qpa.pricing_attribute != &apos;PRICING_ATTRIBUTE11&apos;)
 )
)
--
-- Main Query Starts Here
--
select
x.*
from
(
 -- Q1 Pricing Agreements and Lines
 select
 -- agreement
 qpa.agreement_name,
 qpa.agreement_num,
 qpa.revision,
 qpa.revision_date,
 qpa.revision_reason,
 qpa.start_date_active,
 qpa.end_date_active,
 qpa.customer,
 qpa.customer_number,
 qpa.agreement_type,
 qpa.agreement_contact,
 qpa.salesrep,
 qpa.purchase_order_num,
 qpa.signature_date,
 qpa.agreement_source,
 -- pricing
 qpa.price_list_type,
 qpa.price_list,
 qpa.currency_code,
 qpa.multi_currency_conversion,
 qpa.rounding_factor,
 qpa.description,
 qpa.ship_method_code,
 qpa.freight_terms,
 qpa.comments,
 -- Payment
 qpa.term,
 qpa.invoice_name,
 qpa.address1,
 qpa.address2,
 qpa.address3,
 qpa.invoice_contact,
 qpa.accounting_rule,
 qpa.invoicing_rule,
 qpa.override_accounting_rule,
 qpa.override_invoicing_rule,
 -- agreement lines
 qll.line_type,
 qll.list_line_no,
 qll.customer_item,
 qll.address,
 qll.address_category,
 qll.product_value,
 qll.product_description,
 qll.uom,
 qll.primary_uom_flag,
 qll.price_break_type,
 qll.application_method,
 --qll.accumulation_attribute,
 qll.break_uom,
 qll.break_uom_attribute,
 qll.value,
 qll.dynamic_formula,
 qll.statis_formula,
 qll.line_start_date,
 qll.line_end_date,
 qll.precedence,
 qll.line_comments,
 qll.line_revsion,
 qll.line_revision_reason,
 qll.line_revision_date,
 -- price breaks
 qpb.price_break_value_from,
 qpb.price_break_value_to,
 qpb.price_break_value,
 qpb.price_break_formula,
 qpb.price_break_application_method,
 qpb.price_break_benefit_qty,
 qpb.price_break_benefit_uom,
 qpb.price_break_accrual_conv_rate,
 -- pricing attributes
 qpat.product_attribute,
 qpat.product_attribute_value,
 qpat.pricing_attribute,
 qpat.pricing_attribute_operator,
 qpat.pricing_attribute_value_from,
 qpat.pricing_attribute_value_to,
 qpat.pricing_attribute_buy_uom,
 -- dff
 qpa.agreement_dff_context,
 qpa.agreement_attribute1,
 qpa.agreement_attribute2,
 qpa.agreement_attribute3,
 qpa.agreement_attribute4,
 qpa.agreement_attribute5,
 qpa.agreement_attribute6,
 qpa.agreement_attribute7,
 qpa.agreement_attribute8,
 qpa.agreement_attribute9,
 qpa.agreement_attribute10,
 qpa.agreement_attribute11,
 qpa.agreement_attribute12,
 qpa.agreement_attribute13,
 qpa.agreement_attribute14,
 qpa.agreement_attribute15,
 qll.line_dff_context,
 qll.line_attribue1,
 qll.line_attribue2,
 qll.line_attribue3,
 qll.line_attribue4,
 qll.line_attribue5,
 qll.line_attribue6,
 qll.line_attribue7,
 qll.line_attribue8,
 qll.line_attribue9,
 qll.line_attribue10,
 qll.line_attribue11,
 qll.line_attribue12,
 qll.line_attribue13,
 qll.line_attribue14,
 qll.line_attribue15,
 -- audit
 qpa.agreement_created_by,
 qpa.agreement_creation_date,
 qpa.agreement_last_updated_by,
 qpa.agreement_last_update_date,
 qll.created_by,
 qll.creation_date,
 qll.last_updated_by,
 qll.last_update_date,
 -- ids
 qpa.agreement_id,
 qpa.price_list_id,
 qll.list_line_id,
 --
 1 sort_order
 from
 qpa,
 qll,
 qpb,
 qpat
 where
 qpa.price_list_id = qll.list_header_id (+) and
 qpa.price_list_id = qll.pa_list_header_id (+) and
 nvl2(qll.list_line_id,-1,-1) = qpb.parent_list_line_id (+) and
 nvl2(qll.list_line_id,-1,-1) = qpat.list_line_id (+)
 union all
 -- Q2 Price Breaks
 select
 -- agreement
 qpa.agreement_name,
 qpa.agreement_num,
 qpa.revision,
 qpa.revision_date,
 qpa.revision_reason,
 qpa.start_date_active,
 qpa.end_date_active,
 qpa.customer,
 qpa.customer_number,
 qpa.agreement_type,
 qpa.agreement_contact,
 qpa.salesrep,
 qpa.purchase_order_num,
 qpa.signature_date,
 qpa.agreement_source,
 -- pricing
 qpa.price_list_type,
 qpa.price_list,
 qpa.currency_code,
 qpa.multi_currency_conversion,
 qpa.rounding_factor,
 qpa.description,
 qpa.ship_method_code,
 qpa.freight_terms,
 qpa.comments,
 -- Payment
 qpa.term,
 qpa.invoice_name,
 qpa.address1,
 qpa.address2,
 qpa.address3,
 qpa.invoice_contact,
 qpa.accounting_rule,
 qpa.invoicing_rule,
 qpa.override_accounting_rule,
 qpa.override_invoicing_rule,
 -- agreement lines
 &apos;Price Break&apos; line_type,
 qll.list_line_no,
 qll.customer_item,
 qll.address,
 qll.address_category,
 qll.product_value,
 qll.product_description,
 qll.uom,
 qll.primary_uom_flag,
 qll.price_break_type,
 qll.application_method,
 --qll.accumulation_attribute,
 qll.break_uom,
 qll.break_uom_attribute,
 qll.value,
 qll.dynamic_formula,
 qll.statis_formula,
 qll.line_start_date,
 qll.line_end_date,
 qll.precedence,
 qll.line_comments,
 qll.line_revsion,
 qll.line_revision_reason,
 qll.line_revision_date,
 -- price breaks
 qpb.price_break_value_from,
 qpb.price_break_value_to,
 qpb.price_break_value,
 qpb.price_break_formula,
 qpb.price_break_application_method,
 qpb.price_break_benefit_qty,
 qpb.price_break_benefit_uom,
 qpb.price_break_accrual_conv_rate,
 -- pricing attributes
 qpat.product_attribute,
 qpat.product_attribute_value,
 qpat.pricing_attribute,
 qpat.pricing_attribute_operator,
 qpat.pricing_attribute_value_from,
 qpat.pricing_attribute_value_to,
 qpat.pricing_attribute_buy_uom,
 -- dff
 qpa.agreement_dff_context,
 qpa.agreement_attribute1,
 qpa.agreement_attribute2,
 qpa.agreement_attribute3,
 qpa.agreement_attribute4,
 qpa.agreement_attribute5,
 qpa.agreement_attribute6,
 qpa.agreement_attribute7,
 qpa.agreement_attribute8,
 qpa.agreement_attribute9,
 qpa.agreement_attribute10,
 qpa.agreement_attribute11,
 qpa.agreement_attribute12,
 qpa.agreement_attribute13,
 qpa.agreement_attribute14,
 qpa.agreement_attribute15,
 qll.line_dff_context,
 qll.line_attribue1,
 qll.line_attribue2,
 qll.line_attribue3,
 qll.line_attribue4,
 qll.line_attribue5,
 qll.line_attribue6,
 qll.line_attribue7,
 qll.line_attribue8,
 qll.line_attribue9,
 qll.line_attribue10,
 qll.line_attribue11,
 qll.line_attribue12,
 qll.line_attribue13,
 qll.line_attribue14,
 qll.line_attribue15,
 -- audit
 qpa.agreement_created_by,
 qpa.agreement_creation_date,
 qpa.agreement_last_updated_by,
 qpa.agreement_last_update_date,
 qpb.created_by,
 qpb.creation_date,
 qpb.last_updated_by,
 qpb.last_update_date,
 -- ids
 qpa.agreement_id,
 qpa.price_list_id,
 qll.list_line_id,
 --
 2 sort_order
 from
 qpa,
 qll,
 qpb,
 qpat
 where
 :p_show_price_breaks = &apos;Y&apos; and
 qpa.price_list_id = qll.list_header_id and
 qpa.price_list_id = qll.pa_list_header_id and
 qll.list_line_id = qpb.parent_list_line_id and
 nvl2(qll.list_line_id,-1,-1) = qpat.list_line_id (+)
 union all
 -- Q3 Pricing Attributes
 select
 -- agreement
 qpa.agreement_name,
 qpa.agreement_num,
 qpa.revision,
 qpa.revision_date,
 qpa.revision_reason,
 qpa.start_date_active,
 qpa.end_date_active,
 qpa.customer,
 qpa.customer_number,
 qpa.agreement_type,
 qpa.agreement_contact,
 qpa.salesrep,
 qpa.purchase_order_num,
 qpa.signature_date,
 qpa.agreement_source,
 -- pricing
 qpa.price_list_type,
 qpa.price_list,
 qpa.currency_code,
 qpa.multi_currency_conversion,
 qpa.rounding_factor,
 qpa.description,
 qpa.ship_method_code,
 qpa.freight_terms,
 qpa.comments,
 -- Payment
 qpa.term,
 qpa.invoice_name,
 qpa.address1,
 qpa.address2,
 qpa.address3,
 qpa.invoice_contact,
 qpa.accounting_rule,
 qpa.invoicing_rule,
 qpa.override_accounting_rule,
 qpa.override_invoicing_rule,
 -- agreement lines
 &apos;Pricing Attribute&apos; line_type,
 qll.list_line_no,
 qll.customer_item,
 qll.address,
 qll.address_category,
 qll.product_value,
 qll.product_description,
 qll.uom,
 qll.primary_uom_flag,
 qll.price_break_type,
 qll.application_method,
 --qll.accumulation_attribute,
 qll.break_uom,
 qll.break_uom_attribute,
 qll.value,
 qll.dynamic_formula,
 qll.statis_formula,
 qll.line_start_date,
 qll.line_end_date,
 qll.precedence,
 qll.line_comments,
 qll.line_revsion,
 qll.line_revision_reason,
 qll.line_revision_date,
 -- price breaks
 qpb.price_break_value_from,
 qpb.price_break_value_to,
 qpb.price_break_value,
 qpb.price_break_formula,
 qpb.price_break_application_method,
 qpb.price_break_benefit_qty,
 qpb.price_break_benefit_uom,
 qpb.price_break_accrual_conv_rate,
 -- pricing attributes
 qpat.product_attribute,
 qpat.product_attribute_value,
 qpat.pricing_attribute,
 qpat.pricing_attribute_operator,
 qpat.pricing_attribute_value_from,
 qpat.pricing_attribute_value_to,
 qpat.pricing_attribute_buy_uom,
 -- dff
 qpa.agreement_dff_context,
 qpa.agreement_attribute1,
 qpa.agreement_attribute2,
 qpa.agreement_attribute3,
 qpa.agreement_attribute4,
 qpa.agreement_attribute5,
 qpa.agreement_attribute6,
 qpa.agreement_attribute7,
 qpa.agreement_attribute8,
 qpa.agreement_attribute9,
 qpa.agreement_attribute10,
 qpa.agreement_attribute11,
 qpa.agreement_attribute12,
 qpa.agreement_attribute13,
 qpa.agreement_attribute14,
 qpa.agreement_attribute15,
 qll.line_dff_context,
 qll.line_attribue1,
 qll.line_attribue2,
 qll.line_attribue3,
 qll.line_attribue4,
 qll.line_attribue5,
 qll.line_attribue6,
 qll.line_attribue7,
 qll.line_attribue8,
 qll.line_attribue9,
 qll.line_attribue10,
 qll.line_attribue11,
 qll.line_attribue12,
 qll.line_attribue13,
 qll.line_attribue14,
 qll.line_attribue15,
 -- audit
 qpa.agreement_created_by,
 qpa.agreement_creation_date,
 qpa.agreement_last_updated_by,
 qpa.agreement_last_update_date,
 qpat.created_by,
 qpat.creation_date,
 qpat.last_updated_by,
 qpat.last_update_date,
 -- ids
 qpa.agreement_id,
 qpa.price_list_id,
 qll.list_line_id,
 --
 3 sort_order
 from
 qpa,
 qll,
 qpb,
 qpat
 where
 :p_show_pricing_attributes = &apos;Y&apos; and
 qpa.price_list_id = qll.list_header_id and
 qpa.price_list_id = qll.pa_list_header_id and
 nvl2(qll.list_line_id,-1,-1) = qpb.parent_list_line_id (+) and
 qll.list_line_id = qpat.list_line_id
) x
order by
x.agreement_name,
x.list_line_no,
x.sort_order,
x.price_break_value_from,
x.price_break_value</SQL_TEXT>
  <ENABLED>Y</ENABLED>
  <REPORT_TRANSLATIONS>
   <REPORT_TRANSLATIONS_ROW>
    <LANGUAGE>US</LANGUAGE>
    <REPORT_NAME>QP Pricing Agreements</REPORT_NAME>
    <DESCRIPTION>Report detailing QP Pricing Agreements</DESCRIPTION>
   </REPORT_TRANSLATIONS_ROW>
  </REPORT_TRANSLATIONS>
  <CATEGORY_ASSIGNMENTS>
   <CATEGORY_ASSIGNMENTS_ROW>
    <CATEGORY>Enginatics</CATEGORY>
   </CATEGORY_ASSIGNMENTS_ROW>
  </CATEGORY_ASSIGNMENTS>
  <ANCHORS>
   <ANCHORS_ROW>
    <ANCHOR>1=1</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>2=2</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_show_price_breaks</ANCHOR>
   </ANCHORS_ROW>
   <ANCHORS_ROW>
    <ANCHOR>:p_show_pricing_attributes</ANCHOR>
   </ANCHORS_ROW>
  </ANCHORS>
  <PARAMETERS>
   <PARAMETERS_ROW>
    <SORT_ORDER>1</SORT_ORDER>
    <DISPLAY_SEQUENCE>10</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.agreement_id=:p_agreement_name_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
opcv.agreement_id id,
opcv.agreement_name value,
opcv.agreement_num || &apos;/&apos; || opcv.revision ||  &apos; - &apos; || opcv.agreement_type description 
from
oe_pricing_contracts_v opcv
where
opcv.price_list_id in 
(select 
 qslhv.list_header_id
 from
 qp_secu_list_headers_v qslhv
 where qslhv.list_type_code in (&apos;PRL&apos;,&apos;AGR&apos;) and
 qslhv.view_flag = &apos;Y&apos;
)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Agreement Name</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>2</SORT_ORDER>
    <DISPLAY_SEQUENCE>20</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.agreement_id=:p_agreement_num_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
opcv.agreement_id id,
opcv.agreement_num value,
opcv.agreement_name || &apos;/&apos; || opcv.revision ||  &apos; - &apos; || opcv.agreement_type description 
from
oe_pricing_contracts_v opcv
where
opcv.agreement_num is not null and
price_list_id in 
(select 
 qslhv.list_header_id
 from
 qp_secu_list_headers_v qslhv
 where qslhv.list_type_code in (&apos;PRL&apos;,&apos;AGR&apos;) and
 qslhv.view_flag = &apos;Y&apos;
) and
( :$flex$.agreement_name is null or xxen_util.contains(:$flex$.agreement_name,opcv.agreement_id) = &apos;Y&apos;)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Agreement Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>3</SORT_ORDER>
    <DISPLAY_SEQUENCE>30</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.revision=:p_revision</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
opcv.revision value,
opcv.revision_date || &apos; - &apos; || xxen_util.meaning(opcv.revision_reason_code,&apos;QP_REVISION_REASON_CODE&apos;,661)  description 
from
oe_pricing_contracts_v opcv
where
( opcv.agreement_id = :$flex$.agreement_name or
  opcv.agreement_id = :$flex$.agreement_number
)
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Revision</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>4</SORT_ORDER>
    <DISPLAY_SEQUENCE>40</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.agreement_type=xxen_util.meaning(:p_agreement_type, &apos;QP_AGREEMENT_TYPE&apos;,661)</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select 
lookup_code id, 
meaning value,
null description
from 
qp_lookups
where 
lookup_type = &apos;QP_AGREEMENT_TYPE&apos; and 
enabled_flag = &apos;Y&apos; and 
trunc(sysdate) between trunc(nvl(start_date_active, sysdate))  and trunc(nvl(end_date_active, sysdate))
order by value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Agreement Type</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>5</SORT_ORDER>
    <DISPLAY_SEQUENCE>50</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.price_list_id=:p_price_list_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct 
qslhv.list_header_id id, 
qslhv.name value, 
qslhv.description description
from 
qp_secu_list_headers_vl qslhv
where 
trunc(sysdate) between nvl(qslhv.start_date_active, sysdate-1) and nvl(qslhv.end_date_active, sysdate+1) and
qslhv.list_type_code in (&apos;AGR&apos;,&apos;PRL&apos;) and
(qslhv.list_source_code &lt;&gt; &apos;BSO&apos; or qslhv.list_source_code is null) and
qslhv.view_flag = &apos;Y&apos;</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Price List</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>6</SORT_ORDER>
    <DISPLAY_SEQUENCE>60</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.invoice_to_customer_id=:p_invoice_to_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select 
hca.cust_account_id id,
hp.party_name value,
hca.account_number description
from 
hz_cust_accounts hca,
hz_parties hp
where
hca.party_id = hp.party_id and
hca.status = &apos;A&apos; 
order by 
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Invoice To</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>7</SORT_ORDER>
    <DISPLAY_SEQUENCE>70</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.invoice_contact=:p_invoice_contact</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
decode(substrb(party.person_first_name,1,40), &apos;&apos;,substrb(party.person_last_name,1,50),substrb(party.person_last_name,1,50)||&apos;, &apos;||substrb(party.person_first_name,1,40)) value,
null description
from
hz_cust_account_roles acct_role,
hz_parties party,
hz_relationships rel,
hz_org_contacts org_cont,
hz_parties rel_party,
hz_contact_points cont_point ,
hz_role_responsibility role_res
where
acct_role.party_id = rel.party_id
and acct_role.role_type = &apos;CONTACT&apos;
and org_cont.party_relationship_id = rel.relationship_id
and rel.subject_id = party.party_id
and rel.party_id = rel_party.party_id
and rel.subject_table_name = &apos;HZ_PARTIES&apos;
and rel.object_table_name = &apos;HZ_PARTIES&apos;
and rel.directional_flag = &apos;F&apos;
and acct_role.party_id = cont_point.owner_table_id(+)
and cont_point.owner_table_name(+) = &apos;HZ_PARTIES&apos;
and cont_point.contact_point_type(+) not in ( &apos;EDI&apos;, &apos;EMAIL&apos;, &apos;WEB&apos;)
and acct_role.cust_account_role_id = role_res.cust_account_role_id(+)
and nvl(role_res.responsibility_type,&apos;BILL_TO&apos;) = &apos;BILL_TO&apos;
and nvl(cont_point.status(+),&apos;A&apos;) = &apos;A&apos;
and nvl(cont_point.primary_flag(+) ,&apos;N&apos;) = &apos;Y&apos;
and acct_role.status = &apos;A&apos;
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Invoice Contact</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>8</SORT_ORDER>
    <DISPLAY_SEQUENCE>80</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.sold_to_org_id=:p_customer_name_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select 
hca.cust_account_id id,
hp.party_name value,
hca.account_number description
from 
hz_cust_accounts hca,
hz_parties hp
where
hca.party_id = hp.party_id and
hca.status = &apos;A&apos; 
order by 
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Customer</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>9</SORT_ORDER>
    <DISPLAY_SEQUENCE>90</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.sold_to_org_id=:p_customer_number_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select 
hca.cust_account_id id,
hca.account_number value,
hp.party_name description
from 
hz_cust_accounts hca,
hz_parties hp
where
hca.party_id = hp.party_id and
hca.status = &apos;A&apos; 
order by 
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Customer Number</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>10</SORT_ORDER>
    <DISPLAY_SEQUENCE>100</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.agreement_contact=:p_agreement_contact</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select distinct
decode(substrb(party.person_first_name,1,40), &apos;&apos;,substrb(party.person_last_name,1,50),substrb(party.person_last_name,1,50)||&apos;,&apos;||substrb(party.person_first_name,1,40)) value,
null description
from
hz_cust_account_roles acct_role,
hz_parties party,
hz_org_contacts org_cont,
hz_parties rel_party,
hz_relationships rel
where
acct_role.party_id =rel.party_id
and acct_role.role_type=&apos;CONTACT&apos;
and org_cont.party_relationship_id=rel.relationship_id
and rel.subject_id=party.party_id
and rel.party_id=rel_party.party_id
and rel.subject_table_name=&apos;HZ_PARTIES&apos;
and rel.object_table_name=&apos;HZ_PARTIES&apos;
and rel.directional_flag=&apos;F&apos;
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Contact</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>11</SORT_ORDER>
    <DISPLAY_SEQUENCE>110</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>opcv.salesrep_id=:p_salesrep_id</SQL_TEXT>
    <PARAMETER_TYPE_DSP>LOV custom</PARAMETER_TYPE_DSP>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select
salesrep_id id,  
name value, 
salesrep_number description 
from 
ra_salesreps 
where 
nvl(status,&apos;A&apos;) = &apos;A&apos; and 
salesrep_id not in( -1,-2) and 
sysdate between nvl(start_date_active, sysdate) and nvl(end_date_active, sysdate) 
order by 
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Salesperson</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>12</SORT_ORDER>
    <DISPLAY_SEQUENCE>115</DISPLAY_SEQUENCE>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>qllv.product_attr_val_disp=:p_item and qllv.product_attribute_context = &apos;ITEM&apos; and qllv.product_attribute = &apos;PRICING_ATTRIBUTE1&apos;</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
msiv.concatenated_segments value,
msiv.description description
from
mtl_system_items_vl msiv
where
msiv.organization_id=qp_util.get_item_validation_org
order by
value</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Item</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>13</SORT_ORDER>
    <DISPLAY_SEQUENCE>120</DISPLAY_SEQUENCE>
    <ANCHOR>1=1</ANCHOR>
    <SQL_TEXT>trunc(:p_active_date) between nvl(opcv.start_date_active,trunc(:p_active_date)) and nvl(opcv.end_date_active,trunc(:p_active_date))</SQL_TEXT>
    <PARAMETER_TYPE_DSP>Date</PARAMETER_TYPE_DSP>
    <DEFAULT_VALUE>trunc(sysdate)</DEFAULT_VALUE>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Valid on Date</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>14</SORT_ORDER>
    <ANCHOR>2=2</ANCHOR>
    <SQL_TEXT>trunc(:p_active_date) between nvl(qllv.start_date_active,trunc(:p_active_date)) and nvl(qllv.end_date_active,trunc(:p_active_date))</SQL_TEXT>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Valid on Date</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>15</SORT_ORDER>
    <DISPLAY_SEQUENCE>130</DISPLAY_SEQUENCE>
    <ANCHOR>:p_show_price_breaks</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Display Price Breaks</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
   <PARAMETERS_ROW>
    <SORT_ORDER>16</SORT_ORDER>
    <DISPLAY_SEQUENCE>140</DISPLAY_SEQUENCE>
    <ANCHOR>:p_show_pricing_attributes</ANCHOR>
    <PARAMETER_TYPE_DSP>LOV</PARAMETER_TYPE_DSP>
    <LOV_NAME>Yes</LOV_NAME>
    <LOV_GUID>8E2FF36EDEA679D2E0530100007F1FF2</LOV_GUID>
    <VALIDATE_FROM_LIST_DSP>Y</VALIDATE_FROM_LIST_DSP>
    <LOV_QUERY_DSP>select &apos;Y&apos; id, xxen_util.meaning(&apos;Y&apos;,&apos;YES_NO&apos;,0) value, null description from dual</LOV_QUERY_DSP>
    <PARAMETER_TRANSLATIONS>
     <PARAMETER_TRANSLATIONS_ROW>
      <LANGUAGE>US</LANGUAGE>
      <PARAMETER_NAME>Display Pricing Attributes</PARAMETER_NAME>
     </PARAMETER_TRANSLATIONS_ROW>
    </PARAMETER_TRANSLATIONS>
   </PARAMETERS_ROW>
  </PARAMETERS>
  <PARAMETER_DEPENDENCIES>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.agreement_name</FLEX_BIND>
    <PARAMETER_NAME>Agreement Name</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Agreement Number</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.agreement_name</FLEX_BIND>
    <PARAMETER_NAME>Agreement Name</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Revision</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
   <PARAMETER_DEPENDENCIES_ROW>
    <FLEX_BIND>:$flex$.agreement_number</FLEX_BIND>
    <PARAMETER_NAME>Agreement Number</PARAMETER_NAME>
    <DEPENDENT_PARAMETER_NAME>Revision</DEPENDENT_PARAMETER_NAME>
   </PARAMETER_DEPENDENCIES_ROW>
  </PARAMETER_DEPENDENCIES>
  <TEMPLATES>
  </TEMPLATES>
  <DEFAULT_TEMPLATES>
  </DEFAULT_TEMPLATES>
  <UPLOAD_COLUMNS>
  </UPLOAD_COLUMNS>
  <UPLOAD_PARAMETERS>
  </UPLOAD_PARAMETERS>
  <UPLOAD_SQLS>
  </UPLOAD_SQLS>
  <UPLOAD_DEPENDENCIES>
  </UPLOAD_DEPENDENCIES>
 </REPORTS_ROW>
</REPORTS>
</ROOT>
