PYTR_MSG_VW2

(SQL View)
Index Back

Payment Terms Header View

View filters Single Payment Terms Types for Message Integration

SELECT A.SETID , A.PYMNT_TERMS_CD , A.PYMNT_TERMS_TYPE , A.DESCR , A.DESCRSHORT FROM PS_PYMT_TRMS_HDR A , PS_PYMT_TRMS_CNTL B WHERE A.PYMNT_TERMS_TYPE = 'S' AND A.SETID = B.SETID AND A.PYMNT_TERMS_CD = B.PYMNT_TERMS_CD AND B.EFFDT = ( SELECT MIN(C.EFFDT) FROM PS_PYMT_TRMS_CNTL C WHERE C.SETID = B.SETID AND C.PYMNT_TERMS_CD = B.PYMNT_TERMS_CD) AND B.EFFDT <= %CurrentDateIn AND NOT EXISTS ( SELECT 'X' FROM PS_EOTF_XREF_DATA WHERE EOTF_MAP_NAME = 'PaymentTermGUID' AND EOTF_DOMAIN_NAME = 'PSFT' AND %Substring(EOTF_ELEMENT001,1,5) = A.SETID AND %Substring(EOTF_ELEMENT002,1,5) = A.PYMNT_TERMS_CD)

  • Related Language Record: PYMT_TR_HD_LANG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

    Default Value: OPR_DEF_TBL_FS.SETID

    Prompt Table: SP_SETID_NONVW

    2 PYMNT_TERMS_CD Character(5) VARCHAR2(5) NOT NULL Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers.
    3 PYMNT_TERMS_TYPE Character(1) VARCHAR2(1) NOT NULL Payment Terms Type
    M=Multi-Payment Terms
    S=Single-Payment Terms
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    5 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description