fixing totals to include service charge for x2 payments

This commit is contained in:
Omair Saleh
2019-04-19 15:46:31 +08:00
parent 069e5b957d
commit fe9c18447a
+5 -2
View File
@@ -340,9 +340,12 @@ 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')) {
$booking->service_charge = 20;
if($booking->term === 'x2_cash' || $booking->term === 'x2_cheque' || $booking->term === 'x2_ba'){
if ($booking->amount < 10000) {
$booking->service_charge = 20;
}
}
}
// set timeout