ERROR : Send Payment request from Fees (Education)

Getting below error in the screen

Error message is : AttributeError: ‘Fees’ object has no attribute ‘party_account_currency’
Possible source of error: erpnext (app)

Below is the stack trace

### Traceback

Traceback (most recent call last):
File “apps/frappe/frappe/app.py”, line 114, in application
response = frappe.api.handle(request)
File “apps/frappe/frappe/api/init.py”, line 49, in handle
data = endpoint(**arguments)
File “apps/frappe/frappe/api/v1.py”, line 36, in handle_rpc_call
return frappe.handler.handle()
File “apps/frappe/frappe/handler.py”, line 49, in handle
data = execute_cmd(cmd)
File “apps/frappe/frappe/handler.py”, line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “apps/frappe/frappe/init.py”, line 1775, in call
return fn(*args, **newargs)
File “apps/frappe/frappe/utils/typing_validations.py”, line 31, in wrapper
return func(*args, **kwargs)
File “apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py”, line 574, in make_payment_request
party_account_currency = ref_doc.party_account_currency
AttributeError: ‘Fees’ object has no attribute ‘party_account_currency’

### Request Data

{
“type”: “POST”,
“args”: {
“dt”: “Fees”,
“dn”: “EDU-FEE-2024-00001”,
“party_type”: “Student”,
“party”: “EDU-STU-2024-00001”,
“recipient_id”: “nayanupgradation@gmail.com
},
“headers”: {},
“error_handlers”: {},
“url”: “/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request”,
“request_id”: null
}

### Response Data

{
“exception”: “AttributeError: ‘Fees’ object has no attribute ‘party_account_currency’”,
“exc_type”: “AttributeError”,
“_exc_source”: “erpnext (app)”
}

Versions

Education: v15.0.0 (version-15)

ERPNext: v15.38.1 (version-15)

Frappe Framework: v15.44.1 (version-15)

Hello,

A PR has been created for this issue.

See here: ERPNext Payment Request Issue

1 Like