In Salesforce cpq, when we click the contracted button in order, the related contract is automatically generated. This is a out of box feature provided by Salesforce cpq.
We have created a functionality to deactivate the order which deletes all the related contracts and subscriptions and then deactivate the order and untick the contracted button in order.
However, when we re-tick the contracted button again, the contracts are generated again. Is there any walk around for that?