Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

B25__Quantity__c > MIN(matchingAvailabilities, Capacity__c)

  • Reservations are checked against the capacity of the room, or bypassed if the status allows double booking

    Code Block
    B25__Quantity__c + SUM(overlappingReservations, B25__Quantity__c) > B25__Resource__r.B25__Capacity__c AND B25__Status__r.B25__AllowDoubleBooking__c == false
  • Reservations are not allowed when going over the sum of all availabilities' capacity

B25```B25__Quantity__c + SUM(overlappingReservations, B25__Quantity__c) > SUM(matchingAvailabilities, Capacity__c)

...