mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-09 07:08:18 +00:00
Backoffice UAT results addressed, packages and other updates
This commit is contained in:
@@ -689,8 +689,15 @@ async function seedKulubbiPackage() {
|
||||
const [outboundSchedule, returnSchedule] = schedules;
|
||||
|
||||
await prisma.travelPackage.upsert({
|
||||
where: { code: 'KULUBBI-2025' },
|
||||
update: {},
|
||||
where: { code: 'KULUBI-2025' },
|
||||
update: {
|
||||
validFrom: new Date(),
|
||||
validUntil: new Date(new Date().setFullYear(new Date().getFullYear() + 1)),
|
||||
boardingTime: new Date(new Date().setMonth(new Date().getMonth() + 1)),
|
||||
departureTime: new Date(new Date().setMonth(new Date().getMonth() + 1)),
|
||||
arrivalTime: new Date(new Date().setMonth(new Date().getMonth() + 1)),
|
||||
status: 'ACTIVE',
|
||||
},
|
||||
create: {
|
||||
code: 'KULUBBI-2025',
|
||||
name: 'Kulubbi Gabriel Pilgrimage Package',
|
||||
@@ -699,15 +706,15 @@ async function seedKulubbiPackage() {
|
||||
returnScheduleId: returnSchedule.id,
|
||||
originStationId: addisStation.id,
|
||||
destinationStationId: direDawaStation.id,
|
||||
boardingTime: new Date('2025-07-24T07:00:00+03:00'),
|
||||
departureTime: new Date('2025-07-24T09:00:00+03:00'),
|
||||
arrivalTime: new Date('2025-07-25T06:00:00+03:00'),
|
||||
boardingTime: new Date(new Date().setMonth(new Date().getMonth() + 1)),
|
||||
departureTime: new Date(new Date().setMonth(new Date().getMonth() + 1)),
|
||||
arrivalTime: new Date(new Date().setMonth(new Date().getMonth() + 1)),
|
||||
totalCapacity: 912,
|
||||
coachConfiguration: '1 Locomotive + 2SBC + 2HBC + 6HSC',
|
||||
busTransferIncluded: true,
|
||||
busTransferRoute: 'Dire Dawa ↔ Kulubi Gabriel',
|
||||
validFrom: new Date('2025-07-01'),
|
||||
validUntil: new Date('2025-07-24T09:00:00+03:00'),
|
||||
validFrom: new Date(),
|
||||
validUntil: new Date(new Date().setFullYear(new Date().getFullYear() + 1)),
|
||||
status: 'ACTIVE',
|
||||
includedServices: [
|
||||
'Round-trip train travel (Addis Ababa ↔ Dire Dawa)',
|
||||
|
||||
Reference in New Issue
Block a user