EX_RCPT_SRCH_VW(SQL View) |
Index Back |
---|---|
Receipt Verification SearchSearch view of expense sheets whose receipts have not been verified. |
SELECT C.OPRID , A.SHEET_ID , A.SHEET_NAME , B.NAME , A.EMPLID , A.SHEET_STATUS , A.CREATION_DT , A.RECEIPTS_RECEIVED , %DatePart(A.RCPT_RECEIVED_DT) FROM PS_EX_SHEET_HDR A , PS_PERSONAL_DATA B , PSOPRDEFN C WHERE A.RECEIPT_VERIFIED = 'N' AND (A.SHEET_STATUS IN ('SUB', 'HLD', 'HDA', 'HDU', 'PAR', 'RAP', 'APY', 'STG') OR (A.SHEET_STATUS = 'PD' AND EXISTS ( SELECT 'X' FROM PS_EX_TRANS_DEFN D , PS_EX_TRANS_PROP H WHERE D.SETID = ( SELECT G.SETID FROM PS_SET_CNTRL_GROUP G WHERE G.SETCNTRLVALUE = A.BUSINESS_UNIT_GL AND G.REC_GROUP_ID = ( SELECT F.REC_GROUP_ID FROM PS_REC_GROUP_REC F WHERE F.RECNAME = 'EX_APPRVR_TYPE')) AND D.APPR_TRANS_TYPE = 'ER' AND D.EFFDT = ( SELECT MAX(E.EFFDT) FROM PS_EX_TRANS_DEFN E WHERE E.SETID = D.SETID AND E.APPR_TRANS_TYPE = D.APPR_TRANS_TYPE AND D.EFFDT <= A.SUBMISSION_DATE) AND D.EFF_STATUS = 'A' AND H.SETID = D.SETID AND H.APPR_TRANS_TYPE = 'ER' AND H.EFFDT = D.EFFDT AND H.EOAWPRCS_ID = 'ERPostAudit' AND H.STATUS = 'Y'))) AND A.RCPT_VERIF_LEVEL IN ('B', 'V') AND B.EMPLID = A.EMPLID AND A.EMPLID NOT IN ( SELECT X.EMPLID FROM PSOPRDEFN X WHERE X.OPRID = C.OPRID) AND ((NOT EXISTS ( SELECT 'X' FROM PS_EX_ER_RCPT_VW J WHERE J.SHEET_ID = A.SHEET_ID))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | OPRID | Character(30) | VARCHAR2(30) NOT NULL | A user's ID (see PSOPRDEFN). |
2 | SHEET_ID | Character(10) | VARCHAR2(10) NOT NULL | Report ID |
3 | SHEET_NAME | Character(30) | VARCHAR2(30) NOT NULL | Report Description |
4 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
5 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: EX_EMPLID_VW |
6 | SHEET_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Report Status
APY=Approved for Payment APZ=Approved For Zero Payment CLS=Closed DEN=Denied DNA=Denied by Approver DNU=Denied by Auditor ESC=Escheated Payment HDA=On Hold, with Approver HDU=On Hold, with Auditor HLD=On Hold MFS=Marked for Submit OPN=Open PAR=Approvals in Process PD=Paid PND=Pending PRO=In Process RAP=Approved SFA=Submission in Process STG=Staged SUB=Submitted for Approval XML=Submitted, Pending Validation |
7 | CREATION_DT | Date(10) | DATE | Creation Date |
8 | RECEIPTS_RECEIVED | Character(1) | VARCHAR2(1) NOT NULL | Receipts Received |
9 | RECEIVED_DT | Date(10) | DATE | Specifies the date that a group of pending items was received by the organization. This date may be earlier or the same as the date that the items were actually entered into the system (ENTRY_DT). |