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
When we are making a Payment request from a purchase invoice with the same amount, still system throw the error payment amount can not be greater then invoice amount. and also there is no any other payment request generated against the same invoice
Module
accounts
Version
ERPNext: v14.66.4 (version-14)
Frappe Framework: v14.71.0 (version-14)
Installation method
None
Relevant log output / Stack trace / Full Error Message.
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 95, 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 1611, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/desk/form/save.py", line 31, in savedocs
doc.save()
File "apps/frappe/frappe/model/document.py", line 307, in save
return self._save(*args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 342, in _save
self.run_before_save_methods()
File "apps/frappe/frappe/model/document.py", line 1061, in run_before_save_methods
self.run_method("validate")
File "apps/frappe/frappe/model/document.py", line 928, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1280, in composer
return composed(self, method, *args, **kwargs)
File "apps/frappe/frappe/model/document.py", line 1262, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "apps/frappe/frappe/model/document.py", line 925, in fn
return method_object(*args, **kwargs)
File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 39, in validate
self.validate_payment_request_amount()
File "apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 57, in validate_payment_request_amount
frappe.throw(
File "apps/frappe/frappe/__init__.py", line 541, in throw
msgprint(
File "apps/frappe/frappe/__init__.py", line 509, in msgprint
_raise_exception()
File "apps/frappe/frappe/__init__.py", line 455, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Total Payment Request amount cannot be greater than Purchase Invoice amount
The text was updated successfully, but these errors were encountered:
Information about bug
When we are making a Payment request from a purchase invoice with the same amount, still system throw the error payment amount can not be greater then invoice amount. and also there is no any other payment request generated against the same invoice
Module
accounts
Version
ERPNext: v14.66.4 (version-14)
Frappe Framework: v14.71.0 (version-14)
Installation method
None
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: