fixing totals to include service charge for x2 payments

This commit is contained in:
Omair Saleh
2019-04-19 15:44:23 +08:00
parent a205588890
commit 069e5b957d
+2 -2
View File
@@ -276,7 +276,7 @@ class BookingController extends Controller
}
$booking->service_charge = 0;
if($booking){
if ($booking->amount < 10000 && ($booking->term == 'x2_cash' || $booking->term == 'x2_cheque' || $booking->term == 'x2_ba')) {
if ($booking->amount < 10000 && ($booking->term === 'x2_cash' || $booking->term === 'x2_cheque' || $booking->term === 'x2_ba')) {
$booking->service_charge = 20;
}
}
@@ -340,7 +340,7 @@ class BookingController extends Controller
$booking->service_charge = 0;
if($booking){
if ($booking->amount < 10000 && ($booking->term == 'x2_cash' || $booking->term == 'x2_cheque' || $booking->term == 'x2_ba')) {
if ($booking->amount < 10000 && ($booking->term === 'x2_cash' || $booking->term === 'x2_cheque' || $booking->term === 'x2_ba')) {
$booking->service_charge = 20;
}
}