fixed bug on adding a value in the booking view of a single user
This commit is contained in:
@@ -59,7 +59,15 @@ public class BookingsController {
|
||||
|
||||
@PostMapping("/business/bookings/payment/{id}")
|
||||
@RolesAllowed({"business_booking"})
|
||||
public String addBooking(Model model, @ModelAttribute AddPaymentBean bean, @PathVariable Integer id, @RequestParam String search) {
|
||||
public String addPayment(Model model, @ModelAttribute AddPaymentBean bean, @PathVariable Integer id) {
|
||||
Double payment = bean.getPayment();
|
||||
bookingsService.addPayment(id, payment);
|
||||
return getBooking(model, id);
|
||||
}
|
||||
|
||||
@PostMapping("/business/bookings/listpayment/{id}")
|
||||
@RolesAllowed({"business_booking"})
|
||||
public String addListPayment(Model model, @ModelAttribute AddPaymentBean bean, @PathVariable Integer id, @RequestParam(defaultValue = "") String search) {
|
||||
Double payment = bean.getPayment();
|
||||
bookingsService.addPayment(id, payment);
|
||||
LOGGER.debug("search is {}", search);
|
||||
|
||||
Reference in New Issue
Block a user