Internal Error when restricted user deletes sales invoice with receipt

We have a restricted user who has View, Create, Update, Delete permissions for Sales Invoices:
If they try to delete a sales invoice that has a receipt linked to it, they get this internal error message:

They can delete the receipt first and then delete the sales invoice, but as administrator when I try the same thing I get a Manager warning:

I think the restricted user should be getting this warning too, so they know why they are prevented from deleting the sales invoice.

We’re using Cloud edition, version

1 Like