gtFAWriteOff
This function creates a write-off transaction for a fixed asset.
Company
The company code the Fixed Asset belongs to.
Batch
The batch number the transaction is to be posted into. A new batch is created if this does not already exist.
BatchDescription
The description for the batch.
Reference
The transaction reference number. This must be unique or an error is returned.
Posting Date
The posting date for the transaction. This determines the financial period the adjustment is posted to.
AssetCode
The fixed asset code of the transaction.
SubCode
The fixed asset subcode of the transaction.
Notes
Enter notes about the transaction if applicable.
Narration
Enter notes about the transaction if applicable.
Returns
- Not Updated - When there is no error.
- Updated - After the function has successfully been updated to Greentree.
- Error message - If an error is encountered.
Example
=gtFAWriteOff (01,1005,Write-Off Assets,5001,31/03/2004,5001,,Assessed beyond repair,)
Errors Returned
- A FA Write Off with this reference already exists.
- The posting date is not valid.
- Could not find a Fixed Asset with asset code: <code> and subcode: <subcode>.
- This batch is not a Fixed Asset Write Off batch.