mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Empty container returns now generate a downloadable Equipment Interchange Receipt: container number & size, exact return timestamp, depot/location, condition, and the carrier/booking reference. Customers can download it from their booking's Documents tab (own-booking returns only); staff can pull any via the same endpoint.
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
import { Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { BookingsModule } from '../bookings/bookings.module';
|
|
import { WarehousesModule } from '../warehouses/warehouses.module';
|
|
import { DjiboutiIncident } from './entities/djibouti-incident.entity';
|
|
import { EmptyContainerReturn } from './entities/empty-container-return.entity';
|
|
import { ImportCustomsFinalization } from './entities/import-customs-finalization.entity';
|
|
import { ImportOperationsController } from './import-operations.controller';
|
|
import { ImportOperationsService } from './import-operations.service';
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
DjiboutiIncident,
|
|
ImportCustomsFinalization,
|
|
EmptyContainerReturn,
|
|
]),
|
|
// WarehouseReleaseDocumentService (the shared PDF renderer) for the
|
|
// equipment interchange receipt; BookingsModule for the customer
|
|
// ownership check on that same route.
|
|
WarehousesModule,
|
|
BookingsModule,
|
|
],
|
|
controllers: [ImportOperationsController],
|
|
providers: [ImportOperationsService],
|
|
exports: [ImportOperationsService],
|
|
})
|
|
export class ImportOperationsModule {}
|