It seems like you are facing an issue with your flow where it's not working as expected on the second time with the same case. I understand that when you cancel the invoice, it should jump to an alternative stage, but it's not doing that the second time.
To resolve the issue, you can try the following steps:
Open the case type rule.
Go to Case type - Actions - Open.
Click on Stages.
Go to the Alternate Stage and select the checkbox for "Run on entry" in the process flow of that stage.
Enabling the "Run on entry" checkbox will ensure that the alternate stage runs every time the flow is executed, including the second time with the same case.
I hope this helps resolve your issue. If you have any further questions or concerns, please let me know.