Posts

Showing posts with the label Ledger dimensions

Get ledger dimension from Main account with combination default dimension in ledgers

 Hi Viewers If you want to get ledger dimension based on only main account. please check below code.         RecId mainAccountRecId =  MainAccount::findByMainAccountIdAndCOA(mainaccount, LedgerChartOfAccounts::current()).RecId;         RecId defaultDimension = MainAccountLegalEntity::findByMainAccountLegalEntity(mainAccountRecId, CompanyInfo::find().RecId).DefaultDimension;         ledgerjournalTrans.LedgerDimension = LedgerDimensionFacade::serviceCreateLedgerDimension(LedgerDefaultAccountHelper::getDefaultAccountFromMainAccountIdAndCOA(mainaccount, LedgerChartOfAccounts::current()), defaultDimension);         ledgerjournalTrans.DefaultDimension = defaultDimension;

Get customer from dynamic accounts ledger dimensions.

Image
 Hi Viewers, To get customer record from custTable from ledger dimension we can use standard method as below.