Minus and plus, side by side
Leave taken is deducted as a minus line; when the leave is cancelled the same number of days comes back as a plus line. Both lines stay in the history, neither overwrites the other. The answer to "why did my balance change?" is on one screen, with its date and its amount.