Whenever any person violates any provision of Section 131130, the court may, as a condition of probation, order the defendant to pay, in lieu of any fine, any expenses, both direct and indirect, incurred by a local health department or the department in monitoring compliance with the order pursuant to Section 131080, including, but not limited to, the costs of conducting inspections and imposing embargoes. The total costs payable to the department and local health departments collectively imposed pursuant to this section shall not exceed the maximum fine for the offense of which the defendant is convicted.
Any amount collected under this section shall be paid to the local health department incurring the expenses or, if to reimburse costs of the department, into the General Fund.