VCHR_AF_APP_SRC(SQL View) |
Index Back |
---|---|
Voucher Approval SearchVoucher Approval Search Record |
SELECT a.business_unit , a.voucher_id , a.invoice_id , a.pay_amt , a.invoice_dt , a.vendor_setid , b.vendor_name_short , a.vendor_id , b.name1 , a.appr_status FROM PS_VOUCHER a , ps_vendor b , ps_bus_unit_tbl_ap c WHERE a.vendor_setid = b.setid AND a.vendor_id = b.vendor_id AND a.vchr_apprvl_flg = 'W' AND a.close_status <> 'C' AND a.process_man_close <> 'Y' AND a.entry_status <> 'X' AND (((a.vchr_src IN ('AMLS', 'ARCR', 'BILL', 'CLBK', 'CNTR', 'CONS', 'EDI', 'FRE', 'MTCH', 'NERS', 'ONL', 'PAYR', 'PBIL', 'PERS', 'PPAY', 'PROC', 'QUCK', 'RBCR', 'RETL', 'RPOV', 'RTV', 'SAD', 'SPRO', 'TRPM', 'XLS', 'PRQ')) OR (A.vchr_src IN ('XML','DCM') AND NOT EXISTS ( SELECT 'X' FROM PS_EM_BUY_REG_TBL H , PS_EM_AGREEMENT g , PS_SET_CNTRL_REC i WHERE i.setcntrlvalue = a.business_unit AND i.rec_group_id = 'EM_01' AND i.recname = 'EM_AGREEMENT' AND i.setid = g.setid AND H.BUSINESS_UNIT = a.BUSINESS_UNIT AND a.vendor_setid = g.vendor_setid AND a.vendor_id = g.vendor_id AND a.vndr_loc = g.vndr_loc))) OR a.vchr_src IN ('SSI','XML','DCM','EXL') AND EXISTS ( SELECT 'X' FROM PS_EM_BUY_REG_TBL HH WHERE HH.BUSINESS_UNIT = A.BUSINESS_UNIT AND HH.EM_USE_AP_APPROVAL = 'Y')) AND A.APPR_STATUS IN ('P','D') AND C.BUSINESS_UNIT = A.BUSINESS_UNIT AND ((C.MATCH_APPRV_FLG = 'N' AND A.MATCH_STATUS_VCHR IN ('M','O','N')) OR (C.MATCH_APPRV_FLG = 'Y' AND A.MATCH_STATUS_VCHR = 'N')) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL |
Business Unit
Default Value: OPR_DEF_TBL_FS.BUSINESS_UNIT Prompt Table: SP_BU_AP_NONVW |
2 | VOUCHER_ID | Character(8) | VARCHAR2(8) NOT NULL | Voucher ID |
3 | INVOICE_ID | Character(30) | VARCHAR2(30) NOT NULL | Invoice Number |
4 | GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Invoice Amount |
5 | INVOICE_DT | Date(10) | DATE | Invoice Date |
6 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Vendor SetID
Default Value: VENDOR.SETID |
7 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
8 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Identifier
Default Value: VENDOR_SHRT_VW.VENDOR_ID Prompt Table: VENDOR_PRIM_VW |
9 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
10 | 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 Default Value: P |