EMVCH_AF_HDR_VW(SQL View) |
Index Back |
---|---|
AF Invoice Approval SearchAF Invoice Approval Search Record |
SELECT a.business_unit , a.voucher_id , a.appr_status , a.vchr_apprvl_flg , a.cur_rt_source , a.txn_currency_cd , a.merchandise_amt , a.rt_type , a.rate_div , a.rate_mult , a.oprid , a.oprid_last_updt FROM PS_VOUCHER a , PS_EM_BUY_REG_TBL B , ps_bus_unit_tbl_ap c WHERE a.vchr_apprvl_flg = 'W' AND a.business_unit = c.business_unit AND ((c.match_apprv_flg = 'N') OR (c.match_apprv_flg = 'Y' AND a.match_status_vchr = 'N')) AND a.BUSINESS_UNIT = B.BUSINESS_UNIT AND B.em_use_ap_approval = 'N' AND a.VCHR_SRC IN ('SSI','XML','DCM','EXL') AND EXISTS ( SELECT 'X' FROM PS_EM_AGREEMENT g , PS_SET_CNTRL_REC i WHERE i.setid = g.SETID AND a.BUSINESS_UNIT = i.setcntrlvalue AND i.rec_group_id = 'EM_01' AND i.recname = 'EM_AGREEMENT' AND a.vendor_setid = g.vendor_setid AND a.vendor_id = g.vendor_id AND a.vndr_loc = g.vndr_loc) |
# | 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 |
2 | VOUCHER_ID | Character(8) | VARCHAR2(8) NOT NULL |
Voucher ID
Default Value: NEXT |
3 | 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 |
4 | 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 |
5 | CUR_RT_SOURCE | Character(1) | VARCHAR2(1) NOT NULL |
Exchange Rate Source
T=Use Exchange Rate Tables U=User Specified |
6 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
7 | MERCHANDISE_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label |
8 | RT_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines a category of market rates for currency conversion. Some examples of rate types are commercial, average, floating, and historical. |
9 | RATE_DIV | Number(16,8) | DECIMAL(15,8) NOT NULL | Rate Divisor |
10 | RATE_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Rate Multiplier |
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 |