Parcourir la source

edit claim

ifah
Siti Hajar Ibrahim il y a 5 ans
Parent
révision
ea56290c2c
1 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 7
    7
      app/Http/Controllers/DS/DealerController.php

+ 7
- 7
app/Http/Controllers/DS/DealerController.php Voir le fichier

@@ -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(

Chargement…
Annuler
Enregistrer