You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicked on "Pay $1000.00" and get the following message
error UnboundLocalError: local variable 'grand_total' referenced before assignment
Module
accounts
Version
Version - Frappe Cloud (latest versions for each under the "version-14" branch)
ERPNext: v14.74.1 (HEAD)
Frappe Framework: v14.81.4 (HEAD)
Payments: v0.0.1 (HEAD)
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 97, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
returnfrappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 48, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 86, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1619, in call
return fn(*args, **newargs)
File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 410, 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 522, in get_amount
if grand_total > 0:
UnboundLocalError: local variable 'grand_total' referenced before assignment
The text was updated successfully, but these errors were encountered:
Information about bug
Clicked on "Pay $1000.00" and get the following message
error UnboundLocalError: local variable 'grand_total' referenced before assignment
Module
accounts
Version
Version - Frappe Cloud (latest versions for each under the "version-14" branch)
ERPNext: v14.74.1 (HEAD)
Frappe Framework: v14.81.4 (HEAD)
Payments: v0.0.1 (HEAD)
Installation method
FrappeCloud
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: