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
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