mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 07:22:53 +00:00
Merge branch 'freight_feature/payments' of github.com:Tria-plc/edr-platform into freight_feature/payments
This commit is contained in:
@@ -1052,7 +1052,9 @@ export class TrainSchedulingService {
|
||||
|
||||
const invalidStatus = bookings.filter(
|
||||
(b) =>
|
||||
!SCHEDULABLE_BOOKING_STATUSES.includes(b.status as 'PAID') && !b.isGovernment,
|
||||
!(targetScheduleId && b.trainScheduleId === targetScheduleId) &&
|
||||
!SCHEDULABLE_BOOKING_STATUSES.includes(b.status as 'PAID') &&
|
||||
!b.isGovernment,
|
||||
);
|
||||
if (invalidStatus.length) {
|
||||
const statuses = [...new Set(invalidStatus.map((b) => b.status))];
|
||||
|
||||
Reference in New Issue
Block a user