SCN_ORD_LINE_VW

(SQL View)
Index Back

Sales Contract Order Line

This is a view of ORD_LINE. It's created so that a unique fieldname can be assigned to CNTRCT_ID. This view is used in a join for some Sales Contracts dynamic views to prevent ambiguous column name.

SELECT A.BUSINESS_UNIT ,A.ORDER_NO ,A.ORDER_INT_LINE_NO ,A.LIST_PRICE ,A.LIST_PRICE_BASE ,A.PRICE ,A.PRICE_BASE ,A.QTY_ORDERED ,A.UNIT_COST ,A.UNIT_OF_MEASURE ,A.CNTRCT_ID ,A.CNTRCT_LINE_NBR ,A.CNTRCT_SCHED_NBR FROM PS_ORD_LINE A WHERE A.ORD_LINE_STATUS <> 'X' AND A.CNTRCT_LINE_NBR > 0

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: BUS_UNIT_TBL_OM

2 ORDER_NO Character(10) VARCHAR2(10) NOT NULL Identifies a customer order number that appears as a reference on a receivables pending item. Date Initials Issue Description 022701 mv SP2 (F-CJORGENS-3) CSR Desktop
3 ORDER_INT_LINE_NO Number(5,0) INTEGER NOT NULL Order Line

Default Value: BUS_UNIT_TBL_OM.ORD_LINE_INCREMENT

4 LIST_PRICE Signed Number(17,4) DECIMAL(15,4) NOT NULL List Price
5 LIST_PRICE_BASE Signed Number(17,4) DECIMAL(15,4) NOT NULL List Price (base)
6 PRICE Signed Number(16,4) DECIMAL(14,4) NOT NULL This is price per unit for calculating the service charge.
7 PRICE_BASE Signed Number(16,4) DECIMAL(14,4) NOT NULL Net Unit Price (base)
8 QTY_ORDERED Signed Number(16,4) DECIMAL(14,4) NOT NULL Order Qty
9 UNIT_COST Signed Number(16,4) DECIMAL(14,4) NOT NULL Unit Cost
10 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage

Prompt Table: PROD_UOM

11 CNTRCT_ID_UNIQUE Character(25) VARCHAR2(25) NOT NULL Contract ID
12 CNTRCT_LINE_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Line Nbr
13 CNTRCT_SCHED_NBR Number(5,0) INTEGER NOT NULL Buying Agreement Schedule