AR_RECPAY4_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT C.SETID , ' ' , I.CUST_ID , ' ' , I.PAYMENT_ID , %DecMult((SUM(I.ENTRY_AMT)), - 1) , P.PAYMENT_CURRENCY , D.RECEIVED_DT , P.ACCOUNTING_DT , I.DEPOSIT_BU , I.DEPOSIT_ID , I.PAYMENT_SEQ_NUM , 5 , I.POSTED_PI FROM PS_DEPOSIT_CONTROL D , PS_PAYMENT P , PS_ITEM_ACTIVITY I , PS_SET_CNTRL_REC C WHERE D.DEPOSIT_BU = P.DEPOSIT_BU AND D.DEPOSIT_ID = P.DEPOSIT_ID AND P.PAYMENT_STATUS = 'C' AND P.MISC_PAYMENT = 'N' AND P.GROUP_ID = I.GROUP_ID AND P.DEPOSIT_BU = I.DEPOSIT_BU AND P.DEPOSIT_ID = I.DEPOSIT_ID AND P.PAYMENT_SEQ_NUM = I.PAYMENT_SEQ_NUM AND I.GROUP_TYPE = 'P' AND I.ENTRY_USE_ID NOT IN ('WS-09') AND C.SETCNTRLVALUE = I.BUSINESS_UNIT AND C.RECNAME = 'CUSTOMER' GROUP BY C.SETID, I.CUST_ID, I.PAYMENT_ID, P.PAYMENT_CURRENCY, D.RECEIVED_DT, P.ACCOUNTING_DT, I.DEPOSIT_BU, I.DEPOSIT_ID, I.PAYMENT_SEQ_NUM, I.POSTED_PI |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
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 | TRAN_TYPE | Character(30) | VARCHAR2(30) NOT NULL | Transaction Type |
5 | TRAN_ID | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
6 | AR_AMOUNT_TITLE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
7 | AR_CURRENCY_TITLE | Character(3) | VARCHAR2(3) NOT NULL | Currency |
8 | RECEIVED_DT | Date(10) | DATE | Specifies the date that a group of pending items was received by the organization. This date may be earlier or the same as the date that the items were actually entered into the system (ENTRY_DT). |
9 | ACCOUNTING_DT | Date(10) | DATE | The accounting entry construction date for a given transaction (a generic field that crosses multiple |
10 | DEPOSIT_BU | Character(5) | VARCHAR2(5) NOT NULL | Identifies the business unit to which a deposit is posted. |
11 | 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. |
12 | 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. |
13 | SEQUENCE_NBR | Number(2,0) | SMALLINT NOT NULL | Sequence Number |
14 | POSTED_PI | Number(10,0) | DECIMAL(10) NOT NULL | Last Post Process Instance |