feat(appointments): resources share the doctors' timeline
Three views become two. The resource lanes were a separate tab, which meant reading a doctor's free hour on one screen and the laser's on another and matching them by eye — while in the resource-first model it is the device and the room that decide whether that hour is really free. They now sit under the same "زمانبندی" view, below the doctor's slots. Each lane says how much of its shift is still free, and that number respects capacity: a minute counts as busy only once the overlapping bookings reach the resource's capacity, so a three-bed room with two appointments is still open. Treating it otherwise would silently turn every multi-capacity resource into a single-capacity one. ResourceFreeTimeCalculator does the sweep and carries nine cases of its own. only_bookable=1 keeps resources with no service offering out of the view; they could only ever render an empty lane. On the seeded clinic that is five resources down to two. Two ruler defects the screenshot caught: hours rendered in Latin digits, and the last label was half-clipped by the container so 21 read as 2. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
+3
-4
@@ -477,10 +477,9 @@ Get all practice addresses for a doctor, including addresses of clinics the doct
|
||||
> `DoctorAddress::toArray()` میآیند. هر دو ستون `NOT NULL DEFAULT` دارند، پس ردیفهای
|
||||
> قدیمی هم `active: true` و `timezone: "Asia/Tehran"` میدهند؛ تغییر additive است.
|
||||
>
|
||||
> `active` در فاز فعلی **فقط ذخیره میشود** و هیچ اثری بر محاسبهٔ اسلات ندارد. نوشتن
|
||||
> این دو فیلد از راه اندپوینتهای همین سند انجام نمیشود؛ برای آن
|
||||
> `PATCH /api/v1/branch/{addressUuid}` است — همراه با ساعت کاری هفتگی و اتاقها در
|
||||
> [branch.md](branch.md).
|
||||
> `active` **فقط ذخیره میشود** و اثرش بر دسترسپذیری فقط همین است که منبعِ روی یک
|
||||
> آدرسِ غیرفعال، روزش با دلیل `address_inactive` خالی برمیگردد. اندپوینت اختصاصیِ
|
||||
> نوشتنِ این دو فیلد با حذف دامنهٔ شعبه برداشته شد.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user