BI_EIVC_HVAT_VW

(SQL View)
Index Back

Extract for Header VAT


SELECT A.PROCESS_INSTANCE ,A.BUSINESS_UNIT ,A.INVOICE ,A.TAX_CD_VAT_PCT , CASE WHEN A.TOT_VAT_BASIS = 0 THEN C.SUM_TOT_GROSS_AMT ELSE A.TOT_VAT_BASIS END ,A.TOT_VAT_BASIS_BSE , A.TOT_VAT ,A.TOT_VAT_BSE ,A.BI_CURRENCY_CD ,A.BASE_CURRENCY ,( SELECT DISTINCT B.VAT_APPLICABILITY FROM PS_BI_LINE B WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.INVOICE = B.INVOICE ) FROM PS_BI_EIVC_HVAT A, PS_BI_EIVC_HDR C WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND A.INVOICE = C.INVOICE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PROCESS_INSTANCE Number(10,0) DECIMAL(10) NOT NULL Process Instance
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice
4 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.
5 TOT_VAT_BASIS Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Basis Amount
6 TOT_VAT_BASIS_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Basis Amount
7 TOT_VAT Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Amount
8 TOT_VAT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Amount
9 BI_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Billing Currency Code
10 BASE_CURRENCY Character(3) VARCHAR2(3) NOT NULL "Specifies the primary currency for a general ledger business unit, and is sometimes referred to as the ""book"" currency. Each business unit has one base currency. which is usually, but not always, the local currency for the organization. Journal entries are posted to a business unit in its base currency. "
11 VAT_APPLICABILITY Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not a transaction is eligible for VAT (Value Added Tax) taxation or why it is not eligible.
E=Exempt
N=Not Applicable
O=Outside of Scope of VAT
S=Suspended
T=Taxable
V=VAT Only
X=Exonerated