Files
edr-platform/apps/edr-freight-api/src/modules
Hagernesh 1b1b0e7ade feat(booking-trucks-tab): show truck-level detention, gate times, inspection status, and cargo costs
Booking detail now has a Trucks tab displaying every EDR or customer truck
assigned to a booking's last mile. Each row shows warehouse-gate times
(arrival/departure) and destination-detention times (arrival/return), with
detention costs and inspection status. Detention rows only for EDR trucks;
customer self-haul shows —. Reuses existing TruckDetentionModal and
FeePreviewModal for edit/view actions.

Backend: arrivalTrucksForBooking() adds lastMileId per truck (direct chain to
detention preview), containerItems() adds inspection_status column to responses.
No new SQL, no migrations, no new endpoints.

Frontend: BookingTrucksPanel.tsx self-fetches all data via existing warehouse +
last-mile services, renders adaptive table with cargo-cost strip above.
Wired into BookingRequestDetailPage.tsx tab bar.
2026-07-29 11:13:20 +00:00
..
2026-07-23 07:40:48 +00:00
2026-07-17 11:40:25 +00:00
2026-07-06 12:05:52 +00:00
2026-07-16 00:33:31 +00:00
2026-06-16 09:06:11 +00:00
fix
2026-07-03 15:21:23 +00:00
2026-07-16 00:33:31 +00:00
gps
2026-07-10 15:23:49 +00:00
2026-07-16 00:33:31 +00:00
2026-07-16 00:33:31 +00:00
2026-07-22 07:34:41 +00:00
2026-07-27 05:59:49 +00:00
2026-07-16 00:33:31 +00:00
2026-07-16 00:33:31 +00:00
2026-07-25 06:05:20 +00:00
fix
2026-07-03 16:36:08 +03:00