CR_CHK_CORP_VW

(SQL View)
Index Back

SELECT CUST.PARENT_SETID , CUST.PARENT_CUST_ID , CUST.CORPORATE_SETID , CUST.CORPORATE_CUST_ID , CUST.SETID , CUST.CUST_ID , CUST.NAME1 , 0 , 0 FROM PS_CUSTOMER CUST WHERE CUST.CUST_STATUS IN ('A', 'I') AND (CUST.BILL_TO_FLG = 'Y' OR (CUST.SETID = CUST.CORPORATE_SETID AND CUST.CUST_ID = CUST.CORPORATE_CUST_ID AND CUST.BILL_TO_FLG <> 'Y' ))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PARENT_SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 PARENT_CUST_ID Character(15) VARCHAR2(15) NOT NULL Customer ID
3 CORP_SETID Character(5) VARCHAR2(5) NOT NULL Corp SetID
4 CORP_CUST_ID Character(15) VARCHAR2(15) NOT NULL Corporate Customer
5 CUSTOMER_SETID Character(5) VARCHAR2(5) NOT NULL Customer SetID
6 CUSTOMER_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
7 CUST_NAME Character(40) VARCHAR2(40) NOT NULL Name
8 CREDIT_USED Signed Number(28,3) DECIMAL(26,3) NOT NULL Credit Used
9 LEVELNUM Number(5,0) INTEGER NOT NULL Level Number