Commit Graph

46 Commits

Author SHA1 Message Date
Marshal
2429f6b629 implement contract cancellation feature and update contract statuses
- Added functionality to cancel contracts, allowing users to provide a reason for cancellation.
- Updated contract statuses to include SUSPENDED and changed CLOSED to COMPLETED.
- Enhanced the UI to reflect the new cancellation option and updated messaging for contract statuses.
- Refactored contract booking actions to accommodate changes in booking logic for ONE_TIME and GENERAL contracts.
- Removed clearance document management from the contract detail page, as it is now handled per booking.
- Introduced a SQL script to reset bookings and train schedules for development purposes.
2026-07-28 05:02:58 +00:00
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
Marshal
129a4d1d0a implement freight permissions for trains, wagons, and routes 2026-07-23 05:57:14 +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
Marshal
19c9da28ae changes 2026-07-15 13:29:01 +00:00
Marshal
94904ea6d0 resolve conflict 2026-07-07 21:46:25 +00:00
Marshal
f300600bfa changes 2026-07-07 12:28:47 +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
c643d30624 fix 2026-07-03 15:47:12 +00:00
natib21
f2f6c89c0e fix 2026-07-03 15:37:24 +00:00
natib21
0e6ebda6f6 fix 2026-07-03 15:21:23 +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
natib21
58b3805d0b fix 2026-07-02 12:43:03 +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
Nathnael
9a224e9baf style: WIP ui updates 2026-06-22 07:44:03 +00:00
natib21
739442c9bc fix data table 2026-06-20 09:19:08 +00:00
natib21
f312a79ca8 fix data table 2026-06-20 09:17:03 +00:00
natib21
926e72ad74 fix data table 2026-06-20 09:15:18 +00:00
natib21
b6e0a34ea8 fix data table 2026-06-20 09:13:27 +00:00
natib21
3793d2004f fix data table 2026-06-20 09:04:01 +00:00
natib21
cde5525ed9 fix data table 2026-06-20 08:01:22 +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
78e735f944 vehicle 2026-06-19 13:17:20 +00:00
natib21
d49c7a48d5 vehicle 2026-06-19 13:07:03 +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
87b0ce6339 Replace wagon/locomotive readiness with yard tracking, assign unassigned bookings from origin-yard fleet, standardize rates on USD with CBE ETB conversion, and update fleet/scheduling UI 2026-06-14 02:13:08 +03:00
Marshal
b73bf2154e add detail batch and allocation monitoring page 2026-06-13 18:28:39 +00:00
marshal
5774d7db9d booking operations and trains scheduling also allocations 2026-06-10 00:48:32 +03:00