mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-17 00:01:06 +02:00
fix delete customer to remove on device
This commit is contained in:
parent
fa5c3389f6
commit
912d4db2d2
1 changed files with 1 additions and 1 deletions
|
@ -331,7 +331,7 @@ switch ($action) {
|
||||||
// Delete the associated Customers Attributes records from tbl_customer_custom_fields table
|
// Delete the associated Customers Attributes records from tbl_customer_custom_fields table
|
||||||
ORM::for_table('tbl_customers_fields')->where('customer_id', $id)->delete_many();
|
ORM::for_table('tbl_customers_fields')->where('customer_id', $id)->delete_many();
|
||||||
//Delete active package
|
//Delete active package
|
||||||
$turs = ORM::for_table('tbl_user_recharges')->where('username', $c['username'])->find_one();
|
$turs = ORM::for_table('tbl_user_recharges')->where('username', $c['username'])->find_many();
|
||||||
foreach($turs as $tur){
|
foreach($turs as $tur){
|
||||||
$p = ORM::for_table('tbl_plans')->find_one($tur['plan_id']);
|
$p = ORM::for_table('tbl_plans')->find_one($tur['plan_id']);
|
||||||
if ($p) {
|
if ($p) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue