SPF_INVLN2_FLVW(SQL View) |
Index Back |
---|---|
Adjustment DetailsThis Subrecord contains the amount fields used on the invoice header level |
SELECT D.BUSINESS_UNIT , D.INVOICE_ID , D.INVOICE_LINE , D.WORK_ORDER_ID , D.TIME_LINE_TYPE , D.TIME_SHEET_ID , D.PLOG_ID , D.SHEET_ID , D.LINE_NBR , D.SP_TIME_QTY , D.SP_TIME_QTY_ADJ , D.UNIT_OF_MEASURE , 0 , 0 , (D.INV_LINE_AMT) , (D.INV_LINE_ADJAMT) , (D.SP_MSP_FEE) , (D.ADJ_SP_MSP_FEE) , (D.SP_MSP_FEE) , (D.ADJ_SP_MSP_FEE) , D.TAX_CD_VAT_PCT , D.ADJ_VAT_PCT , (D.VAT_AMT) , (D.ADJ_VAT_AMT) , D.TAX_CD_SUT_PCT , D.ADJ_SUT_PCT , (D.SALETX_AMT) , (D.ADJ_SALETX_AMT) , (D.INV_EXP_AMT) , (D.INV_LINE_ADJEXP) , (D.INV_LINE_AMT + D.INV_EXP_AMT + D.VAT_AMT + D.SALETX_AMT) , (D.INV_LINE_ADJAMT + D.INV_LINE_ADJEXP + D.ADJ_VAT_AMT + D.ADJ_SALETX_AMT) , (D.INV_LINE_AMT + D.INV_EXP_AMT + D.VAT_AMT + D.SALETX_AMT + SP_MSP_FEE) , (D.INV_LINE_ADJAMT + D.INV_LINE_ADJEXP + D.ADJ_VAT_AMT + D.ADJ_SALETX_AMT + D.ADJ_SP_MSP_FEE) , (D.USETAX_AMT) , (D.ADJ_USETAX_AMT) , D.CURRENCY_CD , ' ' , ' ' , T.VAT_APPLICABILITY , T.SUT_APPLICABILITY , T.TAX_VAT_FLG FROM PS_SPF_INVOICE_DTL D , PS_SPF_WO_TAX T WHERE D.BUSINESS_UNIT = T.BUSINESS_UNIT AND D.WORK_ORDER_ID = T.WORK_ORDER_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL | Invoice Number |
3 | INVOICE_LINE | Number(5,0) | INTEGER NOT NULL | Invoice Line |
4 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Order ID |
5 | TIME_LINE_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Time Line Type
H=Hours I=Incident |
6 | TIME_SHEET_ID | Character(10) | VARCHAR2(10) NOT NULL | Time Sheet Unique Identifier (System Generated) |
7 | PLOG_ID | Character(10) | VARCHAR2(10) NOT NULL | Time Sheet Unique Identifier (System Generated) |
8 | SHEET_ID | Character(10) | VARCHAR2(10) NOT NULL | Report ID |
9 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
10 | SP_TIME_QTY | Signed Number(18,4) | DECIMAL(16,4) NOT NULL | Time Quantity |
11 | SP_TIME_QTY_ADJ | Signed Number(18,4) | DECIMAL(16,4) NOT NULL | Adjusted Time Quantity |
12 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
13 | NUM_OF_INCIDENTS | Number(16,0) | DECIMAL(16) NOT NULL | Number of incidents |
14 | SPA_NUM_OF_INC_ADJ | Number(16,0) | DECIMAL(16) NOT NULL | used in work record |
15 | INV_LINE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Amount |
16 | INV_LINE_ADJAMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Adjusted Invoice Line Amount |
17 | SP_MSP_FEE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee |
18 | SP_MSP_FEE_ADJ | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee |
19 | SP_MSP_FEE_INT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee |
20 | SP_MSP_FEE_INT_ADJ | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee |
21 | 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. |
22 | ADJ_VAT_PCT | Signed Number(9,4) | DECIMAL(7,4) NOT NULL | Specifies the tax percentage that corresponds to the VAT code which has been adjusted. |
23 | VAT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the amount of VAT associated with a transaction such as an invoice or a purchase order. In PeopleSoft Receivables this field is populated when the VAT declaration point is set to Invoice. |
24 | ADJ_VAT_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | This field stores the adjusted VAT amount. The original amount is stored in the VAT_AMT field for sPro. |
25 | TAX_CD_SUT_PCT | Number(8,4) | DECIMAL(7,4) NOT NULL | Sales/Use Tax Code Percent |
26 | ADJ_SUT_PCT | Number(8,4) | DECIMAL(7,4) NOT NULL | Adjusted Sales/Use Tax Code Percent |
27 | SALETX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Sales Tax Amount |
28 | ADJ_SALETX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | This field stores the adjusted Sales Tax Amount. The original amount is stored in the SALETX_AMT field for sPro. |
29 | INV_EXP_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Expense Amount |
30 | INV_LINE_ADJEXP | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Adjusted Expense Amount |
31 | ACTUAL_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Actual Total |
32 | ADJUSTED_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Adjusted Invoice Total |
33 | SP_MSP_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount including MSP Fee |
34 | SP_PC_MSP_TOT_ADJ | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount including MSP Fee |
35 | USETAX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
36 | ADJ_USETAX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | This field stores the adjusted Use Tax amount. The original amount is stored in the USETAX_AMT field for sPro. |
37 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
38 | ORIGINAL_INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Original Invoice |
39 | ADJUSTED_INVOICE | Character(22) | VARCHAR2(22) NOT NULL | Adjusted Invoice |
40 | 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 |
41 | SUT_APPLICABILITY | Character(1) | VARCHAR2(1) NOT NULL |
Sales/Use Tax Applicability
D=Direct Pay E=Item is Exempt S=Sales Tax Applicable U=Use Tax Applicable X=Purchaser Is Exonerated |
42 | TAX_VAT_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Include VAT
N=No Y=Yes |