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
Hello, I am loving the system and currently testing it. However, I get the following error while using mpesa payment gateway on POS. I saw a similar issue that was marked as resolved but there was no mention on how it was resolved.
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 110, 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 1682, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/handler.py", line 326, in run_doc_method
response = doc.run_method(method)
File "apps/frappe/frappe/model/document.py", line 955, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1315, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1297, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 952, in fn
return method_object(*args, **kwargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/erpnext/erpnext/accounts/doctype/pos_invoice/pos_invoice.py", line 656, in create_payment_request
pay_req = self.get_new_payment_request(pay)
File "apps/erpnext/erpnext/accounts/doctype/pos_invoice/pos_invoice.py", line 683, in get_new_payment_request
return make_payment_request(**args)
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 438, 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 548, in get_amount
if grand_total > 0:
UnboundLocalError: local variable 'grand_total' referenced before assignment
Information about bug
Hello, I am loving the system and currently testing it. However, I get the following error while using mpesa payment gateway on POS. I saw a similar issue that was marked as resolved but there was no mention on how it was resolved.
Module
accounts, selling, integrations
Version
Frappe Framework: v15.15.0 (version-15)
ERPNext: v15.14.6 (version-15)
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
Route
Traceback
Request Data
Response Data
The text was updated successfully, but these errors were encountered: