SPF_INV_PL_VW(SQL View) |
Index Back |
---|---|
Available PLogLines to InvoiceThis view fetches the Progress Log detail lines that are available for Invoicing |
SELECT H.BUSINESS_UNIT , H.PLOG_ID , D.LINE_NBR , W.WORK_ORDER_ID , D.DISTRIB_LINE_NUM , W.SERVICE_METHOD , W.SP_VNDR_INTERNAL , W.VENDOR_ID , W.VNDR_LOC , W1.VMS_SUPPLIER_ID , W1.VMS_LOCATION , D.ACTIVITY_ID , H.PERSON_ID , P.NAME , H.CREATION_DT , D.COMPLETE_DATE , ' ' , W.VENDOR_ID , W.VNDR_LOC , W.SP_BILL_METHOD , D.PERCENT_COMPLETE , W.PO_ID , D.QUANTITY , D.UNIT_OF_MEASURE , T.TAX_VAT_FLG , T.SUT_APPLICABILITY , T.TAX_CD_VAT_PCT , T.TAX_CD_SUT_PCT , T.TAX_CD_VAT_PCT , T.TAX_CD_SUT_PCT , D.PL_RATE , D.SP_BILL_AMOUNT , 0 AS VAT_AMOUNT , 0 AS SALETX_AMOUNT , 0 AS USETAX_AMOUNT , 0 AS INV_EXP_AMT , D.SP_MSP_FEE , D.SP_BILL_AMOUNT + D.SP_MSP_FEE , D.SP_BILL_AMOUNT , 0 AS ADJ_VAT_AMOUNT , 0 AS ADJ_SALETX_AMOUNT , 0 AS ADJ_USETAX_AMOUNT , 0 AS INV_LINE_ADJEXP , D.SP_MSP_FEE , 0 AS INVOICE_AMOUNT , D.CURRENCY_CD , D.PL_RATE_BSE , D.SP_BILL_AMOUNT_BSE , 0 AS VAT_AMOUNT_BSE , 0 AS SALETX_AMOUNT_BSE , 0 AS USETAX_AMOUNT_BSE , 0 AS INV_EXP_AMT_BSE , D.SP_MSP_FEE_BSE , D.SP_BILL_AMOUNT_BSE + D.SP_MSP_FEE_BSE , D.SP_BILL_AMOUNT_BSE , 0 AS ADJ_VAT_AMOUNT_BSE , 0 AS ADJ_SALETX_AMT_BSE , 0 AS ADJ_USETAX_AMT_BSE , 0 AS INV_LN_ADJEXP_BSE , D.SP_MSP_FEE_BSE , 0 AS INVOICE_AMOUNT_BSE , D.CURRENCY_CD_BASE , D.PC_DISTRIB_STATUS FROM PS_SPA_PLOG_HDR H , PS_SPA_PLOG_DTL D , PS_SPF_WORDERREC W , PS_SPF_WORDERREC_1 W1 , PS_SPF_WO_TAX T , PS_SPB_PERSON_TBL P WHERE D.PL_LINE_STATUS IN ('APR', 'ADJ') AND D.TE_INVOICE_FLG = 'N' AND H.BUSINESS_UNIT = D.BUSINESS_UNIT AND H.PLOG_ID = D.PLOG_ID AND D.BUSINESS_UNIT = W.BUSINESS_UNIT AND D.WORK_ORDER_ID = W.WORK_ORDER_ID AND W1.BUSINESS_UNIT = W.BUSINESS_UNIT AND W1.WORK_ORDER_ID = W.WORK_ORDER_ID AND W.BUSINESS_UNIT = T.BUSINESS_UNIT AND W.WORK_ORDER_ID = T.WORK_ORDER_ID AND H.PERSON_ID = P.PERSON_ID AND W.SERVICE_METHOD = 'D' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | PLOG_ID | Character(10) | VARCHAR2(10) NOT NULL | Time Sheet Unique Identifier (System Generated) |
3 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
4 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL | Work Order ID |
5 | DISTRIB_LINE_NUM | Number(5,0) | INTEGER NOT NULL | Distribution Line |
6 | SP_SERVICE_METHOD | Character(1) | VARCHAR2(1) NOT NULL |
Service Type classified as Resource Based or Service Based
D=Deliverable R=Resource |
7 | SP_VNDR_INTERNAL | Character(1) | VARCHAR2(1) NOT NULL |
Vendor Internal or External type
N=N Y=Yes |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
9 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
10 | VMS_SUPPLIER_ID | Character(10) | VARCHAR2(10) NOT NULL | VMS Supplier ID |
11 | VMS_LOCATION | Character(10) | VARCHAR2(10) NOT NULL | VMS Location - This is the Vendor Managed Service Supplier's office location |
12 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL | Activity ID |
13 | PROVIDER_CONTACT | Character(15) | VARCHAR2(15) NOT NULL | PROVIDER CONTACT |
14 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
15 | CREATION_DT | Date(10) | DATE | Creation Date |
16 | COMPLETE_DATE | Date(10) | DATE | To save the task execution complete date |
17 | SP_SUP_INVAPPROVER | Character(15) | VARCHAR2(15) NOT NULL | Supplier Proforma Invoice Approver |
18 | SP_END_SUPPLIER_ID | Character(10) | VARCHAR2(10) NOT NULL | The Supplier who is being managed by the VMS (Vendor Managed Service) Supplier |
19 | SP_ENDSUPPLIER_LOC | Character(10) | VARCHAR2(10) NOT NULL | Location of Supplier providing the service to the VMS Supplier |
20 | SP_BILL_METHOD | Character(1) | VARCHAR2(1) NOT NULL |
Used in Service Based Workorders to identify the billing method.
F=Fixed Amount M=Milestone P=Percentage R=Rate Based |
21 | PERCENT_COMPLETE | Number(6,2) | DECIMAL(5,2) NOT NULL | % Complete |
22 | PO_ID | Character(10) | VARCHAR2(10) NOT NULL | Purchase Order |
23 | QUANTITY | Signed Number(17,4) | DECIMAL(15,4) NOT NULL | Qty Interface |
24 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
25 | TAX_VAT_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Include VAT
N=No Y=Yes |
26 | 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 |
27 | 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. |
28 | TAX_CD_SUT_PCT | Number(8,4) | DECIMAL(7,4) NOT NULL | Sales/Use Tax Code Percent |
29 | 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. |
30 | ADJ_SUT_PCT | Number(8,4) | DECIMAL(7,4) NOT NULL | Adjusted Sales/Use Tax Code Percent |
31 | INV_LINE_ADJRATE | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Adjusted Invoice Line Rate |
32 | INV_LINE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Amount |
33 | 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. |
34 | SALETX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Sales Tax Amount |
35 | USETAX_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Amount |
36 | INV_EXP_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Expense Amount |
37 | SP_MSP_FEE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee |
38 | SP_MSP_TOTAL | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount including MSP Fee |
39 | INV_LINE_ADJAMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Adjusted Invoice Line Amount |
40 | 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. |
41 | 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. |
42 | 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. |
43 | INV_LINE_ADJEXP | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Adjusted Expense Amount |
44 | ADJ_SP_MSP_FEE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider/Vendor Managed Services Fee |
45 | INVOICE_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Amount |
46 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
47 | INV_LN_ADJRATE_BSE | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | Invoice Line Adjusted Rate in Base Currency |
48 | INV_LINE_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Invoice Line Amount |
49 | VAT_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | VAT Amount in Base Curr |
50 | SALETX_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Sales Tax Amount |
51 | USETAX_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Base Use Tax Amount |
52 | INV_EXP_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Expense Amount for Base Currency |
53 | SP_MSP_FEE_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider Fee (Base Currency) |
54 | SP_MSP_TOTAL_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Amount including MSP Fee (Base Currency) |
55 | INV_LN_ADJAMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Adjusted Amount in base currency |
56 | ADJ_VAT_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Adjusted VAT Amount - Base Currency |
57 | ADJ_SALETX_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Adjusted Sales Tax Amount - Base Currency This field stores the adjusted Sales Tax Amount in Base Currency. The original amount is stored in the SALETX_AMT_BSE field for sPro. |
58 | ADJ_USETAX_AMT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | This field stores the adjusted Use Tax amount in Base Currency. The original amount is stored in the USETAX_AMT_BSE field for sPro. |
59 | INV_LN_ADJEXP_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Line Adjusted Expense Amount in Base Currency |
60 | ADJ_SP_MSP_FEE_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Managed Service Provider/Vendor Managed Services Fee |
61 | INVOICE_AMOUNT_BSE | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Invoice Amount in Base Currency |
62 | CURRENCY_CD_BASE | Character(3) | VARCHAR2(3) NOT NULL | Business Unit Base Currency |
63 | PC_DISTRIB_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
PC Distribution Status
B=Budget Check D=Distributed G=Generated H=Hold I=Ignore M=Modified N=Not Distributed S=Staged |