add pagination to accounting
This commit is contained in:
parent
8339a977b8
commit
570fcdb473
@ -1 +1,15 @@
|
|||||||
feat: use outlet information for printed bills and receipts
|
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.
|
||||||
@ -6,3 +6,4 @@
|
|||||||
2026-03-17 09:58:59 - Items case hit
|
2026-03-17 09:58:59 - Items case hit
|
||||||
2026-03-17 10:04:31 - Items case hit
|
2026-03-17 10:04:31 - Items case hit
|
||||||
2026-03-17 10:12:20 - Items case hit
|
2026-03-17 10:12:20 - Items case hit
|
||||||
|
2026-03-17 17:26:10 - Items case hit
|
||||||
|
|||||||
@ -37,3 +37,5 @@
|
|||||||
2026-03-17 09:58:21 - POST: {"license_key":"FLAT-8E07-54E9-B427","activate":""}
|
2026-03-17 09:58:21 - POST: {"license_key":"FLAT-8E07-54E9-B427","activate":""}
|
||||||
2026-03-17 10:12:13 - POST: {"username":"admin","password":"admin","login":""}
|
2026-03-17 10:12:13 - POST: {"username":"admin","password":"admin","login":""}
|
||||||
2026-03-17 10:12:37 - POST: {"username":"moosa","password":"moosa123","login":""}
|
2026-03-17 10:12:37 - POST: {"username":"moosa","password":"moosa123","login":""}
|
||||||
|
2026-03-17 13:25:29 - POST: {"name":"Counter1","add_cash_register":""}
|
||||||
|
2026-03-17 13:25:44 - POST: {"open_register":"1","register_id":"3","opening_balance":"0"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user