mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 10:15:03 +02:00
Customer can sync plan
This commit is contained in:
parent
a5971bfff3
commit
0b5c24239d
5 changed files with 50 additions and 14 deletions
|
@ -205,13 +205,14 @@ class User
|
|||
->select('tbl_user_recharges.id', 'id')
|
||||
->selects([
|
||||
'customer_id', 'username', 'plan_id', 'namebp', 'recharged_on', 'recharged_time', 'expiration', 'time',
|
||||
'status', 'method', 'plan_type',
|
||||
'status', 'method', 'plan_type', 'name_bw',
|
||||
['tbl_user_recharges.routers', 'routers'],
|
||||
['tbl_user_recharges.type', 'type'],
|
||||
'admin_id', 'prepaid'
|
||||
])
|
||||
->where('customer_id', $id)
|
||||
->left_outer_join('tbl_plans', array('tbl_plans.id', '=', 'tbl_user_recharges.plan_id'))
|
||||
->left_outer_join('tbl_bandwidth', array('tbl_bandwidth.id', '=', 'tbl_plans.id_bw'))
|
||||
->find_many();
|
||||
return $d;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue