EM_MTRCBH_VW2S(SQL View) |
Index Back |
---|---|
Buyer Home - DisputesReturns a summary of the number of vouchers in dispute. Used in the Buyer Home metric. |
SELECT A.OPRID , 'D' , B.XLATLONGNAME , ' ' , COUNT(*) , SUM(A.PYMNT_GROSS_AMT) FROM PS_EM_DISPUTES_VW A , PSXLATITEM B WHERE B.FIELDNAME = 'EM_INV_PYMNT_STAT' AND B.FIELDVALUE = 'D' AND B.EFF_STATUS = 'A' AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PSXLATITEM B1 WHERE B1.FIELDNAME = B.FIELDNAME AND B1.FIELDVALUE = B.FIELDVALUE AND B1.EFFDT <= %CurrentDateIn) GROUP BY A.OPRID, B.XLATLONGNAME |
# | 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 | EM_INV_PYMNT_STAT | Character(1) | VARCHAR2(1) NOT NULL |
Field used to display the various statuses of invoices and payments that a Buyer would need to review. Used on charts.
B=Invoice Balance D=Invoices in Dispute E=Review Exceptions I=Invoices Pending Approval M=Invoices to Approve O=Past Due P=Payments to Approve S=Supplier - Dispute V=Invoices to Verify X=Discount Proposals Y=Discount Offers Z=Pending Messages |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | CURRENCY_PYMNT | Character(3) | VARCHAR2(3) NOT NULL | Payment Currency |
5 | INVOICE_COUNT | Number(12,0) | DECIMAL(12) NOT NULL | Invoice Count |
6 | GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Invoice Amount |