CUSTV_PYPN_VW

(SQL View)
Index Back

Pending Payments View


SELECT C.SETID , A.BUSINESS_UNIT , A.CUST_ID , A.DEPOSIT_BU , A.DEPOSIT_ID , A.PAYMENT_SEQ_NUM , B.PAYMENT_ID , B.PAYMENT_STATUS , B.PAYMENT_AMT , B.PAYMENT_CURRENCY FROM PS_PAYMENT_ID_CUST A , PS_PAYMENT B , PS_CUSTOMER C WHERE A.CUST_ID <> ' ' AND C.SETID = ( SELECT S.SETID FROM PS_SET_CNTRL_REC S WHERE S.RECNAME = 'CUSTOMER' AND ( (A.BUSINESS_UNIT <> ' ' AND S.SETCNTRLVALUE = A.BUSINESS_UNIT ) OR ( A.BUSINESS_UNIT = ' ' AND S.SETCNTRLVALUE = A.DEPOSIT_BU) ) ) AND C.CUST_ID = A.CUST_ID AND A.DEPOSIT_BU = B.DEPOSIT_BU AND A.DEPOSIT_ID = B.DEPOSIT_ID AND A.PAYMENT_SEQ_NUM = B.PAYMENT_SEQ_NUM AND (B.GROUP_ID = ' ' OR (B.GROUP_ID <> ' ' AND NOT EXISTS ( SELECT 'X' FROM PS_GROUP_CONTROL G1 WHERE G1.GROUP_BU = B.DEPOSIT_BU AND G1.GROUP_ID = B.GROUP_ID AND G1.POST_STATUS = 'C' ) ) )

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Prompt Table: SP_SETID_NONVW

2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

Prompt Table: SP_BUARDS_NONVW

3 CUST_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.
4 DEPOSIT_BU Character(5) VARCHAR2(5) NOT NULL Identifies the business unit to which a deposit is posted.
5 DEPOSIT_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies a deposit of customer payments. The deposit ID can be manually assigned or system-generated.
6 PAYMENT_SEQ_NUM Number(6,0) INTEGER NOT NULL Specifies the system-generated sequence number assigned to each payment as it is entered in a deposit.
7 PAYMENT_ID Character(15) VARCHAR2(15) NOT NULL Identifies a customer payment. This is usually a check number but may be some other identifying number.
8 PAYMENT_STATUS Character(1) VARCHAR2(1) NOT NULL Payment Status
A=Applied
B=Bounced
C=Complete
E=Identified - Express
I=Identified
J=Directly Journalled
R=Unposted Direct Journal
U=Unidentified
W=Worksheet
9 PAYMENT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the amount of a customer payment.
10 PAYMENT_CURRENCY Character(3) VARCHAR2(3) NOT NULL Identifies the currency of a customer payment. This is generally the same as the currency specified for the deposit but it can be different.