CustLedgerAccounts::writeOffLedgerDimension Method
Finds the write-off account in the posting profile by using the parameters.
Syntax
server public static LedgerDimensionDefaultAccount writeOffLedgerDimension(CustAccount _custAccount, CustPostingProfile _custPostingProfile)
Run On
Server
Parameters
- _custAccount
Type: CustAccount Extended Data Type
The customer account number to use to find the write-off account.
- _custPostingProfile
Type: CustPostingProfile Extended Data Type
The posting profile ID to use to find the write-off account.
Return Value
Type: LedgerDimensionDefaultAccount Extended Data Type
The write-off ledger dimension.
Exceptions
Exception | Condition |
---|---|
Error | The profile ID parameter is blank and no post profile is available in the accounts receivable parameters. |
Remarks
When the posting profile ID parameter is blank, the posting profile in the account receivable parameters table will be used to find the write off account.When the customer account number parameter is blank, this method will only look for the all record in the posting profile.