Any person released from jail pursuant to Section 45–45–233.20 shall pay to the county a sum equal to 25 percent of his or her gross earnings earned while so released. The court having jurisdiction of the case, as a condition to releasing a prisoner pursuant to this subpart, may require that the prisoner establish a payroll deduction for the payment of any sums due hereunder. All sums so collected, whether by payroll deduction or otherwise, shall be paid over to and collected by the Madison County Commission and deposited to a separate fund to be known as the Madison County Work Release and Pretrial Release Fund.