mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 06:28:12 +00:00
fix allocate bookigns
This commit is contained in:
@@ -1052,7 +1052,9 @@ export class TrainSchedulingService {
|
|||||||
|
|
||||||
const invalidStatus = bookings.filter(
|
const invalidStatus = bookings.filter(
|
||||||
(b) =>
|
(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) {
|
if (invalidStatus.length) {
|
||||||
const statuses = [...new Set(invalidStatus.map((b) => b.status))];
|
const statuses = [...new Set(invalidStatus.map((b) => b.status))];
|
||||||
|
|||||||
Reference in New Issue
Block a user