Share via


TransactionReversal_Asset.checkAssetStatusApplicable Method [AX 2012]

Validates all transactions for reversal or revoke based on type and status.

Syntax

public container checkAssetStatusApplicable(
    Voucher _voucher, 
    AssetTransDate _transDate, 
    AssetJournalId _journalNumber, 
    LineNum _journalLineNum, 
    boolean _revoke)

Run On

Called

Parameters

  • _journalLineNum
    Type: LineNum Extended Data Type
    The journal line number of the depreciation book transactions to reverse or revoke; optional
  • _revoke
    Type: boolean
    A Boolean value that specifies whether the transactions will be revoked or reversed.

Return Value

Type: container
A container that holds a Boolean value and a string.
The Boolean value is set to true if all asset statuses found are acceptable to reverse or revoke the transactions; otherwise, false.
The error message states why the transaction could not be reversed or revoked.

Remarks

This method loops through select transactions in all the value models and depreciation books of the asset. It then verifies that the asset status is appropriate for the transaction type that will be reversed or revoked. The transactions are selected based on the voucher and transaction date passed in. Or, for the asset depreciation books that do not have voucher numbers, they are selected based on journal number and journal line number.

See Also

Reference

TransactionReversal_Asset Class