Customer can sync plan

This commit is contained in:
Ibnu Maksum
2024-08-01 11:08:01 +07:00
parent a5971bfff3
commit 0b5c24239d
5 changed files with 50 additions and 14 deletions

View File

@ -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;
}