fixing totals to include service charge for x2 payments

This commit is contained in:
Omair Saleh
2019-04-19 15:18:09 +08:00
parent 6e46839414
commit dbdf1d07cc
@@ -347,6 +347,8 @@ 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;