AR_CM_PNDPYD_VW

(SQL View)
Index Back

Pending Payments Detail View

Pending payement detail view

SELECT A.BUSINESS_UNIT , A.CUST_ID , B.DEPOSIT_BU , B.DEPOSIT_ID , B.PAYMENT_SEQ_NUM , B.PAYMENT_ID , B.PAYMENT_AMT , B.PAYMENT_CURRENCY , %Round(%DecMult((%DecDiv(B.PAYMENT_AMT, B.PYMT_RATE_DIV)), B.PYMT_RATE_MULT), 3) , B.CURRENCY_CD , B.ACCOUNTING_DT , B.PAYMENT_STATUS , B.PYMT_RT_TYPE FROM PS_PAYMENT_ITEM A , PS_PAYMENT B , PS_SET_CNTRL_REC C WHERE A.BUSINESS_UNIT <> ' ' AND 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 A.ITEM_SELECTED= 'Y' AND C.SETCNTRLVALUE = A.BUSINESS_UNIT AND C.RECNAME = 'CUSTOMER' AND (B.GROUP_ID = ' ' OR (B.GROUP_ID <> ' ' AND EXISTS ( SELECT 'X' FROM PS_GROUP_CONTROL WHERE GROUP_BU = B.DEPOSIT_BU AND GROUP_ID = B.GROUP_ID AND POST_STATUS <> 'C' ) ) OR (B.GROUP_ID <> ' ' AND NOT EXISTS ( SELECT 'X' FROM PS_GROUP_CONTROL WHERE GROUP_BU = B.DEPOSIT_BU AND GROUP_ID = B.GROUP_ID ) ) ) AND B.PAYMENT_STATUS IN ('E', 'W', 'A')

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

Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

Prompt Table: SP_BUARDS_NONVW

2 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.

Prompt Table: CUST_SRCH_VW
Set Control Field: BUSINESS_UNIT

3 DEPOSIT_BU Character(5) VARCHAR2(5) NOT NULL Identifies the business unit to which a deposit is posted.
4 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.
5 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.
6 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.
7 PAYMENT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the amount of a customer payment.
8 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.
9 PAY_AMT_BASE Signed Number(28,3) DECIMAL(26,3) NOT NULL Payment Amt - Base Curr
10 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
11 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
12 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
13 PYMT_RT_TYPE Character(5) VARCHAR2(5) NOT NULL Specifies the type of exchange rate to be used when the currency of a customer payment is converted to the base currency of a business unit. The exchange rate type is also called the market rate type. Examples are spot rate current rate and official rate.