erpnext
erpnext copied to clipboard
refactor: configurable option to allow multiple payment requests
Scenario
Customer is trying to pay for an Invoice through the website portal.
If the customer accidentally refreshes or goes back on the payment screen, they cannot make payment again, as the existing validation will prevent it
https://github.com/frappe/erpnext/blob/07f8899f80b67b61b3c38edb6898d86dacb09590/erpnext/accounts/doctype/payment_request/payment_request.py#L562-L570
Fix
On such cases, allowing multiple payments requests to be made is the only viable option given how restrictive the website portal