ASSET_COMP_MCJP

(SQL View)
Index Back

JPN Composite Depreciation


SELECT A.BUSINESS_UNIT , A.ASSET_ID , %DecMult(%ROUND( %DECDIV(SUM(C.AMOUNT),(SUM(%DECDIV(%DECMULT(C.AMOUNT,12),B.LIFE)))) - 0.5, 0),12) FROM PS_ASSET A , PS_ASSET B , PS_ASSET_ACQ_DET C WHERE A.BUSINESS_UNIT=B.BUSINESS_UNIT AND A.BUSINESS_UNIT=C.BUSINESS_UNIT AND A.ASSET_ID=B.COMPOSITE_ID AND A.COMPOSITE_SW='Y' AND B.ASSET_ID=C.ASSET_ID AND B.LIFE <> 0 GROUP BY A.BUSINESS_UNIT, A.ASSET_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 ASSET_ID Character(12) VARCHAR2(12) NOT NULL Asset Identification
3 LIFE Number(4,0) SMALLINT NOT NULL Useful Life