fixing totals to include service charge for x2 payments

This commit is contained in:
Omair Saleh
2019-04-19 15:52:35 +08:00
parent 36c761b7a7
commit 140196288c
+2 -5
View File
@@ -340,12 +340,9 @@ class BookingController extends Controller
$booking->service_charge = 0;
if($booking){
if($booking->term === 'x2_cash' || $booking->term === 'x2_cheque' || $booking->term === 'x2_ba'){
if ($booking->amount < 10000) {
$booking->service_charge = 'tara';
}
if ($booking->amount < 10000 && ($booking->term === 'x2_cash' || $booking->term === 'x2_cheque' || $booking->term === 'x2_ba')) {
$booking->service_charge = 20;
}
}
// set timeout