I want to create ledger Journal lines (LedgerJournaltrans table ) .
Question 1 : I want to make account type = project and put project id in account
How can I do this ? I can't find how to put project id in account (Ledger Dimension)
Question2 : How Can I add new Voucher (It put automatic when clicking on new button not add by user )
Which Method do this ?
Thank you it works well .
Here, you can specify the main account to be project.
ledgerjournalTrans.initValue(); ledgerJournalTrans.AccountType = LedgerJournalACType::Project; ledgerJournalTrans.TransactionType = LedgerTransType::Project; ledgerJournalTrans.LedgerDimension = LedgerDynamicAccountHelper::getDynamicAccountFromAccountNumber(projTable.ProjId,LedgerJournalACType::Project);
You can get the voucher from the ledgerjournalname
voucher = NumberSeq::newGetVoucherFromId((ledgerjournalname.NumberSequenceTable)).voucher(); ledgerJournalTrans.Voucher = voucher;
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156