Commit Graph

26 Commits

Author SHA1 Message Date
Hagernesh
cf8a2e928d fix(warehouses): detention groups by canonical truck type
Join truck_types via vehicles.truck_type_id (normalized legacy
vehicle_type only as fallback) so type renames can't unmatch detention
rules and FK-less vehicles keep billing.
2026-07-24 11:55:05 +00:00
Hagernesh
b616f520ae feat(fleet): validate vehicle plate numbers against a letters-and-digits format
Plate, power-plate and trailer accepted any free text — a vehicle could be
saved with a plate of "assadasd". They must be letters, a hyphen, then digits,
like ET-9875 or AA-8642.

The server now enforces it on CreateVehicleDto (and UpdateVehicleDto via
PartialType): each plate is trimmed and upper-cased, then matched against
^[A-Z]{2,3}-\d{2,6}$, so "et-9875" is accepted and stored as ET-9875 while an
empty optional trailer/power plate still passes.

The fleet form gains the same check inline: FleetFormFieldDef takes an optional
pattern, the dialog tests it on submit against the upper-cased value, and the
vehicle config points plate and trailer at a regex that mirrors the server's.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-21 11:03:40 +00:00
natib21
458198be11 fix 2026-07-06 12:54:31 +00:00
natib21
fb4ffa5d67 fix 2026-07-06 12:23:25 +00:00
natib21
18926c32cb enhance phase countdown and booking window descriptions for clarity 2026-07-03 23:24:41 +00:00
natib21
2424e96e74 fix 2026-07-02 14:34:22 +00:00
natib21
7d85f5dc2e fix 2026-07-02 14:18:53 +00:00
natib21
c2c29f0735 fix 2026-07-02 14:14:13 +00:00
natib21
c8b7d76073 fix 2026-07-02 12:50:49 +00:00
natib21
43a32f192f fix 2026-07-02 12:47:10 +00:00
natib21
58b3805d0b fix 2026-07-02 12:43:03 +00:00
natib21
657f3bd2ab fix 2026-07-02 12:39:47 +00:00
natib21
adde596289 fix 2026-07-02 11:32:16 +00:00
natib21
ff7e20d2ee fix 2026-07-02 11:22:35 +00:00
hagiye
9112e70400 Merge branch 'dev' of github.com:Tria-plc/edr-platform into Interchange 2026-06-27 21:05:20 +03:00
hagiye
fee4365b70 Import operation gate pass 2026-06-27 21:04:27 +03:00
natib21
f5eaa87564 fix ui 2026-06-27 14:15:14 +00:00
hagiye
4efef9bab3 inspection status column fix 2026-06-26 13:20:26 +03:00
hagiye
75d4c9b7c1 Autounload on train arrival 2026-06-26 12:17:31 +03:00
yaschalew
28675cd5dc fix vehicle 2026-06-24 17:05:25 +03:00
natib21
79860c807c fix 2026-06-24 09:30:11 +00:00
natib21
963392edb3 fix data table 2026-06-20 09:38:12 +00:00
natib21
d7a3a057ce fix data tables 2026-06-20 08:26:38 +00:00
natib21
555ff9d897 fix data table 2026-06-20 07:55:41 +00:00
natib21
fa2bfa2ca4 fix 2026-06-20 07:31:01 +00:00
natib21
a22c90de2d fix 2026-06-20 07:25:25 +00:00