EM_MTRCBH_VW6S

(SQL View)
Index Back

Buyer Home - Proposals

Returns a summary of the number of vouchers Proposals. Used in the Buyer Home metric.

SELECT A.OPRID , 'Z' , B.XLATLONGNAME , COUNT(*) , SUM(A.CUR_TOT_INV_AMT) FROM PS_EM_PRO_SUPPL_VW A , PSXLATITEM B WHERE B.FIELDNAME = 'PROPOSAL_STATUS' AND B.FIELDVALUE = 'P' 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 PROPOSAL_COUNT Number(12,0) DECIMAL(12) NOT NULL Proposal Count
5 CUR_TOT_INV_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Current total invoice amount