Debit and Credit not equal for Payment Entry Bug

Debit and Credit not equal for Payment Entry #ACC-PAY-2021-00003. Difference is 174.0.
Im paying School Fee with the amount of $87.00 and I get this when trying to submit.

This is my production:
ERPNext: v13.2.1 (version-13)
Frappe Framework: v13.2.2 (version-13)

Whats your base currency ???

Base Currency is TOP

Facing the same issue on v13.4.1

Any solution out there?

Thank you.

Found the cause of the duplicate of the amount

payment_entry.py line 554

dr_or_cr = “credit” if erpnext.get_party_account_type(self.party_type) == ‘Receivable’ else “debit”

We put a temp fix for now.

dr_or_cr = “credit” #if erpnext.get_party_account_type(self.party_type) == ‘Receivable’ else “debit”

Is this fixed in latest version ?

For me it was a missing entries in Party Type. These are type to Account Types

Es fehlten Einträge des DocTypes “Party Type” an diesen Typen ist ein Account Type hinterlegt welcher für die SOLL / HABEN Zuordnung der Buchung verantwortlich ist.