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”