ReasonFormTable.validateDelete Method [AX 2012]
Validates whether the record passed in can be deleted, based on which module opened the form.
public boolean validateDelete(ReasonTable _reasonTable)
Run On
CalledParameters
- _reasonTable
- Type: ReasonTable Table
The record to validate.
The validation return value will be:
-
true if all reason code type fields (bank, cust, ledger, vend, asset) are false
-
true if reasonCodeAccountType is asset; and bank, cust, ledger, and vend fields are false
-
true if reasonCodeAccountType is bank; and asset, cust, ledger, and vend fields are false
-
true if reasonCodeAccountType is cust; and bank, asset, ledger, and vend fields are false
-
true if reasonCodeAccountType is ledger; and bank, cust, asset, and vend fields are false
-
true if reasonCodeAccountType is vend; and bank, cust, ledger, and asset fields are false
-
otherwise, false