stiill have variable price_with_tax, back to price

This commit is contained in:
Ibnu Maksum 2024-05-21 11:53:29 +07:00
parent 94e6f7fe6c
commit 7f3096ce85
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -248,7 +248,7 @@ switch ($action) {
$d = ORM::for_table('tbl_plans')->create(); $d = ORM::for_table('tbl_plans')->create();
$d->name_plan = $name; $d->name_plan = $name;
$d->id_bw = $id_bw; $d->id_bw = $id_bw;
$d->price = $price_with_tax; // Set price with or without tax based on configuration $d->price = $price; // Set price with or without tax based on configuration
$d->type = 'Hotspot'; $d->type = 'Hotspot';
$d->typebp = $typebp; $d->typebp = $typebp;
$d->plan_type = $plan_type; $d->plan_type = $plan_type;
@ -362,7 +362,7 @@ switch ($action) {
} }
$d->name_plan = $name; $d->name_plan = $name;
$d->id_bw = $id_bw; $d->id_bw = $id_bw;
$d->price = $price_with_tax; // Set price with or without tax based on configuration $d->price = $price; // Set price with or without tax based on configuration
$d->typebp = $typebp; $d->typebp = $typebp;
$d->limit_type = $limit_type; $d->limit_type = $limit_type;
$d->time_limit = $time_limit; $d->time_limit = $time_limit;
@ -520,7 +520,7 @@ switch ($action) {
$d->type = 'PPPOE'; $d->type = 'PPPOE';
$d->name_plan = $name; $d->name_plan = $name;
$d->id_bw = $id_bw; $d->id_bw = $id_bw;
$d->price = $price_with_tax; $d->price = $price;
$d->plan_type = $plan_type; $d->plan_type = $plan_type;
$d->validity = $validity; $d->validity = $validity;
$d->validity_unit = $validity_unit; $d->validity_unit = $validity_unit;
@ -620,7 +620,7 @@ switch ($action) {
} }
$d->name_plan = $name; $d->name_plan = $name;
$d->id_bw = $id_bw; $d->id_bw = $id_bw;
$d->price = $price_with_tax; $d->price = $price;
$d->plan_type = $plan_type; $d->plan_type = $plan_type;
$d->validity = $validity; $d->validity = $validity;
$d->validity_unit = $validity_unit; $d->validity_unit = $validity_unit;
@ -698,7 +698,7 @@ switch ($action) {
run_hook('edit_ppoe'); #HOOK run_hook('edit_ppoe'); #HOOK
if ($msg == '') { if ($msg == '') {
$d->name_plan = $name; $d->name_plan = $name;
$d->price = $price_with_tax; $d->price = $price;
$d->enabled = $enabled; $d->enabled = $enabled;
$d->prepaid = 'yes'; $d->prepaid = 'yes';
$d->save(); $d->save();
@ -731,7 +731,7 @@ switch ($action) {
$d->type = 'Balance'; $d->type = 'Balance';
$d->name_plan = $name; $d->name_plan = $name;
$d->id_bw = 0; $d->id_bw = 0;
$d->price = $price_with_tax; $d->price = $price;
$d->validity = 0; $d->validity = 0;
$d->validity_unit = 'Months'; $d->validity_unit = 'Months';
$d->routers = ''; $d->routers = '';