removed multiple booking on supplier booking controller

WIP supplier booking report in image file
WIP edit report page
WIP upload chinabankslip
This commit is contained in:
Jack Goh
2018-06-27 15:32:01 +08:00
parent 3ce9fdf9db
commit 390862a8be
3 changed files with 361 additions and 46 deletions
@@ -80,28 +80,10 @@ class BookingSupplierController extends Controller
// update booking status
$booking->status = 5;
$booking->admin_status = 4;
$booking->save();
$booking->save();
// TODO : generate a jpg version of report and save the path
//// one bookingsupplier has many booking
// $bookings = $request->input("booking");
// foreach ($bookings as $booking)
// {
// $bookingsupplierbooking = new Booking(array(
// 'book_id' => $booking->id,
// 'supplierbooking_id' => $supplier->id
// ));
// $bookingsupplierbooking->save();
// $new_supplierbooking = new SupplierBookingItem(array(
// 'book_id' => $booking->id,
// 'bank_in_amount'=>$booking['bank_in_amount'],
// 'date'=>$booking['date'],
// 'details'=>$booking['details'],
// 'supplierbooking_id' => $supplier->id
// ));
// $new_supplierbooking->save();
// }
return response()->json($bookingsupplier, 201);
}