AssetLedgerAccounts::findForAllocationRule_CN Method
Retrieves the transaction posting profile setup with its allocation rule.
Syntax
client server public static AssetLedgerAccounts findForAllocationRule_CN(
AssetId _assetId,
AssetBookId _assetBookId,
AssetTransType _assetTransType,
[AssetPostingProfile _assetPostingProfile])
Run On
Called
Parameters
- _assetId
Type: AssetId Extended Data Type
The fixed asset.
- _assetBookId
Type: AssetBookId Extended Data Type
The asset book of the fixed asset.
- _assetTransType
Type: AssetTransType Enumeration
The transaction type of the fixed asset.
- _assetPostingProfile
Type: AssetPostingProfile Extended Data Type
The posting profile to use; optional.
Return Value
Type: AssetLedgerAccounts Table
The record of type AssetLedgerAccounts which meet the criteria, containing the AssetAllocationRule field.
Remarks
This method makes up to three attempts to find the AssetLedgerAccounts.
If the _assetPosingProfile parameter is not specified, the method will use the profile that is stored in the AssetParameters table.