AP_VCHR_ITM_VW2

(SQL View)
Index Back

Voucher Item View

Voucher Item View

SELECT A.ITM_SETID AS VENDOR_SETID , A.VENDOR_ID , R.TO_CUR , A.ITM_SETID AS SETID , A.INV_ITEM_ID , A.UNIT_OF_MEASURE , A.CURRENCY_CD , A.BUSINESS_UNIT , B.SCHEDULED_PAY_DT , SUM(A.MERCHANDISE_AMT) ,SUM(A.QTY_VCHR) , SUM(%Round(%DecMult(%DecDiv(A.MERCHANDISE_AMT, R.RATE_DIV), R.RATE_MULT), C.DECIMAL_POSITIONS)) FROM PS_VOUCHER_LINE A , PS_AP_SCHD_INQ_VW B , PS_VOUCHER H , PS_RT_RATE_TBL R , PS_CURRENCY_CD_TBL C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND A.BUSINESS_UNIT = H.BUSINESS_UNIT AND A.VOUCHER_ID = H.VOUCHER_ID AND A.INV_ITEM_ID <> ' ' AND A.UNIT_OF_MEASURE <>' ' AND A.VENDOR_ID <> ' ' AND R.RT_RATE_INDEX = ( SELECT RT_RATE_INDEX FROM PS_RT_INDEX_TBL WHERE DEFAULT_INDEX = 'Y') AND R.TERM = 0 AND R.FROM_CUR = A.CURRENCY_CD AND R.RT_TYPE = H.RT_TYPE AND R.EFFDT = ( SELECT MAX(R_ED.EFFDT) FROM PS_RT_RATE_TBL R_ED WHERE R.RT_RATE_INDEX = R_ED.RT_RATE_INDEX AND R.TERM = R_ED.TERM AND R.FROM_CUR = R_ED.FROM_CUR AND R.TO_CUR = R_ED.TO_CUR AND R.RT_TYPE = R_ED.RT_TYPE AND R_ED.EFFDT <= %CurrentDateIn) AND C.CURRENCY_CD = R.TO_CUR AND C.EFFDT = ( SELECT MAX(C2.EFFDT) FROM PS_CURRENCY_CD_TBL C2 WHERE C2.CURRENCY_CD = C.CURRENCY_CD AND C2.EFFDT <= %CurrentDateIn) GROUP BY A.ITM_SETID, A.VENDOR_ID, R.TO_CUR, A.ITM_SETID, A.INV_ITEM_ID,A.UNIT_OF_MEASURE, A.CURRENCY_CD, A.BUSINESS_UNIT, B.SCHEDULED_PAY_DT

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
2 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
3 CURRENCY_CD1 Character(3) VARCHAR2(3) NOT NULL Currency Code
4 ITM_SETID Character(5) VARCHAR2(5) NOT NULL Item SetID
5 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
6 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
7 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
8 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
9 SCHEDULED_PAY_DT Date(10) DATE Scheduled to Pay
10 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
11 QTY_VCHR Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Vouchered
12 CONV_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Amount