fix bandwidth name not displayed on active packages on customer dashboard
This commit is contained in:
parent
af753d3a52
commit
aa787af017
@ -210,14 +210,15 @@ class User
|
|||||||
->select('tbl_user_recharges.id', 'id')
|
->select('tbl_user_recharges.id', 'id')
|
||||||
->selects([
|
->selects([
|
||||||
'customer_id', 'username', 'plan_id', 'namebp', 'recharged_on', 'recharged_time', 'expiration', 'time',
|
'customer_id', 'username', 'plan_id', 'namebp', 'recharged_on', 'recharged_time', 'expiration', 'time',
|
||||||
'status', 'method', 'plan_type', 'name_bw',
|
'status', 'method', 'plan_type',
|
||||||
['tbl_user_recharges.routers', 'routers'],
|
['tbl_user_recharges.routers', 'routers'],
|
||||||
['tbl_user_recharges.type', 'type'],
|
['tbl_user_recharges.type', 'type'],
|
||||||
'admin_id', 'prepaid'
|
'admin_id', 'prepaid'
|
||||||
])
|
])
|
||||||
|
->left_outer_join('tbl_plans', ['tbl_plans.id', '=', 'tbl_user_recharges.plan_id'])
|
||||||
|
->left_outer_join('tbl_bandwidth', ['tbl_bandwidth.id', '=', 'tbl_plans.id_bw'])
|
||||||
|
->select('tbl_bandwidth.*')
|
||||||
->where('customer_id', $id)
|
->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();
|
->find_many();
|
||||||
return $d;
|
return $d;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user