done, maybe, need to test all

This commit is contained in:
Ibnu Maksum
2024-06-07 17:21:29 +07:00
parent c661976eae
commit 7a94254df9
8 changed files with 64 additions and 35 deletions

View File

@ -128,7 +128,7 @@ switch ($action) {
r2(U . "order/package", 'e', Lang::T("Transaction Not found"));
}
$router = Mikrotik::info($trx['routers']);
$router = ORM::for_table('tbl_routers')->where('name', $trx['routers'])->find_one();
$plan = ORM::for_table('tbl_plans')->find_one($trx['plan_id']);
$bandw = ORM::for_table('tbl_bandwidth')->find_one($plan['id_bw']);
$invoice = ORM::for_table('tbl_transactions')->where("invoice", $trx['trx_invoice'])->find_one();