Sec. 1. EXPENSES FOR NONRESIDENT WITNESSES. (a) Every person subpoenaed by either party or otherwise required or requested in writing by the prosecuting attorney or the court to appear for the purpose of giving testimony in a criminal proceeding who resides outside the state or the county in which the prosecution is pending shall be reimbursed by the state for the reasonable and necessary transportation, meal, and lodging expenses he incurs by reason of his attendance as a witness at such proceeding.
(b) The state may reimburse a witness for transportation only if the transportation is provided by a commercial transportation company or the witness uses the witness's personally owned or leased motor vehicle. In this article, "commercial transportation company" means an entity that offers transportation of people or goods to the public in exchange for compensation.
(c) The state may reimburse a witness for lodging only if the lodging is provided by a commercial lodging establishment. In this article, "commercial lodging establishment" means a motel, hotel, inn, apartment, or similar entity that offers lodging to the public in exchange for compensation.
Sec. 2. AMOUNT OF REIMBURSEMENT FOR EXPENSES. Any person seeking reimbursement as a witness shall make an affidavit setting out the transportation, meal, and lodging expenses necessitated by his travel to and from and attendance at the place he appeared to give testimony, together with the number of days that such travel and attendance made him absent from his place of residence. A reimbursement paid by the state to a witness for transportation, meal, or lodging expenses may not be paid at a rate that exceeds the maximum rates provided by law for state employees.
Sec. 2A. DIRECT PAYMENT OF TRANSPORTATION OR LODGING EXPENSES. If this article requires the state to reimburse a witness for transportation or lodging expenses, the state may instead directly pay a commercial transportation company or commercial lodging establishment for those expenses.
Sec. 3. OTHER EXPENSES. In addition to reimbursement or payment for transportation, meal, and lodging expenses , the comptroller, upon proper application by the attorney for the state, shall reimburse or pay the other expenses required by the laws of this state or the state from which the attendance of the witness is sought.
Sec. 4. APPLICATION AND APPROVAL BY JUDGE. A reimbursement to a witness as provided by this article shall be paid by the state to the witness or his assignee. Claim shall be made by sworn application to the comptroller, a copy of which shall be filed with the clerk of the court, setting out the facts showing entitlement as provided in this article to the reimbursement, which application shall be presented for approval by the judge who presided over the court or empaneled the grand jury before whom the criminal proceeding was pending. No fee shall be required of any witness for the processing of his claim for reimbursement.
Sec. 5. PAYMENT BY STATE. The Comptroller of Public Accounts, upon receipt of a claim approved by the judge, shall examine it and, if he deems the claim in compliance with and authorized by this Article, draw his warrant on the State Treasury for the amount due the witness, or to any person to which the certificate has been assigned by the witness, but no warrant may issue to any assignee of a witness claim unless the assignment is made under oath and acknowledged before some person authorized to administer oaths, certified to by the officer, and under seal. If the appropriation for paying the account is exhausted, the Comptroller of Public Accounts shall file it away and issue a certificate in the name of the witness entitled to it, stating therein the amount of the claim. Each claim not filed in the office of the Comptroller of Public Accounts within twelve months from the date it became due and payable shall be forever barred.
Sec. 6. ADVANCE BY STATE. Funds required to be tendered to an out-of-state witness pursuant to Article 24.28 of this Code shall be paid by the Comptroller of Public Accounts into the registry of the Court in which the case is to be tried upon certification by the Court such funds are necessary to obtain attendance of said witness. The court shall then cause to be issued checks drawn upon the registry of the Court to secure the attendance of such witness. In the event that such funds are not used pursuant to this Act, the Court shall return the funds to the Comptroller of Public Accounts.
Sec. 7. ADVANCE BY COUNTY. The county in which a criminal proceeding is pending, upon request of the district attorney or other prosecutor charged with the duty of prosecution in the proceeding, may advance funds from its treasury to any witness who will be entitled to reimbursement under this article. The amount advanced may not exceed the amount that is reasonably necessary to enable the witness to attend as required or requested. However, the amount advanced may include sums in excess of the reimbursement provided for by this article if the excess is required for compliance with Section 4 of Article 24.28 in securing the attendance of a witness from another state under the Uniform Act. A county that advances funds to a witness under this section is entitled to reimbursement by the state as an assignee of the witness.
Sec. 8. ADVANCE FOR EXPENSES FOR WITNESSES OF INDIGENT DEFENDANT. Upon application by a defendant shown to be indigent and a showing to the court of reasonable necessity and materiality for the testimony of a witness residing outside the State, the court shall act pursuant to Section 6 hereof to secure advance of funds necessary for the attendance of such witness.
Sec. 9. LIMITATIONS. A witness, when attached and conveyed by a sheriff or other officer, is not eligible to receive reimbursement of transportation, meal, or lodging expenses incurred while in the custody of the officer. A court, in its discretion, may limit the number of character witnesses allowed reimbursement under this article to not fewer than two for each defendant and two per defendant for the state.