Skip to content

Entity AssetReservation

Technical Name: AssetReservation

Fields

Name (API) Type Label (EN) Description
name Varchar Name Automatically generated or entered.
status Enum Status Planned, Active, Completed, Canceled, Expired.
dateStart Datetime Date Start
dateEnd Datetime Date End
quantity Int Quantity Number of reserved items.
asset Link Asset Link to Asset.
meeting Link Meeting Optional link to calendar.
borrowingHandedOverBy Link Handed Over By Link to User.
borrowingReceivedBy Link Received By Link to Contact/User.

Availability Logic

Upon saving (Asset::assertAvailability), the system checks: Asset.quantityTotal - Sum of active reservations at that time >= Requested Quantity. If the condition is not met, a ConflictSilent exception is thrown.