fixing totals to include service charge for x2 payments

This commit is contained in:
Omair Saleh
2019-04-19 15:42:42 +08:00
parent 756b8ff7e3
commit a205588890
+1 -1
View File
@@ -338,7 +338,7 @@ class BookingController extends Controller
$booking->invoice_path = Storage::url($invoice->invoice_path);
}
$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;