mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 02:58:11 +00:00
feat(WIP): filtering, exporting and more reports
This commit is contained in:
@@ -204,6 +204,7 @@ export class CargoTypesService {
|
||||
itemsPerWagonMap: dto.itemsPerWagonMap,
|
||||
}),
|
||||
tonsPerWagonMap,
|
||||
fullTrainsetWagons: dto.fullTrainsetWagons ?? null,
|
||||
displayOrder,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -61,6 +61,7 @@ export class YardDistancesService {
|
||||
fromYardId: dto.fromYardId,
|
||||
toYardId: dto.toYardId,
|
||||
distanceKm: dto.distanceKm.toFixed(2),
|
||||
standardHours: dto.standardHours != null ? dto.standardHours.toFixed(2) : null,
|
||||
});
|
||||
return toRow(created);
|
||||
}
|
||||
@@ -78,6 +79,9 @@ export class YardDistancesService {
|
||||
fromYardId,
|
||||
toYardId,
|
||||
...(dto.distanceKm != null ? { distanceKm: dto.distanceKm.toFixed(2) } : {}),
|
||||
...(dto.standardHours !== undefined
|
||||
? { standardHours: dto.standardHours != null ? dto.standardHours.toFixed(2) : null }
|
||||
: {}),
|
||||
});
|
||||
if (!updated) throw new NotFoundException(`Yard distance ${id} not found`);
|
||||
return toRow(updated);
|
||||
|
||||
Reference in New Issue
Block a user