Notwithstanding any other provision of law, a state agency that has its payroll processed by the Office of the Comptroller General is authorized to withhold or deduct any portion of a state employee’s wages when:

(1) the State of South Carolina or a state agency that has its payroll processed by the Office of the Comptroller General in its role as an employer is required or empowered to do so by state or federal law; or

(2) an overpayment of wages to an employee as a result of a miscalculation or other bona fide error has occurred.

Prior to any deduction being made pursuant to this section, the employee must receive advance written notice of the deduction, the reason for the deduction, and the actual dollar amount or percentage of wages which will be deducted during one or more pay periods.