VAT_TX_AR_NT2_V(SQL View) |
Index Back |
---|---|
Receivables VAT View |
SELECT DISTINCT A.BUSINESS_UNIT ,A.ITEM ,A.ITEM_LINE ,A.ITEM_SEQ_NUM ,A.VAT_DST_ACCT_TYPE ,A.VAT_SEQ_NUM ,B.COUNTRY_VAT_BILLFR ,'AR' ,A.VAT_DST_ACCT_TYPE ,'N' ,A.ENTRY_CURRENCY ,A.CURRENCY_CD ,' ' ,A.VAT_BASIS_AMT ,A.VAT_BASIS_AMT_BASE ,0 ,A.VAT_AMT ,A.VAT_AMT_BASE ,0 ,A.VAT_TRANS_AMT ,A.VAT_TRANS_AMT_BSE ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,A.TAX_CD_VAT ,A.VAT_TXN_TYPE_CD ,A.TAX_CD_VAT_PCT ,A.VAT_TREATMENT ,A.VAT_APPLICABILITY ,B.ACCOUNTING_DT ,'N' ,B.VAT_DCLRTN_POINT ,B.ACCOUNTING_DT ,0 ,0 ,B.ACCOUNTING_DT ,A.BUSINESS_UNIT ,AR.BUSINESS_UNIT_GL ,' ' ,' ' ,S.SETID ,A.CUST_ID ,B.VAT_RGSTRN_BUYER ,B.COUNTRY_VAT_BILLTO ,B.COUNTRY_VAT_BILLFR ,B.COUNTRY_VAT_BILLTO ,B.COUNTRY_SHIP_TO ,B.COUNTRY_SHIP_FROM ,D.DOC_TYPE ,D.DOC_SEQ_DATE ,D.DOC_SEQ_NBR ,A.PHYSICAL_NATURE ,A.COUNTRY_VAT_SUPPLY ,A.VAT_SVC_SUPPLY_FLG ,A.VAT_SERVICE_TYPE ,A.COUNTRY_VAT_PERFRM ,A.STATE_VAT_DEFAULT ,' ' ,' ' ,' ' FROM PS_ITEM_ACT_VAT A , PS_ITEM B , PS_ITEM_DST D , PS_SET_CNTRL_REC S , PS_BUS_UNIT_TBL_AR AR WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.CUST_ID = B.CUST_ID AND A.ITEM = B.ITEM AND A.ITEM_LINE = B.ITEM_LINE AND A.VAT_DISTRIB_STATUS = 'N' AND A.VAT_DST_ACCT_TYPE = 'VONT' AND B.VAT_DCLRTN_POINT = 'P' AND A.BUSINESS_UNIT = AR.BUSINESS_UNIT AND AR.BUSINESS_UNIT_GL = D.BUSINESS_UNIT_GL AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.CUST_ID = D.CUST_ID AND A.ITEM = D.ITEM AND A.ITEM_LINE = D.ITEM_LINE AND A.ITEM_SEQ_NUM = D.ITEM_SEQ_NUM AND S.SETCNTRLVALUE = A.BUSINESS_UNIT AND S.RECNAME = 'CUSTOMER' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | ITEM | Character(30) | VARCHAR2(30) NOT NULL | Uniquely identifies an invoice credit memo or debit memo. The item ID is also called the invoice number. |
3 | ITEM_LINE | Number(6,0) | INTEGER NOT NULL | Item Line |
4 | ITEM_SEQ_NUM | Number(3,0) | SMALLINT NOT NULL | Item Sequence Number |
5 | VAT_DST_ACCT_TMP | 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. |
6 | VAT_SEQ_NUM | Number(6,0) | INTEGER NOT NULL | VAT Sequence Number |
7 | COUNTRY_VAT_RPTG | Character(3) | VARCHAR2(3) NOT NULL | VAT Reporting Country |
8 | VAT_TXN_SOURCE | Character(6) | VARCHAR2(6) NOT NULL | VAT Transaction Source |
9 | 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.
Prompt Table: VAT_DST_VAT_VW |
10 | VAT_RPTG_CURR_FLG | Character(1) | VARCHAR2(1) NOT NULL | Amounts in Reporting Currency |
11 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL |
Transaction Currency
Prompt Table: CURRENCY_CD_TBL |
12 | 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. "
Prompt Table: CURRENCY_CD_TBL |
13 | CURRENCY_RPTG | Character(3) | VARCHAR2(3) NOT NULL |
Reporting Currency
Prompt Table: CURRENCY_CD_TBL |
14 | TAX_BASIS_AMT_TXN | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Basis Amount - Transaction |
15 | TAX_BASIS_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Basis Amount - Base |
16 | TAX_BASIS_AMT_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Basis Amount - Reporting |
17 | TAX_AMT_GROSS_TXN | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Tax Amount - Transaction |
18 | TAX_AMT_GROSS_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Tax Amount - Base |
19 | TAX_AMT_GROSS_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Tax Amount - Reporting |
20 | TAX_TRANS_AMT_TXN | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Transaction Amt - Transact |
21 | TAX_TRANS_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Transaction Amt - Base |
22 | TAX_TRANS_AMT_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Transaction Amt - Report |
23 | TAX_AMT_RCVRY_TXN | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Recovery Amt - Transaction |
24 | TAX_AMT_RCVRY_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Recovery Amount - Base |
25 | TAX_AMT_RCVRY_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Recovery Amt - Reporting |
26 | TAX_AMT_RBT_TXN | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Rebate Amt - Transaction |
27 | TAX_AMT_RBT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Rebate Amount - Base |
28 | TAX_AMT_RBT_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Rebate Amount - Reporting |
29 | 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.
Prompt Table: VAT_HEADER_VW |
30 | VAT_TXN_TYPE_CD | Character(4) | VARCHAR2(4) NOT NULL |
Specifies a user-defined category of business transaction that is subject to VAT accounting and reporting. The VAT code and the VAT transaction type are used in conjunction with the VAT account type to obtain the ChartFields for accounting entries. Some examples of VAT Transaction Types are Exempt Sales Exempt Purchases Triangulation EU Sales and Domestic Sales.
Prompt Table: VAT_TXN_CD |
31 | 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. |
32 | VAT_TREATMENT | Character(4) | VARCHAR2(4) NOT NULL |
VAT Treatment
Prompt Table: VAT_TREATMENT |
33 | 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 |
34 | VAT_DCLRTN_DT | Date(10) | DATE | "Specifies the date of the invoice when the VAT declaration point (VAT_DCLRTN_POINT) is ""Invoice"". The VAT declaration date is automatically set to the invoice date by the system. This field does not apply when the declaration point is ""payment"". " |
35 | VAT_DCLRTN_DT_SRC | Character(1) | VARCHAR2(1) NOT NULL |
Declaration Date Source
A=Delivery Date - Ext Process D=Delivery Date - Txn Entry I=Invoice Date M=Manual Entry N=Not Applicable Default Value: N |
36 | 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 |
37 | CUR_EFFDT | Date(10) | DATE | Specifies the effective date associated with the currency used as the base currency for the Business Unit on the Journal Entry Header. |
38 | RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Rate Multiplier |
39 | RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL | Rate Divisor |
40 | VAT_RGSTR_RPT_DT | Date(10) | DATE | Date to be used on Italian VAT Register Reports |
41 | SETCNTRLVALUE | Character(20) | VARCHAR2(20) NOT NULL |
Tree Definition User Key Value
Prompt Table: SP_BU_FS_NONVW |
42 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
43 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
44 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
45 | CUSTOMER_SETID | Character(5) | VARCHAR2(5) NOT NULL | Customer SetID |
46 | CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations. |
47 | VAT_RGSTRN_TPRTNR | Character(20) | VARCHAR2(20) NOT NULL | Trading Partner's VAT Registration ID **** WARNING **** - This field has label ids of CUSTOMER, VENDOR, BANK. Do NOT delete these label ids. They are used to ensure the correct label is displayed on the common VAT subpages. |
48 | COUNTRY_VAT_TPRTNR | Character(3) | VARCHAR2(3) NOT NULL | Trading Partner's VAT Registration Country. **** WARNING **** - This field has label ids of CUSTOMER, VENDOR, BANK. Do NOT delete these label ids. They are used to ensure the correct label is displayed on the common VAT subpages. |
49 | COUNTRY_VAT_BILLFR | Character(3) | VARCHAR2(3) NOT NULL | Specifies the country where an invoice is generated (for VAT processing only). |
50 | COUNTRY_VAT_BILLTO | Character(3) | VARCHAR2(3) NOT NULL | Specifies the country where an invoice is sent (for VAT processing only). |
51 | COUNTRY_SHIP_TO | Character(3) | VARCHAR2(3) NOT NULL |
Specifies the country to which the invoice contents were shipped (for VAT processing only).
Prompt Table: COUNTRY_TBL |
52 | COUNTRY_SHIP_FROM | Character(3) | VARCHAR2(3) NOT NULL | Specifies the country from which the invoice contents were shipped (for VAT processing only). |
53 | DOC_TYPE | Character(8) | VARCHAR2(8) NOT NULL | Specifies the business purpose of a financial transaction in countries that require all financial transactions to be tracked as "documents". A Document Type is associated with one and only one Journal Code. |
54 | DOC_SEQ_DATE | Date(10) | DATE | Specifies the date that a document sequence number is assigned to a document or the date the document was created. |
55 | DOC_SEQ_NBR | Character(12) | VARCHAR2(12) NOT NULL | Specifies the sequence number assigned to each financial transaction (a document). The sequence number may be manually entered or system-generated. |
56 | PHYSICAL_NATURE | Character(1) | VARCHAR2(1) NOT NULL |
Physical Nature
G=Goods S=Services |
57 | COUNTRY_VAT_SUPPLY | Character(3) | VARCHAR2(3) NOT NULL |
VAT Place of Supply Country
Prompt Table: COUNTRY_TBL |
58 | VAT_SVC_SUPPLY_FLG | Character(1) | VARCHAR2(1) NOT NULL |
VAT Services Place of Supply Flag
1=Supplier's Countries 2=Buyer's Countries 3=Where Physically Performed |
59 | VAT_SERVICE_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
VAT Service Type
1=Freight Transport 2=Other 3=Electronics/Communication |
60 | COUNTRY_VAT_PERFRM | Character(3) | VARCHAR2(3) NOT NULL |
Country Where Service Physically Performed
Prompt Table: COUNTRY_TBL |
61 | STATE_VAT_DEFAULT | Character(6) | VARCHAR2(6) NOT NULL |
VAT Defaulting State
Prompt Table: STATE_TBL |
62 | VAT_RPT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
VAT Return Status
N=Not Reported R=Reported Default Value: N |
63 | ESL_RPT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
EC Sales List Status
N=Not Reported R=Reported Default Value: N |
64 | RCSL_RPT_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Rev Charge Sales List Status
N=Not Reported R=Reported Default Value: N |