VAT_ALTA_LNG_VW(SQL View) |
Index Back |
---|---|
VAT GL Accounts RLR |
SELECT DISTINCT V.VAT_DST_TYPE_AUTH , B.SETID , B.ALTACCT , B.LANGUAGE_CD , B.DESCR FROM PS_ALTACCT_LANG 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') |
# | 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 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
5 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |