PC_JOBC_RT_LKP

(SQL View)
Index Back

Effective Jobcode Daily Rates

View of jobcode daily rates by Business Unit.

SELECT A.BUSINESS_UNIT , B.JOBCODE , B.CURRENCY_CD , A.RT_TYPE , C.UNIT_OF_MEASURE_TO , %Round((%DecDiv(B.COST_RATE, C.CONVERSION_RATE)), 3) , %Round((%DecDiv(B.BILL_RATE, C.CONVERSION_RATE)), 3) FROM %Table(BUS_UNIT_TBL_PC) A , %Table(PC_RATE_JOBC) B , %Table(UNITS_CVT_TBL) C , %Table(SET_CNTRL_REC) CNTRL WHERE CNTRL.RECNAME = 'PC_RATE_JOBC' AND CNTRL.SETCNTRLVALUE = A.BUSINESS_UNIT AND B.SETID = CNTRL.SETID AND B.UNIT_OF_MEASURE = C.UNIT_OF_MEASURE AND C.CONVERSION_RATE <> 0 AND B.EFFDT = ( SELECT MAX(X.EFFDT) FROM %Table(PC_RATE_JOBC) X WHERE %Join(COMMON_KEYS, PC_RATE_JOBC B, PC_RATE_JOBC X, EFFDT) AND X.EFFDT <= %CurrentDateIn)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
3 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
4 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.
5 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
6 COST_RATE Number(27,3) DECIMAL(26,3) NOT NULL Cost Rate
7 BILL_RATE Number(27,3) DECIMAL(26,3) NOT NULL Billing Rate