AR_CRCARD_D_VW(SQL View) |
Index Back |
---|---|
CC Deleted PaymentAR Credit Card Payments that do not have an INTFC record and do not have a payment record. Used to select credit card payments that are deleted. |
SELECT P.DEPOSIT_BU ,A.PAYMENT_ID ,A.CR_CARD_AUTH_STAT ,A.DEPOSIT_ID ,A.CUST_ID ,A.AMOUNT ,A.CURRENCY_CD ,A.CR_CARD_AUTH_DT ,A.PAYMENT_SEQ_NUM ,%DatePart(ADD_DTTM) ,1 FROM PS_CRCARD_AR_HST A , PS_PAYMENT P WHERE A.DEPOSIT_ID = P.DEPOSIT_ID AND A.PAYMENT_ID = P.PAYMENT_ID AND A.PAYMENT_SEQ_NUM = P.PAYMENT_SEQ_NUM AND NOT EXISTS ( SELECT 'X' FROM PS_INTFC_CRCARD B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.DEPOSIT_ID = B.DEPOSIT_ID AND A.PAYMENT_SEQ_NUM = B.PAYMENT_SEQ_NUM) AND NOT EXISTS ( SELECT 'X' FROM PS_PAYMENT D WHERE A.PAYMENT_ID = D.PAYMENT_ID AND A.DEPOSIT_ID = D.DEPOSIT_ID AND A.PAYMENT_SEQ_NUM = D.PAYMENT_SEQ_NUM) AND A.HIST_SEQ = ( SELECT MAX(C.HIST_SEQ) FROM PS_CRCARD_AR_HST C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.CUST_ID = C.CUST_ID AND A.ITEM = C.ITEM AND A.ITEM_LINE = C.ITEM_LINE AND A.DEPOSIT_ID = C.DEPOSIT_ID AND A.PAYMENT_SEQ_NUM = C.PAYMENT_SEQ_NUM) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | DEPOSIT_BU | Character(5) | VARCHAR2(5) NOT NULL | Identifies the business unit to which a deposit is posted. |
2 | 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. |
3 | CR_CARD_AUTH_STAT | Character(1) | VARCHAR2(1) NOT NULL |
Credit Card Auth Status
A=Authorized B=Billed C=Credited D=Denied E=Validation Errors F=Auth Reversal G=Validated H=Auth Reversal Denied J=Reauthorize K=No Action L=Credit Card Not In Group M=Manually Approved/Settled N=Change to Terms P=Authorized and Billed R=Processing T=Cancel Order U=Unprocessed/Retry V=Pending Approval W=Deleted after Settlement X=Deleted Y=Cancelled Z=Zero Payment for Maintenance |
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 | BILL_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Customer |
6 | PAYMENT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the amount of a customer payment. |
7 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
8 | CR_CARD_AUTH_DT | Date(10) | DATE | Credit Card Authorization Date |
9 | 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. |
10 | POST_DT | Date(10) | DATE | The Date a transaction was Posted. |
11 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |