fix: calculate revenueDeviation without rounding errors

This commit is contained in:
Marcel Arndt 2025-06-12 17:46:42 +02:00
parent 1996ab31d5
commit 37d50e04c1
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ export class ToursCalculationAdapater {
);
const revenueDeviation =
tour.revenueDispoLive > 0
? Math.floor((revenue - tour.revenueDispoLive) * 100) / 100
? Math.round((revenue * 100) - (tour.revenueDispoLive * 100)) / 100
: 0;
const { consumptionCostsPerTour } =