gtFAMasterDepnRates
This function provides the accounting & tax depreciation details for a Fixed Asset. The function can be used to supplement the function gtFAMasterMain if additional parameters must be set up or updated to Greentree.
Company
The company code the fixed asset belongs to.
Code
This is the code of the fixed asset that is to be updated with details.
SubCode
This is the fixed asset subcode.
Note: The remaining parameters are optional. If not specified, each parameter is set to the value from the analysis code/depreciation code for the asset. If the first rate is being established, details is set according to the analysis code for the asset.
AccCostLim
The maximum amount allowed for calculating depreciation for accounting purposes. It must be numeric or omitted.
AccDepnRate
The depreciation to use for accounting purposes for the fixed asset. It must be numeric or omitted.
Acc1stYr
This is the rate for depreciation to use in the first year for accounting purposes. It must be numeric or omitted.
AccLife
The number of years that the fixed asset can be depreciated for accounting purposes. It must be numeric or omitted.
AccPvtUse
The percentage allocated to private use for the fixed asset for accounting purposes. It must be numeric or omitted.
AccRes
The valuation of the fixed asset for accounting purposes at the end of its lifetime. It must be numeric or omitted.
AccFreq
This is the frequency that depreciation is to be calculated for accounting purposes. This can be Daily, Monthly, Half Yearly, or Annually, or omitted.
AccMethod
The tax calculation method to use for the fixed asset, for accounting purposes. This can be Diminishing, Straight Line, or None, or omitted.
AccSusDate
This is the cutoff date before which accounting depreciation is suspended. The date must be in the format dd/mm/yyyy, or omitted.
AccDepCode
This is the depreciation code to use for the fixed asset, for accounting purposes.
AccBV
This indicates whether the accounting depreciation details are to be applied to the original cost or current book value. If set to:
- False, then the depreciation details are to be applied based on the original cost (straight-line method) or opening book value (diminishing value).
- True, then the depreciation details are to be applied based on the current book value of the asset, as at the effective date of the depreciation details.
TaxCostLim
The maximum amount allowed for calculating tax depreciation. It must be numeric or omitted.
TaxDepRate
The depreciation to use for tax purposes for the fixed asset. It must be numeric or omitted.
Tax1stYr
This is the rate for tax depreciation to use in the first year. It must be numeric or omitted.
TaxLife
The number of years that the fixed asset can be depreciated for tax purposes. It must be numeric or omitted.
TaxPrvtUse
The percentage allocated to private use for the fixed asset for tax purposes. It must be numeric or omitted.
TaxRes
The valuation of the fixed asset for tax purposes at the end of its lifetime. It must be numeric or omitted.
TaxFreq
This is the frequency that depreciation is to be calculated for tax purposes. This can be Daily, Monthly, Half Yearly, or Annually, or omitted.
TaxMethod
The tax calculation method to use for the fixed asset, for tax purposes. This can be Diminishing, Straight line, or None, or omitted.
TaxSusDate
This is the cutoff date before which tax depreciation is suspended. The date must be in format dd/mm/yyyy or omitted.
TaxDepCode
This is the depreciation code to use for the fixed asset, for tax purposes.
TaxBV
This indicates whether the tax depreciation details are to be applied to the original cost or current book value. If set to:
- False, then the depreciation details are to be applied based on the original cost (straight-line method) or opening book value (diminishing value).
- True, then the depreciation details are to be applied based on the current book value of the asset, as at the effective date of the depreciation details.
EffDate
This is the date on which the depreciation rate details start to apply. If the Effective Date is not specified here, the effective date on both accounting and tax rates is set to the beginning of the current FA period.
If the Tax and Accounting are the same option is set on the Fixed Assets Module Control form, then a check is done for differences between tax and accounting depreciation details, and if any are found, an error message is given, and the import of rate details fails.
Returns
- Not Updated - if no error is encountered
- Updated - after Update Fixed Asset Other is run
- Error message - if an error is encountered
Example
gtFAMasterAccgDepn(01,1001,0,,20,,,,,Monthly,DM20,,)
Errors Returned
- Must have a Company identifier
- Must have a Fixed Asset Code
- Must have a Fixed Asset Sub Code
- AccCostLimit must be numeric or omitted
- AccDepnRate must be numeric or omitted
- AccFirstYear must be numeric or omitted
- AccLife must be numeric or omitted
- AccPrivateUse must be numeric or omitted
- AccResidual must be numeric
- AccSuspendDate must be in format dd/mm/yyyy