Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 12, 2024Sep 12 Is that possible at all? Users can go to the Orders page and cancel invoices. These are not “renewing” invoices. They are the charge for a job.
September 12, 2024Sep 12 Why would allow the recipient of an invoice to cancel it? Seems backwards to me. Admin should be able to cancel an invoice, but not the other way around.
September 12, 2024Sep 12 There are instances where invoices are automatically generated, and may take funds from a users credit. Cancelling them would return that credit. So there are valid reasons for this
September 12, 2024Sep 12 Fair call. Totally the opposite of our use case sadly. Edited September 12, 2024Sep 12 by Emediate
September 13, 2024Sep 13 Author Solution Since this is a service-related charge, we believe the user should not be able to cancel the invoice on the front end. To address this, we opted to hide the cancel button using CSS. Also and just in case the user already knows the URL to cancel the invoice: A hook on IPS4 will throw an error message when trying to cancel the invoice. The PENDING status is restored via Invoice Listener on IPS5.