frappe / payments

A payments app for frappe
MIT License
82 stars 213 forks source link

Payment Processing Error #30

Open TheTechnologyStudio opened 1 year ago

TheTechnologyStudio commented 1 year ago

Hello, I am getting this errors

Traceback (most recent call last): File "apps/frappe/frappe/app.py", line 66, in application response = frappe.api.handle() File "apps/frappe/frappe/api.py", line 54, in handle return frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 45, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 83, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/__init__.py", line 1607, in call return fn(*args, **newargs) File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 408, in make_payment_request grand_total = get_amount(ref_doc, gateway_account.get("payment_account")) File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 518, in get_amount if grand_total > 0: UnboundLocalError: local variable 'grand_total' referenced before assignment

TheTechnologyStudio commented 1 year ago

any help fixing would be great

TheTechnologyStudio commented 1 year ago

this happens after clicking the pay button, see screen shot.

TheTechnologyStudio commented 1 year ago
Screenshot_225
TheTechnologyStudio commented 1 year ago
Screenshot_226