VAT_GLALTACC_VW

(SQL View)
Index Back

AltAcct Vw for VAT

Alternate accounts linked to Non-statistical accounts only that has VAT_DST_ACCT_TYPE populated

SELECT DISTINCT V.VAT_DST_TYPE_AUTH , B.SETID , B.ALTACCT , B.DESCR FROM PS_ALTACCT_TBL B , PS_ALTACCT_XREF A , PS_GL_ACCOUNT_TBL G , PS_VAT_DST_TYPE V WHERE B.SETID = A.ALTACCT_SETID AND B.ALTACCT= A.ALTACCT AND A.SETID = G.SETID AND A.ACCOUNT = G.ACCOUNT AND G.STATISTICS_ACCOUNT = 'N' AND G.VAT_ACCOUNT_FLG = 'V' AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_ALTACCT_TBL X WHERE X.SETID = B.SETID AND X.ALTACCT = B.ALTACCT AND EFFDT <= %CurrentDateIn AND EFF_STATUS <> 'I')

  • Related Language Record: VAT_ALTA_LNG_VW
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 VAT_DST_TYPE_AUTH Character(4) VARCHAR2(4) NOT NULL VAT Distrib Type Group
    2 ALTACCT_SETID Character(5) VARCHAR2(5) NOT NULL Alternate Account SetID

    Prompt Table: SP_SETID_NONVW

    3 ALTACCT Character(10) VARCHAR2(10) NOT NULL Alternate Account
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description