How to end work period after Gift Transaction

Follow this tutorial.4
It will help you create a reopen ticket button which will help you amend mistakes like that