AssetNote
MDepreciationWorkfile
MDepreciationWorkfile store importance asset value like cost, remain cost, Accumulated value, account date, current period,..
MDepreciationWorkfile normal has 3 method for 3 purpose
- getA_xxxx => natual value
- getA_xxxx_F => natual value for Fiscal
- getxxx => calculator value on fly
It has 2 special method for get fiscal value
- getxxx(,,,, isFiscal)) => get natual/calculator value for normal or fiscal by parameter
- setFiscal (sFiscal) => get natual/calculator value for normal or fiscal by set flag after call setFiscal, method getxxx wiil depend on the flag to return normal or fiscal
importance vallue
- Remaining Cost remain cost store on database (column A_Asset_Remaining) = asset cost - Accumulated depreciated to get true remain cost (exclude Salvage vallue) use getRemainingCost
- getActualCost exclude Salvage vallue
Importance method
- buildDepreciation => to build/rebuild un-depreciation for each period
MDepreciationExp
store depreciation for each period, it's create for all periods of asset, run "Post Depreciation Entry" to postting
importance method
-
updateFrom(updateFrom) it call when create MDepreciationExp and also when posting (process) MDepreciationExp to store value
- A_Asset_Cost
- A_Accumulated_Depr (F)
- UseLifeMonths (F)
- A_Asset_Remaining (F) (remain without exclude Salvage value)
Because after process each depreciation Accumulated, Remaining will change so this value on MDepreciationExp difference before and after process