(a)
Whenever a person confined to a correctional institution under the supervision of the Department of Corrections and Rehabilitation is charged with a public offense committed within the confines of that institution and is tried for that public offense, a city, county, or superior court shall be entitled to reimbursement for reasonable and necessary costs connected with that matter.
(b)
The appropriate financial officer or other designated official of a county or the city
finance officer of a city incurring any costs in connection with that matter shall make out a statement of all the costs incurred by the county or city for the investigation, the preparation for the trial, participation in the actual trial of the case, all guarding and keeping of the person, and the execution of the sentence of the person, properly certified to by a judge of the superior court of the county. The statement may not include any costs that are incurred by the superior court pursuant to subdivision (c). The statement shall be sent to the department for its approval. After the approval the department must cause the amount of the costs to be paid out of the money appropriated for the support of the department to the county treasurer of the county or the city finance officer of the city incurring those costs.
(c)
The superior court shall prepare a statement of all costs incurred by the court for the preparation of the trial and the
actual trial of the case. The statement may not include any costs that are incurred by the city or county pursuant to subdivision (a). The statement shall be sent to the Administrative Office of the Courts for approval and reimbursement.
(d)
No city, county, or other jurisdiction may file, and the state may not reimburse, a claim pursuant to this section that is presented to the Department of Corrections and Rehabilitation or to any other agency or department of the state more than six months after the close of the month in which the costs were incurred.