use of com.github.drbookings.model.Payment in project drbookings by DrBookings.
the class BookingDetailsController method addNewPayment.
static void addNewPayment(String paymentString, BookingBean be) {
if (StringUtils.isBlank(paymentString)) {
return;
}
double paymentAmount = Double.parseDouble(paymentString);
LocalDate paymentDate = LocalDate.now();
Payment payment = new Payment(paymentDate, paymentAmount);
be.getPayments().add(payment);
}