EM_SPAGING1_RVW(SQL View) |
Index Back |
---|---|
Supplier Aging Balance ViewThis record is used in the 4th grid of the Aging Balance = Totals |
SELECT SEC.OPRID , P.TXN_CURRENCY_CD , RT.TO_CUR , V.VENDOR_ID , VEN.NAME1 , V.VNDR_LOC , VEN.VENDOR_NAME_SHORT , V.BUSINESS_UNIT , BU.DESCRSHORT , RT.RT_TYPE , P.DUE_DT , P.PYMNT_HOLD , 'R' ,%Sql(EM_ROUND_DEC_MULT_DIV_PRTC) FROM PS_VOUCHER V , PS_PYMNT_VCHR_XREF P , PS_RT_RATE_TBL RT , PS_VENDOR_USER SEC , PS_BUS_UNIT_TBL_FS BU , PS_VENDOR VEN , PS_CURRENCY_CD_TBL C WHERE SEC.SETID=V.VENDOR_SETID AND SEC.VENDOR_ID = V.VENDOR_ID AND VEN.SETID = SEC.SETID AND VEN.VENDOR_ID = SEC.VENDOR_ID AND V.BUSINESS_UNIT = P.BUSINESS_UNIT AND V.VOUCHER_ID = P.VOUCHER_ID AND V.VOUCHER_STYLE<>'PPAY' AND V.ENTRY_STATUS <> 'X' AND ( V.PROCESS_MAN_CLOSE = 'N' OR V.CLOSE_STATUS <> 'C') AND P.PYMNT_SELCT_STATUS NOT IN ('P','X','E') AND P.PYMNT_TYPE <> 'W' AND P.DUE_DT IS NOT NULL AND BU.BUSINESS_UNIT = V.BUSINESS_UNIT AND RT.RT_RATE_INDEX = ( SELECT DISTINCT RATE.RT_RATE_INDEX FROM PS_INSTALLATION_EM RATE ) AND RT.TERM = 0 AND RT.FROM_CUR = V.TXN_CURRENCY_CD AND RT.EFFDT = ( SELECT MAX(EFFDT) FROM PS_RT_RATE_TBL RT1 WHERE RT1.RT_RATE_INDEX = RT.RT_RATE_INDEX AND RT1.TERM = RT.TERM AND RT1.RT_TYPE = RT.RT_TYPE AND RT1.FROM_CUR = RT.FROM_CUR AND RT1.TO_CUR = RT.TO_CUR AND RT1.EFFDT <= %CurrentDateIn) AND RT.RATE_DIV <>0 AND P.PYMNT_GROSS_AMT >= 0 AND C.CURRENCY_CD = RT.TO_CUR AND C.EFF_STATUS = 'A' AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_CURRENCY_CD_TBL C1 WHERE C1.CURRENCY_CD = C.CURRENCY_CD AND C1.EFFDT <= %CurrentDateIn) |
# | 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 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
3 | TO_CUR | Character(3) | VARCHAR2(3) NOT NULL | To Currency Code |
4 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
5 | NAME1 | Character(40) | VARCHAR2(40) NOT NULL | Name 1 |
6 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
7 | VENDOR_NAME_SHORT | Character(14) | VARCHAR2(14) NOT NULL | Short Vendor Name |
8 | EM_BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Buyer |
9 | EM_BU_NAME_SHORT | Character(10) | VARCHAR2(10) NOT NULL | Buyer Short Name |
10 | 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. |
11 | DUE_DT | Date(10) | DATE | Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received. |
12 | PYMNT_HOLD | Character(1) | VARCHAR2(1) NOT NULL |
Hold Payment
N=No Y=Yes |
13 | EM_TYPE | Character(1) | VARCHAR2(1) NOT NULL | Type |
14 | EM_TOTAL_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | EBPP-Added 2000/10/01-Last Mod 2000/10/19 by Matthias Davet Total amount |