15 lines
1.0 KiB
Plaintext
15 lines
1.0 KiB
Plaintext
I have implemented pagination for the Accounting page.
|
|
|
|
**Plan:**
|
|
1. **Backend Logic:** Updated the `accounting` case in `index.php` to replace the hardcoded `LIMIT 100` with dynamic pagination logic. It now calculates the total number of pages and fetches records based on the current page and limit.
|
|
2. **Frontend UI:** Updated the `renderPagination` function in `index.php` to include an option for **50 rows per page** in the dropdown menu, giving you more flexibility.
|
|
3. **Defaults:** Set the default number of rows per page to **20** to ensure the page is not too long initially, addressing your concern about length.
|
|
|
|
**Changed:**
|
|
* `index.php`: Added pagination logic to the accounting journal query and added "50" to the pagination limit dropdown.
|
|
|
|
**Next:**
|
|
* Go to the **Accounting** page.
|
|
* You should now see the pagination controls at the bottom of the journal table.
|
|
* The list will default to 20 records. You can change this to 50 using the "Rows per page" dropdown if needed.
|
|
* Reminder: click Save in the editor to sync changes. |