Help with Invoice Journals

portect
portect Member Posts: 9
edited 2009-01-06 in Dynamics AX
I was able to easily create an invoice journal in AX2009 when the AccountType is Customer because LedgerJournalTrans has a method called initFromCustTable.

Now my problem is how can I initialize if the AccountType is other than Customer, say Vendor or Ledger? Because LedgerJournalTrans does not have method for these AccountTypes. can someone show simple codes or links please. Thanks.