VAT_RATE_VW

(SQL View)
Index Back

SELECT A.SETID , A.TAX_CD ,SUM(B.TAX_PCT) FROM PS_TAX_CD A , PS_TAX_AUTHORITY B WHERE A.SETID = B.SETID AND A.TAX_AUTHORITY_CD = B.TAX_AUTHORITY_CD AND B.EFF_STATUS = 'A' AND B.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_TAX_AUTHORITY C WHERE C.SETID = B.SETID AND C.TAX_AUTHORITY_CD = A.TAX_AUTHORITY_CD AND C.EFFDT <= %CurrentDateIn AND C.EFF_STATUS = 'A') GROUP BY A.SETID , A.TAX_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 TAX_CD_VAT Character(8) VARCHAR2(8) NOT NULL Defines the VAT (Value Added Tax) percentage (via link to the Tax Authority) and is used to retrieve VAT accounting ChartFields. The VAT code determines how the VAT amount is calculated on a transaction and how that amount is accounted and reported for.
3 TAX_CD_VAT_PCT Signed Number(9,4) DECIMAL(7,4) NOT NULL Specifies the tax percentage that corresponds to the VAT code. If more than one VAT authority is linked to a VAT code this will represent an aggregate percentage.