When the order is cancelled or deleted, DEAR automatically finds and voids the corresponding sale task, if created, or removes an associated pending order if the order has not yet been processed.