mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
change pagination class
This commit is contained in:
parent
e99108a34a
commit
37f72d881e
11 changed files with 62 additions and 57 deletions
|
@ -48,7 +48,7 @@ switch ($action) {
|
|||
$ui->display('reports-activation.tpl');
|
||||
break;
|
||||
case 'daily-report':
|
||||
$paginator = Paginator::bootstrap('tbl_transactions', 'recharged_on', $mdate);
|
||||
$paginator = Paginator::build(ORM::for_table('tbl_transactions'), ['recharged_on' => $mdate]);
|
||||
$d = ORM::for_table('tbl_transactions')->where('recharged_on', $mdate)->offset($paginator['startpoint'])->limit($paginator['limit'])->order_by_desc('id')->find_many();
|
||||
$dr = ORM::for_table('tbl_transactions')->where('recharged_on', $mdate)->sum('price');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue