Problem:

When working with a journal line that does not have an offset account and accessing the breakdown of voucher form a second time, additional lines are displayed.

Resolution:

To resolve this issue the following changes can be made.

Change \Classes\LedgerJournalSplitPosting\initFromJournal

From:

...

if (ledgerJournalTransLines.OffsetAccountType == LedgerJournalACType::Ledger)

...

To:

...

            if  (ledgerJournalTransLines.OffsetAccount &&
                (ledgerJournalTransLines.OffsetAccountType == LedgerJournalACType::Ledger) &&
                (ledgerJournalTransLines.ledgerJournalTable().JournalType != LedgerJournalType::Approval))

...