PY_MOD_ERN_VW

(SQL View)
Index Back

Paychk Mod Company Earnings

This view is used to show the latest company earnings.

SELECT DISTINCT A.COMPANY , A.PAYGROUP , B.ERNCD , C.PAYMENT_TYPE , C.DESCR FROM PS_PAYGROUP_TBL A , PS_ERN_PROGRAM_DEF B , PS_EARNINGS_TBL C WHERE A.EFFDT = ( SELECT MAX(A_ED.EFFDT) FROM PS_PAYGROUP_TBL A_ED WHERE A.COMPANY = A_ED.COMPANY AND A.PAYGROUP = A_ED.PAYGROUP AND A_ED.EFFDT <= %CurrentDateIn) AND B.ERN_PROGRAM = A.ERN_PROGRAM AND B.EFFDT = ( SELECT MAX(B_ED.EFFDT) FROM PS_ERN_PROGRAM_DEF B_ED WHERE B.ERN_PROGRAM = B_ED.ERN_PROGRAM AND B_ED.EFFDT <= %CurrentDateIn) AND B.ERNCD = C.ERNCD AND C.EFF_STATUS = 'A' AND C.PAYMENT_TYPE <> 'S' AND C.EFFDT = ( SELECT MAX(C_ED.EFFDT) FROM PS_EARNINGS_TBL C_ED WHERE C.ERNCD = C_ED.ERNCD AND C_ED.EFFDT <= %CurrentDateIn)

  • Related Language Record: PY_MOD_ERN_L_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
    2 PAYGROUP Character(3) VARCHAR2(3) NOT NULL Pay Group
    3 ERNCD Character(3) VARCHAR2(3) NOT NULL Earnings Code
    4 PAYMENT_TYPE Character(1) VARCHAR2(1) NOT NULL Payment Type
    A=Amounts Only
    B=Both Hours and Amount OK
    E=Either Hours or Amount OK
    F=Flat Amount
    H=Hours Only
    S=Defined by Salary System
    U=Unit/Override Rate
    5 DESCR Character(30) VARCHAR2(30) NOT NULL Description