TypeError: get_reference_details() takes 3 positional arguments but 5 were given

got this error before submitting payment entry.anyone knows how to resolve?please help!!!

In the latest versions 14 and 15 we checked it is running properly. we didn’t find any problem.

If any custom code is done remove it and then test it.

i got the same issue when i try to cancel a payement entry my code

here the error by checking a simple cancel in system console:
File “apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py”, line 118, in on_cancel
File “apps/erpnext/erpnext/accounts/doctype/payment_entry/payment_entry.py”, line 131, in update_outstanding_amounts
File “apps/hrms/hrms/overrides/employee_payment_entry.py”, line 43, in set_missing_ref_details
ref_details = get_payment_reference_details(
File “apps/hrms/hrms/overrides/employee_payment_entry.py”, line 214, in get_payment_reference_details
return get_reference_details(
TypeError: get_reference_details() takes 3 positional arguments but 5 were given

we too are getting the same error on multiple instances.

Provide the version number with details.


ERPNext: v14.70.1 (HEAD)

Please explore the detail when the error occurs which doctype is coming from submitting or cancel? Mention what it comes from.

trying to make a payment entry. on submitting. customer payment entry

For Employee ?

no receiving money from customer

Both scenarios checked

Submit and Cancel, but worked properly. Please check it.

Hi, Would like to check if the issue was resolved already. I got a similar problem when creating payment entry from PO to a supplier.

Using the same version as well.
ERPNext: v14.70.1 (HEAD)
Frappe Framework: v14.75.0 (HEAD)

not yet. same frappe framework version as yours

issue resolved

how did you resolved?

@yusuf Please how did you resolve this issue?

There was regression in v14. Fix had been released in Release v14.70.2 · frappe/erpnext · GitHub


temporary fix.
commented in hooks.py (HRMS)

the other option will be adding argument that are missing when hrms send 5 arguments while erpnext payment entry has only 3. so you will add party_type and party.