Commit Graph

25 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
8671b982c5 fix null value 2026-07-17 10:18:41 +00:00
natib21
1abf71306e add export/inport number 2026-07-17 09:15:21 +00:00
natib21
fb4ffa5d67 fix 2026-07-06 12:23:25 +00:00
natib21
c2535bec5e fix 2026-07-03 14:14:35 +00:00
natib21
e14e02e7f2 fix 2026-07-03 14:07:43 +00:00
natib21
782f4184ef fix 2026-07-03 13:49:55 +00:00
natib21
e4b0c73c63 fix fayda 2026-07-03 09:10:05 +00:00
Marshal
947dcbed3d ui on new contrat page 2026-06-28 23:39:35 +00:00
Marshal
47c91cad03 feat: enhance locomotive creation and management with optional code generation and default max pull weight 2026-06-28 23:02:40 +00:00
ghost2023
cdfe7c1f5b fix: type errors 2026-06-23 15:02:25 +03:00
yaschalew
7f51f24a77 fix conflict 2026-06-22 14:23:43 +03:00
Nathnael
feddce8a0c style: use the proper primary color 2026-06-22 08:11:11 +00:00
natib21
1c420781ea vehicle 2026-06-19 13:58:33 +00:00
natib21
e3aacb8b4a vehicle 2026-06-19 13:52:47 +00:00
natib21
d40b6d0c9f vehicle 2026-06-19 13:49:31 +00:00
natib21
56f1b53da9 vehicle 2026-06-19 13:38:19 +00:00
natib21
7b25ecee84 vehicle 2026-06-19 13:32:54 +00:00
natib21
79e140393c vehicle 2026-06-19 13:30:50 +00:00
natib21
9de625c18a vehicle 2026-06-19 13:24:23 +00:00
natib21
b4ed7d492d fix vehicle 2026-06-19 06:56:07 +00:00
yaschalew
96ad7bd152 save 2026-06-18 12:38:15 +03:00
marshal
a0dbb4ca6f backoffice cleen up 2026-06-16 11:04:36 +03:00
marshal
5774d7db9d booking operations and trains scheduling also allocations 2026-06-10 00:48:32 +03:00