API functions for bookings

Viewing 1 post (of 1 total)
  • Author
  • #738688
    Christer Fernstrom

    I’m building database tables of customers and invoices, including those related to hotel bookings. I have been able to understand most of your (internal) API functions to get information about bookings and customers, except that I’m not sure about how to best find the date when a booking was made, i.e. there does not seem to by any method like $booking->getBookingDate(). What I do for now is to look at the log entries for the booking (stored as comments in the WP database) and take the date of the oldest. But this seems like something which may break in future versions of your plugin. Do you have something better to suggest?

    It would also be nice to be able to get a list of bookings sorted on the booking date, using the MPHB()->getBookingRepository()->findAll() method. Do you have something to suggest?

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.