fix package

This commit is contained in:
Ibnu Maksum 2024-04-02 10:23:06 +07:00
parent 5161874cf2
commit 198dfee3cc
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -149,7 +149,9 @@ class Package
->where('customer_id', $id_customer)
->where('tbl_user_recharges.routers', $router_name)
->where('tbl_user_recharges.Type', $p['type'])
->where('prepaid', $p['prepaid'])
# PPPOE or Hotspot only can have 1 per customer prepaid or postpaid
# because 1 customer can have 1 PPPOE and 1 Hotspot Plan in mikrotik
//->where('prepaid', $p['prepaid'])
->join('tbl_plans', array('tbl_plans.id', '=', 'tbl_user_recharges.plan_id'))
->find_one();