BI_VAT_RPL1_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT (B.PROCESS_INSTANCE) , B.VAT_ENTITY ,B.VAT_RGSTRN_ID ,B.COUNTRY_2CHAR ,B.BI_CODIC_DESC ,B.BI_PROGRESSIVE_ID ,B.ENTITY_NAME ,'RF01' ,B.BILL_TO_CUST_ID ,B.BI_CNTRY_2CHAR ,B.VAT_RGSTRN_TPRTNR ,B.NAME1 ,B.ADDRESS1 ,B.POSTAL ,B.STATE ,B.CITY ,A.LOCATION ,A.DESCR , A.COUNTRY ,A.ADDRESS1 ,A.CITY ,A.STATE ,A.POSTAL ,A.COUNTRY_CODE FROM PS_LOCATION_TBL A , PS_BI_VAT_RPT_TBL B WHERE A.LOCATION IN ( SELECT C.LOCATION FROM PS_BUS_UNIT_TBL_BI C ,PS_BI_VAT_RPT_TBL D ,PS_BI_VAT_RPT_TBL E WHERE C.BUSINESS_UNIT_GL = D.BUSINESS_UNIT AND E.PROCESS_INSTANCE = D.PROCESS_INSTANCE AND E.VAT_ENTITY = D.VAT_ENTITY AND E.COUNTRY_VAT_RPTG = D.COUNTRY_VAT_RPTG AND E.INVOICE = D.INVOICE AND E.BI_PROGRESSIVE_ID = D.BI_PROGRESSIVE_ID ) AND A.EFFDT = ( SELECT MAX(X.EFFDT) FROM PS_LOCATION_TBL X WHERE A.SETID = X.SETID AND A.LOCATION = X.LOCATION AND X.EFFDT <= %CurrentDateIn ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |
2 | VAT_ENTITY | Character(20) | VARCHAR2(20) NOT NULL | Specifies an organizational entity that is responsible for VAT reporting and that is registered in one or more countries that require VAT reporting. A single VAT entity is linked to one or more General Ledger Business Units depending on the reporting requirements. |
3 | VAT_RGSTRN_ID | Character(20) | VARCHAR2(20) NOT NULL | VAT Registration ID |
4 | COUNTRY_2CHAR | Character(2) | VARCHAR2(2) NOT NULL | 2-Char Country Code |
5 | BI_CODIC_DESC | Character(15) | VARCHAR2(15) NOT NULL | CodiceDestinatario |
6 | BI_PROGRESSIVE_ID | Character(5) | VARCHAR2(5) NOT NULL | Progressive ID |
7 | ENTITY_NAME | Character(50) | VARCHAR2(50) NOT NULL | Entity Name |
8 | FISCAL_REGIME | Character(6) | VARCHAR2(6) NOT NULL | Fiscal Regime |
9 | BILL_TO_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL |
Customer
Prompt Table: CUST_BI_A2_VW |
10 | BI_CNTRY_2CHAR | Character(2) | VARCHAR2(2) NOT NULL | 2-Char Country Code |
11 | 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. |
12 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
13 | ADDRESS1 | Character(55) | VARCHAR2(55) NOT NULL | Address 1 |
14 | POSTAL | Character(12) | VARCHAR2(12) NOT NULL | Postal |
15 | STATE | Character(6) | VARCHAR2(6) NOT NULL | State |
16 | CITY | Character(30) | VARCHAR2(30) NOT NULL | City |
17 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
18 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
19 | COUNTRY | Character(3) | VARCHAR2(3) NOT NULL | Country |
20 | ADDRESS2 | Character(55) | VARCHAR2(55) NOT NULL | Address 2 |
21 | CITY3 | Character(30) | VARCHAR2(30) NOT NULL | City |
22 | STATE3 | Character(6) | VARCHAR2(6) NOT NULL | State |
23 | POSTAL3 | Character(12) | VARCHAR2(12) NOT NULL | Postal Code |
24 | COUNTRY_CODE | Character(3) | VARCHAR2(3) NOT NULL | Int'l Prefix |