Hi,
Not sure it's the same issue, but I did some more digging and this is what happens:
When MifosX applies the overdue fee, it creates the entries in m_loan_charge and m_loan_transaction.
However, it does not create the required accounting entries in acc_gl_journal_entries.
Also m_loan_repayment_schedule gets updated, but it only writes the fee there once (rather than adding up the totals).
The resulting issue is that when customer pays the fee, it gets charged against overpayment from customer
rather than fee income, since the gl entries are missing.
So this creates quite a mess in the GL.
Georg