Fix sync Bug
This commit is contained in:
parent
b64e841bde
commit
ed4bd4861a
@ -100,6 +100,7 @@ $ui->assign('_bills', $_bill);
|
|||||||
// Sync plan to router
|
// Sync plan to router
|
||||||
if (isset($_GET['sync']) && !empty($_GET['sync'])) {
|
if (isset($_GET['sync']) && !empty($_GET['sync'])) {
|
||||||
foreach ($_bill as $tur) {
|
foreach ($_bill as $tur) {
|
||||||
|
if($tur['status'] == 'on'){
|
||||||
$p = ORM::for_table('tbl_plans')->findOne($tur['plan_id']);
|
$p = ORM::for_table('tbl_plans')->findOne($tur['plan_id']);
|
||||||
if ($p) {
|
if ($p) {
|
||||||
$c = ORM::for_table('tbl_customers')->findOne($tur['customer_id']);
|
$c = ORM::for_table('tbl_customers')->findOne($tur['customer_id']);
|
||||||
@ -121,6 +122,7 @@ if (isset($_GET['sync']) && !empty($_GET['sync'])) {
|
|||||||
$log .= "PLAN NOT FOUND : $tur[namebp], $tur[type], $tur[routers]<br>";
|
$log .= "PLAN NOT FOUND : $tur[namebp], $tur[type], $tur[routers]<br>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
r2(U . 'home', 's', $log);
|
r2(U . 'home', 's', $log);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2024.8.1.1"
|
"version": "2024.8.1.2"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user