I just need to pass start date, end date and account.
The next code only get the total with out details
ledgerBalance = LedgerBalanceMainAccountAmounts::construct ();
ledgerBalance.parmIncludeRegularPeriod(true);
ledgerBalance.parmAccountingDateRange(FiscalCalendar, endDate);
ledgerBalance.calculateBalance(MainAccount::findByMainAccountId('21000200010001'));
AccountingCurrencyBalance = ledgerBalance.getAccountingCurrencyBalance();
At the moment I am reviewing the LedgerTransListAccount classes
Thanks in advance