And same here, checking if previous state was `checkout` or `onhold` before changing the state.