AP_WC_VCHPND_VW(SQL View) |
Index Back |
---|---|
AP Workcenter Pending ApprovalAP Workcenter Pending Approval |
SELECT DISTINCT A.BUSINESS_UNIT , A.VOUCHER_ID , A.VENDOR_SETID , A.VENDOR_ID , B.VENDOR_NAME_SHORT , B.NAME1 , A.INVOICE_ID , A.INVOICE_DT , A.GROSS_AMT , A.TXN_CURRENCY_CD , A.OPRID , A.OPRID_LAST_UPDT , A.ORIGIN , A.VOUCHER_STYLE , A.VCHR_SRC , A.ENTERED_DT , A.APPR_STATUS FROM PS_VOUCHER A , PS_VENDOR B , PS_VCHR_AF_XREF C WHERE A.VENDOR_SETID = B.SETID AND A.VENDOR_ID = B.VENDOR_ID AND A.ENTRY_STATUS <> 'X' AND A.APPR_STATUS = 'P' AND C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.VOUCHER_ID = A.VOUCHER_ID AND C.EOAWTHREAD_ID = ( SELECT MAX(CC.EOAWTHREAD_ID) FROM PS_VCHR_AF_XREF CC WHERE CC.BUSINESS_UNIT = C.BUSINESS_UNIT AND CC.VOUCHER_ID = C.VOUCHER_ID) AND C.EOAWTHREAD_STATUS IN ('P','S') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | VOUCHER_ID | Character(8) | VARCHAR2(8) NOT NULL | Voucher ID |
3 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
4 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
5 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
6 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
7 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL | Invoice Number |
8 | INVOICE_DT | Date(10) | DATE | Invoice Date |
9 | GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Invoice Amount |
10 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
11 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
12 | OPRID_LAST_UPDT | Character(30) | VARCHAR2(30) NOT NULL | Last User to Update |
13 | ORIGIN | Character(3) | VARCHAR2(3) NOT NULL | Origin |
14 | VOUCHER_STYLE | Character(4) | VARCHAR2(4) NOT NULL |
Voucher Style
ADJ=Adjustments AMR=Amortization Voucher CLBK=Claim Voucher CORR=Reversal Voucher JRNL=Journal Voucher PPAY=Prepaid Voucher REG=Regular Voucher RGTR=Register Voucher SGLP=Single Payment Voucher THRD=Third Party Voucher TMPL=Template Voucher |
15 | VCHR_SRC | Character(4) | VARCHAR2(4) NOT NULL | Voucher Source |
16 | ENTERED_DT | Date(10) | DATE | Entered on |
17 | 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 |