BI_HD_VAT_EC_VW

(SQL View)
Index Back

BI Header VAT data for EDI


SELECT h.business_unit , h.invoice , v.vat_dclrtn_point , v.vat_calc_gross_net , v.vat_recalc_flg , v.vat_dst_acct_type , v.vat_excptn_type , v.vat_excptn_certif , h.country_vat_billfr , h.country_vat_billto , v.vat_rgstrn_buyer , v.vat_rgstrn_seller , h.country_ship_from , h.country_ship_to , h.tot_vat , h.tot_vat_xeu , h.tot_vat_basis , h.tot_vat_basis_xeu , h.vat_treatment_grp , h.TOT_VAT_RVC , h.TOT_VAT_RVC_XEU FROM PS_BI_HDR h , PS_BI_HDR_vat v WHERE h.business_unit = v.business_unit AND h.invoice = v.invoice

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 INVOICE Character(22) VARCHAR2(22) NOT NULL Invoice
3 VAT_DCLRTN_POINT Character(1) VARCHAR2(1) NOT NULL A flag that specifies when VAT information for sales or purchase transaction is recognized for reporting to the appropriate VAT authority. VAT is declared at invoice time, delivery time, accounting date or the time of payment.
A=At Accounting Date
D=At Delivery Time
I=At Invoice Time
P=At Payment Time

Default Value: I

4 VAT_CALC_GROSS_NET Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether VAT calculation should be done on the Gross (G) amount or on the Net (N) amount of sales or purchase transaction. When calculating VAT at net the early payment discount is applied to the goods amount before calculating the VAT. When calculating VAT at gross the VAT is initially calculated based on the gross transaction amount.
G=Calculate at Gross
N=Calculate at Net

Default Value: G

5 VAT_RECALC_FLG Character(1) VARCHAR2(1) NOT NULL A flag that indicates whether or not the VAT discount amount is recalculated at payment time. This field is only used if the VAT Calculation Type (VAT_CAL_GROSS_NET) is gross.

Y/N Table Edit

Default Value: N

6 VAT_DST_ACCT_TYPE Character(4) VARCHAR2(4) NOT NULL Specifies the accounting code associated with a VAT account type and with a VAT transaction. The accounting code determines when and how the transaction is distributed (posted) to the general ledger.
7 VAT_EXCPTN_TYPE Character(1) VARCHAR2(1) NOT NULL A flag that specifies the reason for a VAT exemption for a customer. Suspension (S) and Exoneration (X) are examples of Exception Type.
N=None
S=Suspended
X=Exonerated

Default Value: N

8 VAT_EXCPTN_CERTIF Character(20) VARCHAR2(20) NOT NULL Specifies the VAT exception certificate number. This identifier serves as proof of customer's exemption from VAT.
9 COUNTRY_VAT_BILLFR Character(3) VARCHAR2(3) NOT NULL Specifies the country where an invoice is generated (for VAT processing only).

Prompt Table: VAT_ENT_REG_VW

10 COUNTRY_VAT_BILLTO Character(3) VARCHAR2(3) NOT NULL Specifies the country where an invoice is sent (for VAT processing only).

Prompt Table: COUNTRY_VAT_TBL

11 VAT_RGSTRN_BUYER Character(20) VARCHAR2(20) NOT NULL Specifies a customers VAT Registration ID for a particular country.
12 VAT_RGSTRN_SELLER Character(20) VARCHAR2(20) NOT NULL Seller's VAT Registration
13 COUNTRY_SHIP_FROM Character(3) VARCHAR2(3) NOT NULL Specifies the country from which the invoice contents were shipped (for VAT processing only).
14 COUNTRY_SHIP_TO Character(3) VARCHAR2(3) NOT NULL Specifies the country to which the invoice contents were shipped (for VAT processing only).
15 TOT_VAT Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Amount
16 TOT_VAT_XEU Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Amount
17 TOT_VAT_BASIS Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Basis Amount
18 TOT_VAT_BASIS_XEU Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Basis Amount
19 VAT_TREATMENT_GRP Character(4) VARCHAR2(4) NOT NULL VAT Treatment Group
20 TOT_VAT_RVC Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Amount
21 TOT_VAT_RVC_XEU Signed Number(28,3) DECIMAL(26,3) NOT NULL Total VAT Reverse Charge Amt