In any action where the landlord sues for possession and the tenant raises defenses or counterclaims pursuant to this chapter or the rental agreement:
(a) The tenant is required to pay the landlord all rent which becomes due after the issuance of a written rule requiring the tenant to vacate or show cause as rent becomes due and the landlord is required to provide the tenant with a written receipt for each payment except when the tenant pays by check. If the landlord and tenant disagree as to the amount of rent or the time of payments thereof, the court shall hold a hearing as soon as feasible after the issues have been joined, and preliminarily determine the matter. In the event that the basis for the disagreement of the amount of rent due is the landlord's alleged violation of the rental agreement or the provisions of this chapter, the rent to be paid must be the fair-market rental value of the premises at the time of the hearing. Rent must not be abated for a condition caused by the deliberate or negligent act or omission of the tenant, a member of his family, or other person on the premises with his permission or who is allowed access to the premises by the tenant.(b) The tenant is required to pay the landlord all rent allegedly owed prior to the issuance of the rule, provided, however, that in lieu of the payment the tenant may be allowed to submit to the court a receipt and cancelled check, or both, indicating that payment has been made to the landlord. In the event that the amount of rent is in controversy, the court shall determine the amount of rent to be paid to the landlord in the same manner as in subsection (a) or (b) of this section.
(c) Should the tenant not appear and show cause within ten days, the court shall issue a warrant of ejectment pursuant to Section 27-37-40 of the 1976 Code. Should the tenant appear in response to the rule and allege that rent due under subsections (a) or (b) has been paid, the court shall determine the issue. If the tenant has failed to comply with subsections (a) or (b), the court shall issue a warrant of ejectment and the landlord must be placed in full possession of the premises by the sheriff, deputy, or constable.
(d) If the amount of rent due is determined at final adjudication to be less than alleged by the landlord, decision must be entered for the tenant if he has complied fully with the provisions of this section.1995 Act No. 112, Section 8; 1986 Act No. 336, Section 1.