fixUploadBankInSlip

This commit is contained in:
lonetrinity
2018-09-06 14:23:55 +08:00
parent 9aaafd24d6
commit 872ada9aee
2 changed files with 37 additions and 9 deletions
+7 -1
View File
@@ -620,6 +620,7 @@ class BookingController extends Controller
);
if($upload_path){
$user_bankslip = $booking->userBankSlip()->first();
// if user bankslip not exist, create new one
@@ -651,7 +652,12 @@ class BookingController extends Controller
if(!$user_bankslip){
return response()->json(["message"=> "not found"],400);
}
}
// validate transfer amount exist
if(!$request->input('transfer_amount')){
return response()->json(['message' => 'Please input amount'], 400);
}
// update booking status
$booking->status = 3;