PAYTRMS_SPF_VW

(SQL View)
Index Back

SP View of Payment Terms Table

This view is used for invoicing to retrieve effectived dated payment terms and descriptions.

SELECT A.SETID , A.PYMNT_TERMS_CD , A.DESCR , A.DESCRSHORT FROM PS_PYMT_TRMS_HDR A , PS_PYMT_TRMS_CNTL B WHERE A.SETID = B.SETID AND A.PYMNT_TERMS_CD = B.PYMNT_TERMS_CD AND B.EFF_STATUS = 'A' AND B.EFFDT = ( SELECT MAX(I.EFFDT) FROM PS_PYMT_TRMS_CNTL I WHERE I.SETID = B.SETID AND I.PYMNT_TERMS_CD = B.PYMNT_TERMS_CD AND I.EFFDT <= %CurrentDateIn AND I.EFF_STATUS = B.EFF_STATUS )

  • 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 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    4 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description