CUST_PN_PYD_VW1(SQL View) |
Index Back |
---|
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), C.DECIMAL_POSITIONS) , B.CURRENCY_CD , B.ACCOUNTING_DT , B.PAYMENT_STATUS FROM PS_PAYMENT_ID_ITEM A , PS_PAYMENT B , PS_CURRENCY_CD_TBL C WHERE A.DEPOSIT_BU = B.DEPOSIT_BU AND A.DEPOSIT_ID = B.DEPOSIT_ID AND A.PAYMENT_SEQ_NUM = B.PAYMENT_SEQ_NUM AND B.PAYMENT_STATUS IN ('E','W','A') AND C.CURRENCY_CD = B.CURRENCY_CD AND %EffdtCheck(CURRENCY_CD_TBL C1, C,%CURRENTDATEIN) AND NOT EXISTS ( SELECT 'X' FROM PS_PAYMENT_ITEM WHERE DEPOSIT_BU = B.DEPOSIT_BU AND DEPOSIT_ID = B.DEPOSIT_ID AND PAYMENT_SEQ_NUM= B.PAYMENT_SEQ_NUM) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
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. |
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 |