EM_INV_LINES_VW(SQL View) |
Index Back |
---|---|
Invoice Lines/DistributionsThis view is used by the operational user to review and approve invoice lines. Lines and Distribs are denormalized in a level 1 grid. |
SELECT a.business_unit , a.voucher_id , LINE.VOUCHER_LINE_NUM , DIST.DISTRIB_LINE_NUM , a.invoice_id , a.vendor_setid , b.vendor_id , a.vndr_loc , line.descr , a.invoice_dt , dist.merchandise_amt , dist.txn_currency_cd , a.entered_dt , a.appr_status , a.vchr_apprvl_flg , a.match_status_vchr , line.APPR_STATUS , dist.APPR_STATUS , DIST.BUSINESS_UNIT_GL , LINE.ITM_SETID , %subrec(EM_INVLINE_FLD, LINE) , %subrec(EM_DISTLINE_FLD, DIST) , %subrec(CF16_AN_SBR, DIST) , %subrec(PC_CF1_N_SBR, DIST) , LINE.DESCR254_MIXED , A.VCHR_LINE_APPR FROM PS_VOUCHER A , PS_VENDOR B , PS_VOUCHER_LINE LINE , PS_DISTRIB_LINE DIST WHERE a.vendor_setid = b.setid AND a.vendor_id = b.vendor_id AND A.BUSINESS_UNIT = LINE.BUSINESS_UNIT AND LINE.BUSINESS_UNIT = DIST.BUSINESS_UNIT AND A.VOUCHER_ID = LINE.VOUCHER_ID AND LINE.VOUCHER_ID = DIST.VOUCHER_ID AND LINE.VOUCHER_LINE_NUM = DIST.VOUCHER_LINE_NUM AND ((a.process_man_close = 'N' OR a.close_status <> 'C') ) AND a.entry_status NOT IN ('R', 'X' ) AND A.VOUCHER_STYLE <> 'TMPL' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | Character(5) | VARCHAR2(5) NOT NULL | Buyer | |
2 | Character(8) | VARCHAR2(8) NOT NULL | Voucher ID | |
3 | Number(5,0) | INTEGER NOT NULL | Voucher Line Number | |
4 | Number(5,0) | INTEGER NOT NULL | Distribution Line | |
5 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL |
Invoice Number
Prompt Table: EM_INVOI_USR_VW |
6 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
7 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
8 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
9 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
10 | INVOICE_DT | Date(10) | DATE | Invoice Date |
11 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
12 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
13 | ENTERED_DT | Date(10) | DATE | Entered on |
14 | APPR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Approval status flag used on appr_inst_log and derived records to track virtual approver status
A=Approved D=Denied P=Pending |
15 | VCHR_APPRVL_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Voucher Approval Flag
D=Default from Higher Level P=Pre-Approved S=Virtual Approver W=Approval Framework |
16 | MATCH_STATUS_VCHR | Character(1) | VARCHAR2(1) NOT NULL |
Match Status
C=Overridden - Credit Note D=Match Dispute E=Match Exceptions Exist M=Matched N=Not Applicable O=Manually Overridden T=To Be Matched |
17 | LINE_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Line Status
A=Active C=Cancelled I=Inactive O=Open P=Pending |
18 | DISTRIB_LN_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Distribution Line Status
C=Closed M=Mass Liquidated O=Open P=Unavailable for Sourcing X=Canceled |
19 | BUSINESS_UNIT_GL | Character(5) | VARCHAR2(5) NOT NULL | GL Business Unit |
20 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
21 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: %EDITTABLE13 |
22 | ALTACCT | Character(10) | VARCHAR2(10) NOT NULL |
Alternate Account
Prompt Table:
%EDIT_ALTACCT
|
23 | ACCOUNT | Character(10) | VARCHAR2(10) NOT NULL | Account |
24 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL |
Department
Prompt Table: DEPTID_BUGL_VW |
25 | OPERATING_UNIT | Character(8) | VARCHAR2(8) NOT NULL |
Operating Unit ChartField
Prompt Table: OPERUNT_BUGL_VW |
26 | PRODUCT | Character(6) | VARCHAR2(6) NOT NULL |
Product ChartField
Prompt Table: PRODUCT_BUGL_VW |
27 | FUND_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Fund Code
Prompt Table: FUND_BUGL_VW |
28 | CLASS_FLD | Character(5) | VARCHAR2(5) NOT NULL |
Class Field
Prompt Table: CLASSCF_BUGL_VW |
29 | PROGRAM_CODE | Character(5) | VARCHAR2(5) NOT NULL |
Program Code ChartField
Prompt Table: PROGRAM_BUGL_VW |
30 | BUDGET_REF | Character(8) | VARCHAR2(8) NOT NULL |
Budget Reference
Prompt Table: BUD_REF_BUGL_VW |
31 | AFFILIATE | Character(5) | VARCHAR2(5) NOT NULL |
Affiliate
Prompt Table: AFFILIATE_VW |
32 | AFFILIATE_INTRA1 | Character(10) | VARCHAR2(10) NOT NULL |
IntraUnit Affiliate1
Prompt Table: %EDIT_INTRA01 |
33 | AFFILIATE_INTRA2 | Character(10) | VARCHAR2(10) NOT NULL |
Operating Unit Affiliate
Prompt Table: %EDIT_INTRA02 |
34 | CHARTFIELD1 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion chartfield 1
Prompt Table: CF1_BUGL_VW |
35 | CHARTFIELD2 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 2
Prompt Table: CF2_BUGL_VW |
36 | CHARTFIELD3 | Character(10) | VARCHAR2(10) NOT NULL |
Expansion Chartfield 3
Prompt Table: CF3_BUGL_VW |
37 | BUSINESS_UNIT_PC | Character(5) | VARCHAR2(5) NOT NULL |
PC Business Unit
Prompt Table: %EDIT_BU_PC |
38 | PROJECT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Project Id ChartField
Prompt Table: %EDIT_PROJECT |
39 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: %EDIT_ACTIVITY |
40 | RESOURCE_TYPE | Character(5) | VARCHAR2(5) NOT NULL |
Source Type
Prompt Table:
PROJ_RESTYPE_FS
|
41 | RESOURCE_CATEGORY | Character(5) | VARCHAR2(5) NOT NULL |
Category
Prompt Table:
%EDIT_RES_CAT
|
42 | RESOURCE_SUB_CAT | Character(5) | VARCHAR2(5) NOT NULL |
Subcategory
Prompt Table:
%EDIT_RES_SUB
|
43 | ANALYSIS_TYPE | Character(3) | VARCHAR2(3) NOT NULL |
Analysis Type
Prompt Table:
%EDIT_ANALYSIS
|
44 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
45 | VCHR_LINE_APPR | Character(1) | VARCHAR2(1) NOT NULL |
Invoice Line Approval Status
0=Line Routing Not Required 1=Completed 2=Routed for Approval |