diff --git a/erpnext/venue/doctype/item_booking/item_booking.py b/erpnext/venue/doctype/item_booking/item_booking.py index 46be1aa5a68c0362170a746f56dc1798131ac5eb..ad6660a2abb0fd6e514866d96d7c95d1cabea6f4 100644 --- a/erpnext/venue/doctype/item_booking/item_booking.py +++ b/erpnext/venue/doctype/item_booking/item_booking.py @@ -858,6 +858,8 @@ class ItemBookingAvailabilities: output.append(slot) if self.limit and len(output) >= self.limit: break + if self.limit and len(output) >= self.limit: + break # filter out exclusions if cal_name := self.item_calendar.get("name"):