mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-29 22:29:36 +02:00
Order Expired by Expired date
This commit is contained in:
parent
081dd1b1b9
commit
1d29f8111e
2 changed files with 6 additions and 5 deletions
|
@ -57,7 +57,7 @@ $expire = ORM::for_table('tbl_user_recharges')
|
|||
->where_lte('expiration', $mdate)
|
||||
->offset($paginator['startpoint'])
|
||||
->limit($paginator['limit'])
|
||||
->order_by_desc('id')
|
||||
->order_by_desc('expiration')
|
||||
->find_many();
|
||||
|
||||
// Get the total count of expired records for pagination
|
||||
|
@ -67,7 +67,6 @@ $totalCount = ORM::for_table('tbl_user_recharges')
|
|||
|
||||
// Pass the total count and current page to the paginator
|
||||
$paginator['total_count'] = $totalCount;
|
||||
$paginator['current_page'] = $paginator['current_page'];
|
||||
|
||||
// Assign the pagination HTML to the template variable
|
||||
$ui->assign('paginator', $paginator);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue