PAY_ID_ITEMC_VW

(SQL View)
Index Back

Payment Item ID- Same Ref


SELECT DISTINCT V.DEPOSIT_BU ,V.DEPOSIT_ID ,V.PAYMENT_ID ,V.PAYMENT_SEQ_NUM ,V.REF_QUALIFIER_CODE ,V.REF_VALUE ,V.PAYMENT_AMT ,V.PAYMENT_CURRENCY FROM PS_PAY_ID_ITEMA_VW V WHERE NOT EXISTS ( SELECT 'X' FROM PS_PAYMENT P1 , PS_PAYMENT_ID_ITEM I1 , PS_PAYMENT_ID_ITEM I2 WHERE P1.DEPOSIT_BU=I1.DEPOSIT_BU AND P1.DEPOSIT_ID=I1.DEPOSIT_ID AND P1.PAYMENT_SEQ_NUM=I1.PAYMENT_SEQ_NUM AND P1.DEPOSIT_BU=I2.DEPOSIT_BU AND P1.DEPOSIT_ID=I2.DEPOSIT_ID AND P1.PAYMENT_SEQ_NUM=I2.PAYMENT_SEQ_NUM AND I1.REF_QUALIFIER_CODE<>' ' AND I1.REF_VALUE<>' ' AND I2.REF_QUALIFIER_CODE<>' ' AND I2.REF_VALUE<>' ' AND P1.PP_SW='Y' AND P1.PAYMENT_STATUS IN ('I', 'U', 'E') AND I1.DEPOSIT_BU=I2.DEPOSIT_BU AND I1.DEPOSIT_ID=I2.DEPOSIT_ID AND I1.PAYMENT_SEQ_NUM=I2.PAYMENT_SEQ_NUM AND I1.REF_QUALIFIER_CODE %Concat I1.REF_VALUE=V.REF_QUALIFIER_CODE %Concat V.REF_VALUE AND I1.REF_QUALIFIER_CODE %Concat I1.REF_VALUE<>I2.REF_QUALIFIER_CODE %Concat I2.REF_VALUE)

  • Parent record: PAYMENT
  • # 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 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.
    3 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.
    4 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.
    5 REF_QUALIFIER_CODE Character(2) VARCHAR2(2) NOT NULL Reference Qualifier Code

    Prompt Table: AR_FLD_REF_VW

    6 REF_VALUE Character(30) VARCHAR2(30) NOT NULL Reference
    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.