Hi, I'm attempting to prevent users from canceling a confirmed sale order if there is an invoice confirmed to the client. My current configuration for invoices is "Ordered quantities", not delivered like the majority.
I'm thinking of creating a automated action or something similar that triggers when the user tries to cancel the order.
The logic would be simple, if there is a confirmed invoice, you first need to cancel in order to cancel the sale order.
I don't know where to start or how to do it. Anyone has an idea or has done it before.
I would really appreciate any insights.