Share via


TransactionReversal_AssetGroup_IN.canTranBeReversed_DepBooks Method [AX 2012]

Determines whether an asset transaction is eligible to be reversed or revoked.

Syntax

public container canTranBeReversed_DepBooks(
    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 transaction to reverse or revoke; optional.
  • _revoke
    Type: boolean
    A Boolean value that specifies whether to validate a reversal or a revoke.

Return Value

Type: container
A container of two Boolean fields and one string: The first Boolean is the nonReverseConditionFound field. true if the transaction can be reversed or revoked; otherwise, false. The second Boolean is the origTranFound field. true if a transaction that matches the specified voucher and the specified transaction date was found; otherwise, false. The string that is returned contains the error message to display to the user.

Remarks

This method first finds the original transaction that corresponds to the specified voucher, or the specified journal number, journal line number, and transaction date. If no transaction is found, false, false, and an empty string are returned. If an original transaction is found using that transaction, it then examines all transactions that occurred after it, chronologically. If there are any unreversed, unrevoked transactions, the one that is passed in cannot be reversed, and false, true, and the appropriate error message is returned. If the original transaction is found and no reversing issues are found, then true, true, and an empty string are returned.

See Also

Reference

TransactionReversal_AssetGroup_IN Class