NFC RENTAL MANAGEMENT — RENT COLLECTION & PAYMENTS UPGRADE

CONTENTS
- rentals/admin/rent.php: generates missing monthly rent charges from active leases and shows due/paid/balance totals.
- rentals/admin/payments.php: records rent payments and recalculates charge balances, including partial and overpayments.
- rentals/dashboard.php: adds Rent & Arrears and Payments links.

INSTALLATION
1. Keep the ZIP in public_html, not inside public_html/rentals.
2. Extract it into /home/nimyfixt/public_html/ so the files overlay the existing rentals folder.
3. Do not overwrite or delete rentals/config/database.php or rentals/includes/auth.php. They are not included in this ZIP.
4. Open https://nimyfixturescentre.co.ke/rentals/dashboard.php and test Rent & Arrears, then Payments.

HOW AUTOMATIC RENT GENERATION WORKS
When a user opens Rent & Arrears, the system creates any missing monthly charge for each active lease, starting from the lease start month up to the selected month and not past the lease end month. It checks for an existing charge before creating one, so repeated page visits should not duplicate charges. Existing payments and charges are preserved.

IMPORTANT
This version generates charges when the Rent & Arrears page is accessed; it is not a background scheduler and does not send tenant reminders or move money. For unattended generation on the first day of every month, configure a protected cPanel cron job in a later step. Test with a landlord and lease before relying on the figures. No database schema changes are required.
