CUST_PND_DRF_VW

(SQL View)
Index Back

Pending Drafts Detail View


SELECT S.SETID , A.BUSINESS_UNIT , A.CUST_ID , A.DRAFT_BU , A.DRAFT_ID , A.ID_SEQ_NUM , 'DR' , B.DRAFT_STATUS , X.XLATLONGNAME , B.ACCOUNTING_DT , B.CREATE_DATE , B.DRAFT_DUE_DT , B.DRAFT_AMT , B.DRAFT_CURRENCY , %Round(%DecMult(%DecDiv(B.DRAFT_AMT, B.RATE_DIV), B.RATE_MULT), 3) , B.CURRENCY_CD , B.DRAFT_DOC_REF , B.DRAFT_TYPE , B.BANK_CD , B.BANK_ACCT_KEY , B.BANK_ACCOUNT_NUM , B.BNK_ID_NBR , B.OPRID_APPROVED_BY 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')

  • Related Language Record: AR_DRF_STAT_LVW
  • # 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

    Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT

    Prompt Table: SP_BUARDS_NONVW

    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.

    Prompt Table: CUST_SRCH_VW
    Set Control Field: BUSINESS_UNIT

    4 DEPOSIT_BU Character(5) VARCHAR2(5) NOT NULL Identifies the business unit to which a deposit is posted.
    5 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.
    6 ID_SEQ_NUM Number(5,0) INTEGER NOT NULL Identification Sequence number
    7 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
    8 DRAFT_STATUS Character(1) VARCHAR2(1) NOT NULL Draft Status
    A=Accepted
    C=Complete
    D=Dishonored
    E=Void
    I=Identified
    L=Collateral
    M=Discounted
    N=No Action
    P=Pending
    R=Remitted
    T=Endorsed
    9 STATUS_DESCR Character(30) VARCHAR2(30) NOT NULL Status Description
    10 ACCOUNTING_DT Date(10) DATE The accounting entry construction date for a given transaction (a generic field that crosses multiple
    11 ENTRY_DT Date(10) DATE Specifies the date that a group of pending items was entered into the system. This date may be later or the same as the date that the items were received by the organization (See RECEIVED_DT).
    12 DUE_DATE Date(10) DATE Delivery Due Date from PO
    13 PAYMENT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Specifies the amount of a customer payment.
    14 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.
    15 PAY_AMT_BASE Signed Number(28,3) DECIMAL(26,3) NOT NULL Payment Amt - Base Curr
    16 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    17 DRAFT_DOC_REF Character(20) VARCHAR2(20) NOT NULL Draft Reference
    18 DRAFT_TYPE Character(10) VARCHAR2(10) NOT NULL A flag that indicates whether a draft is initiated by the vendor (1) or by the customer (2).
    19 BANK_CD Character(5) VARCHAR2(5) NOT NULL Bank Code
    20 BANK_ACCT_KEY Character(4) VARCHAR2(4) NOT NULL A user defined unique identifier that facilitates the identification of a given account with a given bank
    21 BANK_ACCOUNT_NUM Character(35) VARCHAR2(35) NOT NULL The literal unique identifier associated with a given bank/counterparty account.
    22 BNK_ID_NBR Character(20) VARCHAR2(20) NOT NULL A literal alphanumeric attribute that uniquely identifies a given bank or counterparty.
    23 ASSN_OPRID Character(30) VARCHAR2(30) NOT NULL Specifies the operator ID of the person who will enter items in a group. This is used when one person enters the control totals and another person enters the actual transactions. The assigned operator is also the person who processes the group and the person who is shown on group inquiry and processing panels.