reservation.models.custom_reservation
Classes
Module Contents
- class reservation.models.custom_reservation.CustomReservation[source]
Bases:
libres.db.models.Reservation,onegov.core.orm.ModelBase,onegov.pay.Payable- property allocation_obj: libres.db.models.Allocation | None[source]
- property is_adjustable: bool[source]
Whether or not the reservation is adjustable.
A reservation is adjustable when it’s not yet been accepted, its start date is in the future and its target allocation is partly available.
- invoice_item(resource: onegov.reservation.models.resource.Resource | None = None, allocation: libres.db.models.Allocation | None = None, submission_data: dict[str, Any] | None = None) onegov.pay.InvoiceItemMeta | None[source]
Returns an invoice item for this reservation.
- price(resource: onegov.reservation.models.resource.Resource | None = None, allocation: libres.db.models.Allocation | None = None, submission_data: dict[str, Any] | None = None) onegov.pay.Price | None[source]
Returns the price of the reservation.
Even though one token may point to multiple reservations the price is bound to the reservation record.
The price per token is calculcated by combining all the prices.