Siti Hajar Ibrahim před 5 roky
rodič
revize
ea56290c2c
1 změnil soubory, kde provedl 7 přidání a 7 odebrání
  1. 7
    7
      app/Http/Controllers/DS/DealerController.php

+ 7
- 7
app/Http/Controllers/DS/DealerController.php Zobrazit soubor

@@ -2797,13 +2797,13 @@ class DealerController extends Controller
}else {
if ($d['package']== 50){
$finalprice = 69;
$total = number_format(floatval(69 * 2.5 + 50, 2));
$total = number_format(floatval(69 * 2.5 + 50), 2);
} elseif ($d['package']== 100){
$finalprice = 89;
$total = number_format(floatval(89 * 2.5 + 50, 2));
$total = number_format(floatval(89 * 2.5 + 50), 2);
} elseif ($d['package']== 500){
$finalprice = 129;
$total = number_format(floatval(129 * 2.5 + 50, 2));
$total = number_format(floatval(129 * 2.5 + 50), 2);
} else{
$total = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])) * 2.5 + 50, 2);
$finalprice = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])), 2);
@@ -2844,15 +2844,15 @@ class DealerController extends Controller
}else {
if ($d['package']== 50){
$finalprice = 69;
$total = number_format(floatval(69 * 2.5 + 50, 2));
$total = number_format(floatval(69 * 2.5), 2);
} elseif ($d['package']== 100){
$finalprice = 89;
$total = number_format(floatval(89 * 2.5 + 50, 2));
$total = number_format(floatval(89 * 2.5), 2);
} elseif ($d['package']== 500){
$finalprice = 129;
$total = number_format(floatval(129 * 2.5 + 50, 2));
$total = number_format(floatval(129 * 2.5), 2);
} else{
$total = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])) * 2.5 + 50, 2);
$total = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])) * 2.5, 2);
$finalprice = number_format(floatval(str_replace("RM ", "" , $d['retail_price'])), 2);
}
array_push($combineData, array(

Načítá se…
Zrušit
Uložit