Item Price Related Queries Executed when VPN Number is Entered in Item Ticket Screen

(Doc ID 2152830.1)

Last updated on JUNE 28, 2016

Applies to:

Oracle Retail Store Inventory Management - Version 14.1 and later
Information in this document applies to any platform.


In Oracle Retail Store Inventory Management (SIM) version 14.1, When a VPN (Vendor Product Number) is entered in Item Ticket screen in SIM PC application, there is a pop up displayed with Item ID and description.
At this point, in SIM server application a query is executed which is not needed. This is causing unnecessary delay and using resources and time for SIM application database.


Steps to Reproduce:

1. Login to SIM PC application;
2. Click on Print -> Item Ticket -> Create;
3. Enter a VPN number in this screen and tab out from item number field

There is a pop up window displayed in the screen which has item ID and description. At this point in the SIM server application, the below mentioned SQL query is being executed which has price and other information about the items.

The price related details are not needed in this screen for all the items.

SELECT distinct ITEM_ID, SHORT_DESCRIPTION, LONG_DESCRIPTION, STORE_ID, PRICE_TYPE, EFFECTIVE_DATE,PRICE_VALUE AS CURRENT_PRICE_VALUE, PRICE_CURRENCY AS CURRENT_PRICE_CURRENCY, SELLING_UNIT_OF_MEASURE, MULTI_UNITS, MULTI_UNIT_RETAIL, MULTI_UNIT_RETAIL_CURRENCY, MULTI_UNIT_UOM, PROMOTION_TYPE, STATUS FROM ( select item_price_v.ITEM_PRICE_ID ,item_price_v.EXTERNAL_ID , item_price_v.ITEM_ID ,item_price_v.SHORT_DESCRIPTION ,item_price_v.LONG_DESCRIPTION , item_price_v.STORE_ID , item_price_v.PRICE_TYPE ,item_price_v.EFFECTIVE_DATE ,item_price_v.END_DATE , item_price_v.PRICE_VALUE , item_price_v.PRICE_CURRENCY , item_price_v.SELLING_UNIT_OF_MEASURE , item_price_v.MULTI_UNITS , item_price_v.MULTI_UNIT_RETAIL , item_price_v.MULTI_UNIT_RETAIL_CURRENCY , item_price_v.MULTI_UNIT_UOM , item_price_v.PROMOTION_TYPE , item_price_v.STATUS ,RANK() OVER (PARTITION BY item_price_v.ITEM_ID, item_price_v.STORE_ID ORDER BY decode(item_price_v.PRICE_TYPE,201,decode(apply_to_code,0,3,1),200,2,item_price_v.PRICE_TYPE), item_price_v.EFFECTIVE_DATE DESC, item_price_v.UPDATE_DATE DESC ) rank_num from item_price_v WHERE EFFECTIVE_DATE <= ? AND NVL(END_DATE, ? + 1) >= ? AND item_price_v.CLEARANCE_RESET <> ? AND item_price_v.STORE_ID = ? AND item_price_v.ITEM_ID in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) AND item_price_v.STATUS IN ( 3,2,5)) WHERE RANK_NUM = 1


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms