我在SSRS中遇到問題固定資產折舊報告是如何計算折舊值的? 我計算與該式((ACQUISITIONPRICE /折舊週期)*折舊剩餘),但該值不正確,讓我們採取一個實例,Dynamics AX 2009:計算固定資產折舊
由assetid,ASSETGROUP,NAME,LIFETIME,LIFETIMEREST,ACQUISITIONPRICE
BLDRNV53,大廈R,防水工作,60,-57,370
計算在SQL查詢:
SELECT ASSETTABLE.ASSETID, ASSETTABLE.ASSETGROUP, ASSETTABLE.NAME, (ASSETBOOK.LIFETIMEREST * (ASSETBOOK.ACQUISITIONPRICE/ASSETBOOK.LIFETIME)) as AccDep
FROM ASSETBOOK INNER JOIN
ASSETTABLE ON ASSETBOOK.ASSETID = ASSETTABLE.ASSETID AND ASSETBOOK.DATAAREAID = ASSETTABLE.DATAAREAID
WHERE (ASSETBOOK.DEPRECIATION = 1) AND ASSETBOOK.STATUS = 1
例如: ((370/60)* -57)= -351.5但是系統報告正在計算-350.550之間存在0.95差值,整個折舊值有這樣的小差異。
請幫助
計算是在數據庫查詢中完成還是在報表中使用表達式?請提供查詢或表達式的代碼 – Bryan 2012-02-14 17:22:15
在數據庫查詢中: – 2012-02-14 19:43:45