(a) In the event that an officer or employee who has been granted advanced sick leave should retire or die prior to having repaid any and all amounts due such city for the advanced sick leave, an appropriate amount, as determined by the board of trustees, may be deducted from the monthly retirement or beneficiary benefits, or in lieu thereof, such lump sum amounts as the board, in its discretion, deems appropriate until the obligation is discharged. (b) The provisions of this Act shall apply only to officers or employees who become members of the pension fund on or after the effective date of this Act.