mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 18:48:11 +00:00
Enhance overview and train scheduling features
- Updated OverviewContractsTabPanel to include a new donut chart for freight type distribution. - Modified OverviewOperationsTabPanel to improve data visualization with additional charts and refactored data handling. - Introduced CreateScheduleWindowFields component for configuring booking windows in train scheduling. - Added new API endpoints for allocation candidates and booking allocation in trainScheduling.service. - Enhanced BookingRequestsPage to support allocation of paid bookings with a modal for selecting alternative dates. - Updated QUERY_KEYS and URLS constants to accommodate new operations and features. - Improved type definitions for overview and train scheduling to support new functionalities.
This commit is contained in:
@@ -161,6 +161,15 @@ export class TrainSchedule extends BaseEntity {
|
||||
@Column({ name: 'rule_payment_window_minutes', type: 'int', nullable: true })
|
||||
rulePaymentWindowMinutes?: number | null;
|
||||
|
||||
/**
|
||||
* Staff configured this schedule's booking window by hand (at creation or via
|
||||
* the per-schedule override) instead of inheriting the live global rules.
|
||||
* `restampPendingWindows` skips these, so a later global-rules edit cannot
|
||||
* silently overwrite the hand-picked settings.
|
||||
*/
|
||||
@Column({ name: 'window_rule_custom', type: 'boolean', default: false })
|
||||
windowRuleCustom!: boolean;
|
||||
|
||||
@Column({ name: 'rule_import_window_lead_days', type: 'int', nullable: true })
|
||||
ruleImportWindowLeadDays?: number | null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user