feat(WIP): filtering, exporting and more reports

This commit is contained in:
Nathnael
2026-08-19 13:51:18 +00:00
parent e964a9b8f4
commit fb21ad1541
56 changed files with 3750 additions and 27 deletions

View File

@@ -204,6 +204,7 @@ export class CargoTypesService {
itemsPerWagonMap: dto.itemsPerWagonMap,
}),
tonsPerWagonMap,
fullTrainsetWagons: dto.fullTrainsetWagons ?? null,
displayOrder,
});
}

View File

@@ -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);