mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 23:00:57 +00:00
The returns table renders one list holding both booking-linked and standalone empty returns, but a booking-linked row showed the literal string Associated in place of its reference, and nothing showed the owning company. listEmptyReturns becomes a raw projection joining freight.bookings and freight.companies, so each row carries bookingReference and a companyName that falls back to the booking's company when none was typed on the return itself. Return date was collected as a bare date input, storing every return at 00:00. All three entry points — booking-linked, standalone and the bulk default — now use datetime-local seeded from local time rather than UTC, and the column renders date and time.