C360_DS_P7_SRCH

(SQL View)
Index Back

Pending Drafts Detail View


SELECT S.SETID ,A.CUST_ID , A.DRAFT_BU , A.DRAFT_ID , 0 , A.DRAFT_ID , 'PMT' , A.DRAFT_ID ,'DR' , B.CREATE_DATE , ' ' , B.DRAFT_STATUS ,B.DRAFT_AMT ,B.DRAFT_CURRENCY FROM PS_DRAFT_ID_CUST A , PS_DRAFT_CONTROL B , PS_SET_CNTRL_REC S , PSXLATITEM X WHERE A.BUSINESS_UNIT <> ' ' AND A.CUST_ID <> ' ' AND S.SETCNTRLVALUE = A.BUSINESS_UNIT AND S.RECNAME = 'CUSTOMER' AND A.DRAFT_BU = B.DRAFT_BU AND A.DRAFT_ID = B.DRAFT_ID AND B.DRAFT_STATUS IN ( 'A', 'I', 'L', 'M', 'N', 'P', 'R', 'T' ) AND X.FIELDNAME = 'DRAFT_STATUS' AND X.FIELDVALUE = B.DRAFT_STATUS AND X.EFFDT = ( SELECT MAX(effdt) FROM PSXLATITEM WHERE FIELDNAME = 'DRAFT_STATUS' AND FIELDVALUE = B.DRAFT_STATUS AND effdt <= %CurrentDateIn AND eff_status='A')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
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 C360_DOC_ID Character(25) VARCHAR2(25) NOT NULL Document ID
7 C360_DOC_TYPE Character(3) VARCHAR2(3) NOT NULL Document Type
CNT=Contract
INV=Invoice
ITM=Item
PMT=Payment
RFQ=Quotation
RMA=Returned Material
SO=Sales Order
8 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.
9 PAYMENT_METHOD Character(3) VARCHAR2(3) NOT NULL Specifies the preferred method of payment by a customer. Examples of payment method are check direct debit and draft. 10/28/2003 edw 655070000 - Removed LTC and CSH xlats.
ACH=ACH
CC=Credit Card
CHK=Check
CSH=Cash
DD=Direct Debit
DR=Draft
EC=Electronic Check
EFT=Electronic Fund Transfer
GE=Giro - EFT
PL=PayPal
WIR=Wire Report
10 DOCSTAT_DATE Date(10) DATE Document Date
11 DESCR Character(30) VARCHAR2(30) NOT NULL Description
12 STATUS_FIELD Character(30) VARCHAR2(30) NOT NULL Payment Status
13 DRAFT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the amount of a draft payment. This field is maintained by the Draft Creation process.
14 DRAFT_CURRENCY Character(3) VARCHAR2(3) NOT NULL Specifies the currency of a draft payment. The draft currency may or may not be the same as the base currency of the business unit handling the draft.