QP Price Lists

Description

Categories
Enginatics
Repository
GitHub
Master data report showing the setup of price lists including item prices, calculation methods, terms and dates.

SQL 69 lines

Parameters 5

ParameterTypeList of values SQL
Price ListLOV
qlhv.name=:price_list
ItemLOV
qllv.product_attr_value in (select to_char(msiv.inventory_item_id) from mtl_system_items_vl msiv where msiv.concatenated_segments=:item and msiv.organization_id=fnd_profile.value('QP_ORGANIZATION_ID')) and
qllv.product_attribute_context='ITEM' and
qllv.product_attribute='PRICING_ATTRIBUTE1'
Category SetLOV
qllv.product_attr_value in (
select
to_char(mic.inventory_item_id)
from
mtl_category_sets_v mcsv,
mtl_item_categories mic
where
mcsv.category_set_name=:category_set_name and
mcsv.category_set_id=mic.category_set_id and
mic.organization_id=fnd_profile.value('QP_ORGANIZATION_ID')
) and
qllv.product_attribute_context='ITEM' and
qllv.product_attribute='PRICING_ATTRIBUTE1'
CategoryLOV
qllv.product_attr_value in (
select
to_char(mic.inventory_item_id)
from
mtl_item_categories mic,
mtl_category_sets mcs,
mtl_categories_kfv mck
where
mck.concatenated_segments=:category and
mck.structure_id=mcs.structure_id and
mck.category_id=mic.category_id and
mcs.category_set_id=mic.category_set_id and
mic.organization_id=fnd_profile.value('QP_ORGANIZATION_ID')
) and
qllv.product_attribute_context='ITEM' and
qllv.product_attribute='PRICING_ATTRIBUTE1'
Valid on DateDate
:valid_on_date between nvl(qllv.start_date_active,:valid_on_date) and nvl(qllv.end_date_active,:valid_on_date)