UK_VAT_LN5_VW(SQL View) |
Index Back |
---|---|
UK_VAT_LN5_VWView for UK VAT Digital Return |
SELECT A.PROCESS_INSTANCE ,A.VAT_RPT_ID ,A.VAT_ENTITY ,5 AS VAT_RPT_LINE_NBR ,A.COUNTRY_VAT_RPTG ,A.TAX_BASIS_AMT_RPTG - B.TAX_BASIS_AMT_RPTG AS TAX_BASIS_AMT_RPTG , A.TAX_AMT_GROSS_RPTG - B.TAX_AMT_RCVRY_RPTG AS TAX_AMT_GROSS_RPTG , A.TAX_AMT_RCVRY_RPTG - B.TAX_AMT_RCVRY_RPTG AS TAX_AMT_RCVRY_RPTG , A.TAX_AMT_RBT_RPTG - B.TAX_AMT_RBT_RPTG AS TAX_AMT_RBT_RPTG , A.TAX_TRANS_AMT_RPTG -B.TAX_TRANS_AMT_RPTG AS TAX_TRANS_AMT_RPTG FROM PS_UK_VAT_LN3_VW A , PS_UK_VAT_LN4_VW B WHERE A.PROCESS_INSTANCE=B.PROCESS_INSTANCE AND A.VAT_RPT_ID=B.VAT_RPT_ID AND A.VAT_ENTITY=B.VAT_ENTITY |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | PROCESS_INSTANCE | Number(10,0) | DECIMAL(10) NOT NULL | Process Instance |
2 | VAT_RPT_ID | Character(8) | VARCHAR2(8) NOT NULL | Report ID |
3 | 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. |
4 | VAT_RPT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number |
5 | COUNTRY_VAT_RPTG | Character(3) | VARCHAR2(3) NOT NULL | VAT Reporting Country |
6 | TAX_BASIS_AMT_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Basis Amount - Reporting |
7 | TAX_AMT_GROSS_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Tax Amount - Reporting |
8 | TAX_AMT_RCVRY_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Recovery Amt - Reporting |
9 | TAX_AMT_RBT_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Rebate Amount - Reporting |
10 | TAX_TRANS_AMT_RPTG | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Tax Transaction Amt - Report |