Our orders are composed of several sub orders.
Each sub order has their own status, because they are managed independently.
The main order status is equal to the less advanced of the sub orders status.
I’m trying to update automatically update the main order status (we do it manually at the moment).
Any idea how ?
Here is a simplified version of our system to illustrate. Status :
Main order :
sub order 1 : in progress
sub order 2 : delivered
sub order 3 : shipped
—> Main order status = in progress (because it is the less advanced of the sub orders status)
When the “sub order 1” updates to “shipped”, the “main order” status should update to “shipped” as well.