MGCLatticeFixedAssetService.reverseAssetTransaction
Reverses a posted fixed asset voucher of a book with the standard fixed asset transaction reversal (TransactionReversal_Asset, the fixed asset transactions page's Reverse transaction), called as the standard reversal provider (AssetTransactionReversal) calls it, with a TransactionReversalContract so no dialog is shown: the ledger voucher and every asset transaction of the voucher are reversed and the book is updated (a reversed acquisition, depreciation or disposal resets the book as the standard reversal does), in one transaction.
- HTTP method:
POST - Route:
/api/services/MGCLatticeFixedAssetsServiceGroup/MGCLatticeFixedAssetService/reverseAssetTransaction - Service class:
MGCLatticeFixedAssetService
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
_request | MGCLatticeFixedAssetReversalRequestContract | No | The request containing AssetId (or AssetIdExternalKey), AssetBookId, Voucher, TransactionDate (only when the voucher has several dates), ReversalDate, ReasonCode, ReasonComment and the standard header fields. |
Returns
MGCLatticeOrderOperationResponseContract
An MGCLatticeOrderOperationResponseContract: DocumentId is the reversed voucher, PostedDocumentId the reversal voucher.
Security
- Requires privilege
MGCLatticeFixedAssetsReverseMaintain