mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 15:30:56 +00:00
Merge pull request #982 from Tria-plc/freight_feature/usermanagement
Freight feature/usermanagement
This commit is contained in:
@@ -78,6 +78,9 @@ export const CONTRACT_STATUSES = [
|
||||
"CLEARANCE_UNDER_REVIEW",
|
||||
"CLEARANCE_READY_FOR_BOOKING",
|
||||
"ACTIVE_SHIPMENT_IN_PROGRESS",
|
||||
// Backoffice froze the contract post-signature. Reversible: the pre-suspension
|
||||
// status is kept in statusBeforeSuspension and restored on resume.
|
||||
"SUSPENDED",
|
||||
// terminal
|
||||
"CONTRACT_CLOSED",
|
||||
"EXPIRED",
|
||||
@@ -768,6 +771,18 @@ export interface IContract extends BaseEntity {
|
||||
* Tells the returned-to approver why the chain came back to them.
|
||||
*/
|
||||
latestSendBackNote?: string | null;
|
||||
/** Status the contract returns to when a suspension is lifted. */
|
||||
statusBeforeSuspension?: ContractStatus | null;
|
||||
/**
|
||||
* Body of the latest SUSPENSION review note (detail response only, while
|
||||
* SUSPENDED). Shown to both staff and customer.
|
||||
*/
|
||||
latestSuspensionNote?: string | null;
|
||||
/**
|
||||
* Bookings on this contract that are not in a terminal state (detail response
|
||||
* only). The portal's cancel action is blocked while this is > 0.
|
||||
*/
|
||||
activeBookingCount?: number;
|
||||
clearanceStatus: ContractClearanceStatus;
|
||||
clearanceCycleNumber: number;
|
||||
/**
|
||||
|
||||
@@ -326,6 +326,8 @@ export enum WagonMovementKind {
|
||||
EmptyReposition = "EMPTY_REPOSITION",
|
||||
/** Staff manually corrected/updated the wagon's yard. */
|
||||
Manual = "MANUAL",
|
||||
/** Detached from a train and put out of service for maintenance. */
|
||||
Maintenance = "MAINTENANCE",
|
||||
}
|
||||
|
||||
export interface IWagonMovement extends BaseEntity {
|
||||
|
||||
Reference in New Issue
Block a user