LedgerJournalTable.mainAccountType Method
Gets the main account type of the voucher for the current journal.
Syntax
public LedgerJournalACType mainAccountType(Voucher _voucher)
Run On
ClientOrServer
Parameters
- _voucher
Type: Voucher Extended Data Type
The voucher in the current journal to evaluate.
Return Value
Type: LedgerJournalACType Enumeration
The main account type of the voucher.
Remarks
The project account type is considered the most important type and overrules the other accounts.If more than one account is of type Cust or Vend, the main account is considered a Ledger account.